BsScriptPlayInEditor.generated.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //************** Copyright (c) 2016-2019 Marko Pintera ([email protected]). All rights reserved. *******************//
  3. #pragma once
  4. #include "BsScriptEditorPrerequisites.h"
  5. #include "BsScriptObject.h"
  6. #include "../../bsf/Source/Scripting/bsfScript/BsPlayInEditor.h"
  7. namespace bs
  8. {
  9. class PlayInEditor;
  10. class BS_SCR_BED_EXPORT ScriptPlayInEditor : public ScriptObject<ScriptPlayInEditor>
  11. {
  12. public:
  13. SCRIPT_OBJ(EDITOR_ASSEMBLY, EDITOR_NS, "PlayInEditor")
  14. ScriptPlayInEditor(MonoObject* managedInstance);
  15. static void startUp();
  16. static void shutDown();
  17. private:
  18. uint32_t mGCHandle = 0;
  19. static void onPlay();
  20. static void onStopped();
  21. static void onPaused();
  22. static void onUnpaused();
  23. typedef void(BS_THUNKCALL *onPlayThunkDef) (MonoException**);
  24. static onPlayThunkDef onPlayThunk;
  25. typedef void(BS_THUNKCALL *onStoppedThunkDef) (MonoException**);
  26. static onStoppedThunkDef onStoppedThunk;
  27. typedef void(BS_THUNKCALL *onPausedThunkDef) (MonoException**);
  28. static onPausedThunkDef onPausedThunk;
  29. typedef void(BS_THUNKCALL *onUnpausedThunkDef) (MonoException**);
  30. static onUnpausedThunkDef onUnpausedThunk;
  31. static HEvent onPlayConn;
  32. static HEvent onStoppedConn;
  33. static HEvent onPausedConn;
  34. static HEvent onUnpausedConn;
  35. static PlayInEditorState Internal_getState();
  36. static void Internal_setState(PlayInEditorState state);
  37. static void Internal_frameStep();
  38. };
  39. }