aboutsummaryrefslogtreecommitdiff
path: root/source/EditorCoreAPI.hpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-04-08 22:30:12 -0700
committerhnOsmium0001 <[email protected]>2022-04-08 22:30:12 -0700
commite47a98793e58a5dbbe76bfed27e59408e43538e4 (patch)
tree250eb4c4200efb63c493ac6f4adb83c89be10ea1 /source/EditorCoreAPI.hpp
parent3fdc6eb4f2cbeffce9b250beec4d3a2d52a3f534 (diff)
More work
Diffstat (limited to 'source/EditorCoreAPI.hpp')
-rw-r--r--source/EditorCoreAPI.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/EditorCoreAPI.hpp b/source/EditorCoreAPI.hpp
new file mode 100644
index 0000000..fa68822
--- /dev/null
+++ b/source/EditorCoreAPI.hpp
@@ -0,0 +1,18 @@
+// This file contains minimal definitions for other game components to integrate with editor
+// Doing this instead of directly includign EditorCore.hpp and drastically remove the amount of code that needs to be dragged into every header
+
+#pragma once
+
+// Forward declarations
+class App;
+class GameWorld;
+
+class EditorGameObjectAttachment;
+struct EditorGameObjectAttachmentDeleter {
+ void operator()(EditorGameObjectAttachment* obj);
+};
+
+class EditorInstance;
+EditorInstance* EditorInstance_Alloc(App* app, GameWorld* world);
+void EditorInstance_Free(EditorInstance* editor);
+void EditorInstance_Show(EditorInstance* editor);