]> git.localhorst.tv Git - blank.git/blobdiff - src/app/ServerState.hpp
split chunk stuff
[blank.git] / src / app / ServerState.hpp
index 5a3c0dcacaac7c1b9feb5ac52c3e89bdfb0b0434..0deb65aff460ed5158fa28064a3ef2756300ca00 100644 (file)
@@ -3,14 +3,19 @@
 
 #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 {
@@ -18,6 +23,7 @@ class ServerState
 public:
        ServerState(
                HeadlessEnvironment &,
+               const Generator::Config &,
                const World::Config &,
                const WorldSave &,
                const Server::Config &
@@ -31,6 +37,10 @@ private:
        HeadlessEnvironment &env;
        BlockTypeRegistry block_types;
        World world;
+       Generator generator;
+       ChunkLoader chunk_loader;
+       Skeletons skeletons;
+       Spawner spawner;
        Server server;
        IntervalTimer push_timer;