AnimationState.pkg 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 SetBoneWeight(const String name, float weight, bool recursive = false);
  12. void SetBoneWeight(StringHash nameHash, float weight, bool recursive = false);
  13. void SetBoneWeight(unsigned index, float weight, bool recursive = false);
  14. void AddWeight(float delta);
  15. void AddTime(float delta);
  16. void SetLayer(unsigned char layer);
  17. Animation* GetAnimation() const;
  18. Bone* GetStartBone() const;
  19. float GetBoneWeight(const String name) const;
  20. float GetBoneWeight(StringHash nameHash) const;
  21. float GetBoneWeight(unsigned index) const;
  22. unsigned GetTrackIndex(const String name) const;
  23. unsigned GetTrackIndex(StringHash nameHash) const;
  24. bool IsEnabled() const;
  25. bool IsLooped() const;
  26. float GetWeight() const;
  27. float GetTime() const;
  28. float GetLength() const;
  29. unsigned char GetLayer() const;
  30. tolua_readonly tolua_property__get_set Animation* animation;
  31. tolua_property__get_set Bone* startBone;
  32. tolua_readonly tolua_property__is_set bool enabled;
  33. tolua_property__is_set bool looped;
  34. tolua_property__get_set float weight;
  35. tolua_property__get_set float time;
  36. tolua_readonly tolua_property__get_set float length;
  37. tolua_property__get_set unsigned char layer;
  38. };