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