From e47a98793e58a5dbbe76bfed27e59408e43538e4 Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Fri, 8 Apr 2022 22:30:12 -0700 Subject: More work --- source/EditorCoreAPI.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source/EditorCoreAPI.hpp (limited to 'source/EditorCoreAPI.hpp') 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); -- cgit v1.2.3-70-g09d2