Animatable.pkg 903 B

123456789101112131415161718192021
  1. $#include "Animatable.h"
  2. enum WrapMode{};
  3. class Animatable : Serializable
  4. {
  5. void SetAnimationEnabled(bool enable);
  6. void SetObjectAnimation(ObjectAnimation* objectAnimation);
  7. void SetAttributeAnimation(const String& name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f);
  8. void SetAttributeAnimationWrapMode(const String& name, WrapMode wrapMode);
  9. void SetAttributeAnimationSpeed(const String& name, float speed);
  10. bool GetAnimationEnabled() const;
  11. ObjectAnimation* GetObjectAnimation() const;
  12. ValueAnimation* GetAttributeAnimation(const String& name) const;
  13. WrapMode GetAttributeAnimationWrapMode(const String& name) const;
  14. float GetAttributeAnimationSpeed(const String& name) const;
  15. tolua_property__get_set bool animationEnabled;
  16. tolua_property__get_set ObjectAnimation* objectAnimation;
  17. };