BsScriptPlayInEditor.generated.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 { class PlayInEditor; }
  8. namespace bs
  9. {
  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. }