]> git.localhorst.tv Git - blank.git/blobdiff - src/server/ServerState.hpp
read preferences from user config file
[blank.git] / src / server / ServerState.hpp
index 8f564ab5105c3f0d7f2220fa2f5e17b669c0be4c..e22f9b1e3c3f58a3825fa48a973f21e6f764fc58 100644 (file)
@@ -7,6 +7,7 @@
 #include "../app/State.hpp"
 #include "../model/Skeletons.hpp"
 #include "../world/BlockTypeRegistry.hpp"
+#include "../world/ChunkIndex.hpp"
 #include "../world/ChunkLoader.hpp"
 #include "../world/Generator.hpp"
 #include "../world/World.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;
@@ -39,6 +42,7 @@ private:
        HeadlessEnvironment &env;
        BlockTypeRegistry block_types;
        World world;
+       ChunkIndex &spawn_index;
        Generator generator;
        ChunkLoader chunk_loader;
        Skeletons skeletons;