BsScriptCAnimation.generated.h 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "Wrappers/BsScriptComponent.h"
  4. #include "../../../bsf/Source/Foundation/bsfCore/Animation/BsAnimation.h"
  5. #include "Math/BsAABox.h"
  6. #include "Math/BsVector2.h"
  7. #include "../../../bsf/Source/Foundation/bsfCore/Animation/BsAnimation.h"
  8. namespace bs
  9. {
  10. class CAnimation;
  11. struct __Blend1DInfoInterop;
  12. struct __Blend2DInfoInterop;
  13. class BS_SCR_BE_EXPORT ScriptCAnimation : public TScriptComponent<ScriptCAnimation, CAnimation>
  14. {
  15. public:
  16. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "Animation")
  17. ScriptCAnimation(MonoObject* managedInstance, const GameObjectHandle<CAnimation>& value);
  18. private:
  19. void _scriptRebuildFloatProperties(const ResourceHandle<AnimationClip>& p0);
  20. void _scriptUpdateFloatProperties();
  21. void _scriptOnEventTriggered(const ResourceHandle<AnimationClip>& p0, const String& p1);
  22. typedef void(BS_THUNKCALL *_scriptRebuildFloatPropertiesThunkDef) (MonoObject*, MonoObject* p0, MonoException**);
  23. static _scriptRebuildFloatPropertiesThunkDef _scriptRebuildFloatPropertiesThunk;
  24. typedef void(BS_THUNKCALL *_scriptUpdateFloatPropertiesThunkDef) (MonoObject*, MonoException**);
  25. static _scriptUpdateFloatPropertiesThunkDef _scriptUpdateFloatPropertiesThunk;
  26. typedef void(BS_THUNKCALL *_scriptOnEventTriggeredThunkDef) (MonoObject*, MonoObject* p0, MonoString* p1, MonoException**);
  27. static _scriptOnEventTriggeredThunkDef _scriptOnEventTriggeredThunk;
  28. static void Internal_setDefaultClip(ScriptCAnimation* thisPtr, MonoObject* clip);
  29. static MonoObject* Internal_getDefaultClip(ScriptCAnimation* thisPtr);
  30. static void Internal_setWrapMode(ScriptCAnimation* thisPtr, AnimWrapMode wrapMode);
  31. static AnimWrapMode Internal_getWrapMode(ScriptCAnimation* thisPtr);
  32. static void Internal_setSpeed(ScriptCAnimation* thisPtr, float speed);
  33. static float Internal_getSpeed(ScriptCAnimation* thisPtr);
  34. static void Internal_play(ScriptCAnimation* thisPtr, MonoObject* clip);
  35. static void Internal_blendAdditive(ScriptCAnimation* thisPtr, MonoObject* clip, float weight, float fadeLength, uint32_t layer);
  36. static void Internal_blend1D(ScriptCAnimation* thisPtr, __Blend1DInfoInterop* info, float t);
  37. static void Internal_blend2D(ScriptCAnimation* thisPtr, __Blend2DInfoInterop* info, Vector2* t);
  38. static void Internal_crossFade(ScriptCAnimation* thisPtr, MonoObject* clip, float fadeLength);
  39. static void Internal_sample(ScriptCAnimation* thisPtr, MonoObject* clip, float time);
  40. static void Internal_stop(ScriptCAnimation* thisPtr, uint32_t layer);
  41. static void Internal_stopAll(ScriptCAnimation* thisPtr);
  42. static bool Internal_isPlaying(ScriptCAnimation* thisPtr);
  43. static bool Internal_getState(ScriptCAnimation* thisPtr, MonoObject* clip, AnimationClipState* state);
  44. static void Internal_setState(ScriptCAnimation* thisPtr, MonoObject* clip, AnimationClipState* state);
  45. static void Internal_setMorphChannelWeight(ScriptCAnimation* thisPtr, MonoString* name, float weight);
  46. static void Internal_setBounds(ScriptCAnimation* thisPtr, AABox* bounds);
  47. static void Internal_getBounds(ScriptCAnimation* thisPtr, AABox* __output);
  48. static void Internal_setUseBounds(ScriptCAnimation* thisPtr, bool enable);
  49. static bool Internal_getUseBounds(ScriptCAnimation* thisPtr);
  50. static void Internal_setEnableCull(ScriptCAnimation* thisPtr, bool enable);
  51. static bool Internal_getEnableCull(ScriptCAnimation* thisPtr);
  52. static uint32_t Internal_getNumClips(ScriptCAnimation* thisPtr);
  53. static MonoObject* Internal_getClip(ScriptCAnimation* thisPtr, uint32_t idx);
  54. static void Internal__refreshClipMappings(ScriptCAnimation* thisPtr);
  55. static bool Internal__getGenericCurveValue(ScriptCAnimation* thisPtr, uint32_t curveIdx, float* value);
  56. static bool Internal__togglePreviewMode(ScriptCAnimation* thisPtr, bool enabled);
  57. };
  58. }