feat(assets): add more wrapper around animator functions in Sprite
This commit is contained in:
parent
8a5692c1a1
commit
531f3c5803
2 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- **assets:** Add a way to get current relative frame
|
||||
|
||||
- **assets:** Add more wrapper around animator functions in Sprite
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -74,6 +74,14 @@ function Sprite:getDimensions()
|
|||
return self.tileset:getDimensions()
|
||||
end
|
||||
|
||||
function Sprite:getFrame()
|
||||
return self.animator:getFrame()
|
||||
end
|
||||
|
||||
function Sprite:getAnimationDuration(animation)
|
||||
return self.animator:getAnimationDuration(animation)
|
||||
end
|
||||
|
||||
function Sprite:getRelativeFrame()
|
||||
return self.animator:getRelativeFrame()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue