| 1234567891011121314151617181920212223242526272829303132333435 |
- $#include "ObjectAnimation.h"
- enum WrapMode
- {
- WM_LOOP = 0,
- WM_ONCE,
- WM_CLAMP,
- };
- class ObjectAnimation : Resource
- {
- ObjectAnimation();
- virtual ~ObjectAnimation();
-
- void AddAttributeAnimation(const String name, AttributeAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f);
- void RemoveAttributeAnimation(const String name);
- void RemoveAttributeAnimation(AttributeAnimation* attributeAnimation);
- AttributeAnimation* GetAttributeAnimation(const String name) const;
- WrapMode GetAttributeAnimationWrapMode(const String name) const;
- float GetAttributeAnimationSpeed(const String name) const;
- };
- ${
- #define TOLUA_DISABLE_tolua_SceneLuaAPI_ObjectAnimation_new00
- static int tolua_SceneLuaAPI_ObjectAnimation_new00(lua_State* tolua_S)
- {
- return ToluaNewObject<ObjectAnimation>(tolua_S);
- }
- #define TOLUA_DISABLE_tolua_SceneLuaAPI_ObjectAnimation_new00_local
- static int tolua_SceneLuaAPI_ObjectAnimation_new00_local(lua_State* tolua_S)
- {
- return ToluaNewObjectGC<ObjectAnimation>(tolua_S);
- }
- $}
|