add network.http_get, network.http_get_binary

This commit is contained in:
MihailRis
2024-11-22 07:30:38 +03:00
parent 186078a8d5
commit b23318a06c
6 changed files with 62 additions and 2 deletions
+7
View File
@@ -37,6 +37,10 @@ namespace cmd {
class CommandsInterpreter;
}
namespace network {
class Network;
}
class initialize_error : public std::runtime_error {
public:
initialize_error(const std::string& message) : std::runtime_error(message) {}
@@ -56,6 +60,7 @@ class Engine : public util::ObjectsKeeper {
std::recursive_mutex postRunnablesMutex;
std::unique_ptr<EngineController> controller;
std::unique_ptr<cmd::CommandsInterpreter> interpreter;
std::unique_ptr<network::Network> network;
std::vector<std::string> basePacks;
uint64_t frame = 0;
@@ -148,4 +153,6 @@ public:
PacksManager createPacksManager(const fs::path& worldFolder);
SettingsHandler& getSettingsHandler();
network::Network& getNetwork();
};