X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FServerState.hpp;h=0deb65aff460ed5158fa28064a3ef2756300ca00;hb=13e676a6e49128ebc6c63b8dd08bef51d360e8e9;hp=aa7e779c7dd7acf6736e930f50d463c288543775;hpb=43820582217f7e4b707d98f2e69d969eb77fc7c3;p=blank.git diff --git a/src/app/ServerState.hpp b/src/app/ServerState.hpp index aa7e779..0deb65a 100644 --- a/src/app/ServerState.hpp +++ b/src/app/ServerState.hpp @@ -7,12 +7,15 @@ #include "../model/Skeletons.hpp" #include "../net/Server.hpp" #include "../world/BlockTypeRegistry.hpp" +#include "../world/ChunkLoader.hpp" +#include "../world/Generator.hpp" #include "../world/World.hpp" namespace blank { class HeadlessEnvironment; +class WorldSave; class ServerState : public State { @@ -20,6 +23,7 @@ class ServerState public: ServerState( HeadlessEnvironment &, + const Generator::Config &, const World::Config &, const WorldSave &, const Server::Config & @@ -33,6 +37,8 @@ private: HeadlessEnvironment &env; BlockTypeRegistry block_types; World world; + Generator generator; + ChunkLoader chunk_loader; Skeletons skeletons; Spawner spawner; Server server;