BsScriptCAnimation.generated.h 3.6 KB

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