ValueAnimation.pkg 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $#include "ValueAnimation.h"
  2. enum InterpMethod
  3. {
  4. IM_LINEAR = 0,
  5. IM_SPLINE,
  6. };
  7. class ValueAnimation : public Resource
  8. {
  9. ValueAnimation();
  10. ~ValueAnimation();
  11. void SetInterpolationMethod(InterpMethod method);
  12. void SetSplineTension(float tension);
  13. void SetValueType(VariantType valueType);
  14. bool SetKeyFrame(float time, const Variant& value);
  15. void SetEventFrame(float time, const StringHash& eventType, const VariantMap& eventData = VariantMap());
  16. InterpMethod GetInterpolationMethod() const;
  17. float GetSplineTension() const;
  18. VariantType GetValueType() const;
  19. tolua_property__get_set InterpMethod interpolationMethod;
  20. tolua_property__get_set float splineTension;
  21. tolua_property__get_set VariantType valueType;
  22. };
  23. ${
  24. #define TOLUA_DISABLE_tolua_SceneLuaAPI_ValueAnimation_new00
  25. static int tolua_SceneLuaAPI_ValueAnimation_new00(lua_State* tolua_S)
  26. {
  27. return ToluaNewObject<ValueAnimation>(tolua_S);
  28. }
  29. #define TOLUA_DISABLE_tolua_SceneLuaAPI_ValueAnimation_new00_local
  30. static int tolua_SceneLuaAPI_ValueAnimation_new00_local(lua_State* tolua_S)
  31. {
  32. return ToluaNewObjectGC<ValueAnimation>(tolua_S);
  33. }
  34. $}