diff options
author | rtk0c <[email protected]> | 2022-04-09 13:29:41 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-09 13:29:41 -0700 |
commit | a849c199d970e153580c312a24cfdfa099bc7b69 (patch) | |
tree | 1b5faa8d40953ee451103b94349bb84c738677ee /source/EditorCore.hpp | |
parent | e7ef3f208c109357538b1f68af10bcd78db95c95 (diff) |
Changeset: 4 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); |