refactor: add Window interface

This commit is contained in:
MihailRis
2025-04-02 14:59:53 +03:00
parent cd5c6a889c
commit 9694a59649
31 changed files with 859 additions and 923 deletions
+6
View File
@@ -17,6 +17,7 @@
#include <string>
#include <vector>
class Window;
class Assets;
class Level;
class Screen;
@@ -68,6 +69,7 @@ class Engine : public util::ObjectsKeeper {
std::unique_ptr<EngineController> controller;
std::unique_ptr<cmd::CommandsInterpreter> cmd;
std::unique_ptr<network::Network> network;
std::unique_ptr<Window> window;
std::unique_ptr<Input> input;
std::vector<std::string> basePacks;
std::unique_ptr<gui::GUI> gui;
@@ -191,6 +193,10 @@ public:
return *input;
}
Window& getWindow() {
return *window;
}
network::Network& getNetwork() {
return *network;
}