diff options
author | hnOsmium0001 <[email protected]> | 2022-04-09 13:29:41 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-09 13:29:41 -0700 |
commit | 906557f094e407ce21d429ef647bc75fe3179cf1 (patch) | |
tree | 5e6aaed6537a0328318b6cd6561f6a76bf8aa27d /source/EditorCore.hpp | |
parent | e47a98793e58a5dbbe76bfed27e59408e43538e4 (diff) |
More work on editor
Diffstat (limited to 'source/EditorCore.hpp')
-rw-r--r-- | source/EditorCore.hpp | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/source/EditorCore.hpp b/source/EditorCore.hpp index 3f9eb11..a9ef93a 100644 --- a/source/EditorCore.hpp +++ b/source/EditorCore.hpp @@ -1,5 +1,8 @@ #pragma once +#include "EditorAttachment.hpp" +#include "EditorInspector.hpp" +#include "EditorResources.hpp" #include "GameObject.hpp" #include "World.hpp" @@ -7,37 +10,24 @@ #include <string> class App; - -namespace ImGui { -const char* GetKeyNameGlfw(int key); -} // namespace ImGui - -class EditorGameObjectAttachment { -public: - std::string name; - -public: - static std::unique_ptr<EditorGameObjectAttachment> Create(GameObject* object); - virtual ~EditorGameObjectAttachment() = default; -}; - class EditorInstance { private: App* mApp; GameWorld* mWorld; GameObject* mSelectedGameObject = nullptr; + EditorInspector mEdInspector; + EditorContentBrowser mEdContentBrowser; public: - EditorInstance(App* app, GameWorld* world) - : mApp{ app } - , mWorld{ world } {} + EditorInstance(App* app, GameWorld* world); + ~EditorInstance(); void Show(); private: void ShowWorldProperties(); - void ShowInspector(); + void ShowInspector(GameObject* object); void ShowGameObjecetFields(GameObject* object); void ShowGameObjectInTree(GameObject* object); |