X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fserver%2FServerState.hpp;h=bfefccf397f0ae0be42a5ac6213bbd01b2d33eb1;hb=bc2806164f55b7ac48dbb6d224b7d4b55683decf;hp=8f564ab5105c3f0d7f2220fa2f5e17b669c0be4c;hpb=8ae45b6555d55f301f83daf8c1337d332d8305ab;p=blank.git diff --git a/src/server/ServerState.hpp b/src/server/ServerState.hpp index 8f564ab..bfefccf 100644 --- a/src/server/ServerState.hpp +++ b/src/server/ServerState.hpp @@ -5,6 +5,7 @@ #include "../ai/Spawner.hpp" #include "../app/IntervalTimer.hpp" #include "../app/State.hpp" +#include "../model/ShapeRegistry.hpp" #include "../model/Skeletons.hpp" #include "../world/BlockTypeRegistry.hpp" #include "../world/ChunkLoader.hpp" @@ -14,6 +15,7 @@ namespace blank { +class Config; class HeadlessEnvironment; class WorldSave; @@ -28,8 +30,9 @@ public: const Generator::Config &, const World::Config &, const WorldSave &, - const Server::Config & + const Config & ); + ~ServerState(); void Handle(const SDL_Event &) override; void Update(int dt) override; @@ -37,6 +40,7 @@ public: private: HeadlessEnvironment &env; + ShapeRegistry shapes; BlockTypeRegistry block_types; World world; Generator generator;