X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FServerState.hpp;h=0deb65aff460ed5158fa28064a3ef2756300ca00;hb=13e676a6e49128ebc6c63b8dd08bef51d360e8e9;hp=fc9ac1983d441e032846d6d53406920b98e2fb05;hpb=9ebe2c320fd9f94266ab93fa2f9d9908a0a284d3;p=blank.git diff --git a/src/app/ServerState.hpp b/src/app/ServerState.hpp index fc9ac19..0deb65a 100644 --- a/src/app/ServerState.hpp +++ b/src/app/ServerState.hpp @@ -1,15 +1,21 @@ #ifndef BLANK_APP_SERVERSTATE_HPP_ #define BLANK_APP_SERVERSTATE_HPP_ +#include "IntervalTimer.hpp" #include "State.hpp" +#include "../ai/Spawner.hpp" +#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 { @@ -17,6 +23,7 @@ class ServerState public: ServerState( HeadlessEnvironment &, + const Generator::Config &, const World::Config &, const WorldSave &, const Server::Config & @@ -30,7 +37,12 @@ private: HeadlessEnvironment &env; BlockTypeRegistry block_types; World world; + Generator generator; + ChunkLoader chunk_loader; + Skeletons skeletons; + Spawner spawner; Server server; + IntervalTimer push_timer; };