AnimationState.pkg 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. $#include "AnimationState.h"
  2. class AnimationState
  3. {
  4. AnimationState(AnimatedModel* model, Animation* animation);
  5. AnimationState(Node* node, Animation* animation);
  6. ~AnimationState();
  7. void SetStartBone(Bone* bone);
  8. void SetLooped(bool looped);
  9. void SetWeight(float weight);
  10. void SetTime(float time);
  11. void AddWeight(float delta);
  12. void AddTime(float delta);
  13. void SetLayer(unsigned char layer);
  14. Animation* GetAnimation() const;
  15. Bone* GetStartBone() const;
  16. bool IsEnabled() const;
  17. bool IsLooped() const;
  18. float GetWeight() const;
  19. float GetTime() const;
  20. float GetLength() const;
  21. unsigned char GetLayer() const;
  22. tolua_readonly tolua_property__get_set Animation* animation;
  23. tolua_property__get_set Bone* startBone;
  24. tolua_readonly tolua_property__is_set bool enabled;
  25. tolua_property__is_set bool looped;
  26. tolua_property__get_set float weight;
  27. tolua_property__get_set float time;
  28. tolua_readonly tolua_property__get_set float length;
  29. tolua_property__get_set unsigned char layer;
  30. };