diff options
Diffstat (limited to 'source/App.hpp')
-rw-r--r-- | source/App.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/App.hpp b/source/App.hpp index 54e1fb5..c73c5a1 100644 --- a/source/App.hpp +++ b/source/App.hpp @@ -17,14 +17,11 @@ using KeyCaptureCallback = std::function<bool(int, int)>; -// TODO how should we split responsibilities between App and Editor? class App { - friend class EditorInstance; - private: std::deque<KeyCaptureCallback> mKeyCaptureCallbacks; PodVector<Player*> mPlayers; - std::unique_ptr<EditorInstance> mEditor; + std::unique_ptr<IEditor> mEditor; GameWorld mWorld; Renderer mWorldRenderer; Camera mMainCamera; @@ -37,8 +34,9 @@ public: App(); ~App(); - EditorInstance* GetEditor() { return mEditor.get(); } + IEditor* GetEditor() { return mEditor.get(); } GameWorld* GetWorld() { return &mWorld; } + Renderer* GetWorldRenderer() { return &mWorldRenderer; } Camera* GetActiveCamera() const; void BindActiveCamera(Camera* camera); |