ObjectAnimation.pkg 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. $#include "Scene/ObjectAnimation.h"
  2. enum WrapMode
  3. {
  4. WM_LOOP = 0,
  5. WM_ONCE,
  6. WM_CLAMP,
  7. };
  8. class ObjectAnimation : Resource
  9. {
  10. ObjectAnimation();
  11. virtual ~ObjectAnimation();
  12. void AddAttributeAnimation(const String name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f);
  13. void RemoveAttributeAnimation(const String name);
  14. void RemoveAttributeAnimation(ValueAnimation* attributeAnimation);
  15. ValueAnimation* GetAttributeAnimation(const String name) const;
  16. WrapMode GetAttributeAnimationWrapMode(const String name) const;
  17. float GetAttributeAnimationSpeed(const String name) const;
  18. };
  19. ${
  20. #define TOLUA_DISABLE_tolua_SceneLuaAPI_ObjectAnimation_new00
  21. static int tolua_SceneLuaAPI_ObjectAnimation_new00(lua_State* tolua_S)
  22. {
  23. return ToluaNewObject<ObjectAnimation>(tolua_S);
  24. }
  25. #define TOLUA_DISABLE_tolua_SceneLuaAPI_ObjectAnimation_new00_local
  26. static int tolua_SceneLuaAPI_ObjectAnimation_new00_local(lua_State* tolua_S)
  27. {
  28. return ToluaNewObjectGC<ObjectAnimation>(tolua_S);
  29. }
  30. $}