mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add network.http_get, network.http_get_binary
This commit is contained in:
parent
186078a8d5
commit
b23318a06c
6 changed files with 62 additions and 2 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue