BsScriptAnimationEvent.generated.h 760 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "BsScriptObject.h"
  4. #include "../../../bsf/Source/Foundation/bsfCore/Animation/BsAnimationClip.h"
  5. namespace bs
  6. {
  7. struct __AnimationEventInterop
  8. {
  9. MonoString* name;
  10. float time;
  11. };
  12. class BS_SCR_BE_EXPORT ScriptAnimationEvent : public ScriptObject<ScriptAnimationEvent>
  13. {
  14. public:
  15. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "AnimationEvent")
  16. static MonoObject* box(const __AnimationEventInterop& value);
  17. static __AnimationEventInterop unbox(MonoObject* value);
  18. static AnimationEvent fromInterop(const __AnimationEventInterop& value);
  19. static __AnimationEventInterop toInterop(const AnimationEvent& value);
  20. private:
  21. ScriptAnimationEvent(MonoObject* managedInstance);
  22. };
  23. }