AnimatedSprite2D.pkg 843 B

1234567891011121314151617181920212223242526272829
  1. $#include "Urho2D/AnimatedSprite2D.h"
  2. enum LoopMode2D
  3. {
  4. LM_DEFAULT = 0,
  5. LM_FORCE_LOOPED,
  6. LM_FORCE_CLAMPED
  7. };
  8. class AnimatedSprite2D : StaticSprite2D
  9. {
  10. void SetAnimationSet(AnimationSet2D* animationSet);
  11. void SetEntity(const String entity);
  12. void SetAnimation(const String name, LoopMode2D loopMode = LM_DEFAULT);
  13. void SetLoopMode(LoopMode2D loopMode);
  14. void SetSpeed(float speed);
  15. AnimationSet2D* GetAnimationSet() const;
  16. const String GetEntity() const;
  17. const String GetAnimation() const;
  18. LoopMode2D GetLoopMode() const;
  19. float GetSpeed() const;
  20. tolua_property__get_set float speed;
  21. tolua_property__get_set String entity;
  22. tolua_property__get_set String animation;
  23. tolua_property__get_set AnimationSet2D* animationSet;
  24. tolua_property__get_set LoopMode2D loopMode;
  25. };