feat(assets): add more wrapper around animator functions in Sprite

This commit is contained in:
Kazhnuz 2019-06-23 14:25:02 +02:00
parent 8a5692c1a1
commit 531f3c5803
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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