feat: custom languages syntax (WIP)

This commit is contained in:
MihailRis
2025-04-13 00:19:38 +03:00
parent 4360cd408b
commit 5253be6c56
18 changed files with 278 additions and 88 deletions
+9
View File
@@ -33,6 +33,10 @@ namespace network {
class Network;
}
namespace devtools {
class Editor;
}
class initialize_error : public std::runtime_error {
public:
initialize_error(const std::string& message) : std::runtime_error(message) {}
@@ -63,6 +67,7 @@ class Engine : public util::ObjectsKeeper {
std::unique_ptr<Window> window;
std::unique_ptr<Input> input;
std::unique_ptr<gui::GUI> gui;
std::unique_ptr<devtools::Editor> editor;
PostRunnables postRunnables;
Time time;
OnWorldOpen levelConsumer;
@@ -161,4 +166,8 @@ public:
cmd::CommandsInterpreter& getCmd() {
return *cmd;
}
devtools::Editor& getEditor() {
return *editor;
}
};