move window-related code from Engine.cpp to WindowControl

This commit is contained in:
MihailRis
2025-11-09 19:09:35 +03:00
parent 87ff77a73f
commit 4bafad708e
6 changed files with 116 additions and 60 deletions
+2 -2
View File
@@ -14,6 +14,7 @@
#include <string>
class Window;
class WindowControl;
class Assets;
class Level;
class Screen;
@@ -75,6 +76,7 @@ class Engine : public util::ObjectsKeeper {
std::unique_ptr<gui::GUI> gui;
std::unique_ptr<devtools::Editor> editor;
std::unique_ptr<devtools::DebuggingServer> debuggingServer;
std::unique_ptr<WindowControl> windowControl;
PostRunnables postRunnables;
Time time;
OnWorldOpen levelConsumer;
@@ -144,8 +146,6 @@ public:
postRunnables.postRunnable(callback);
}
void saveScreenshot();
EngineController* getController();
void setLevelConsumer(OnWorldOpen levelConsumer);