]> git.localhorst.tv Git - blank.git/blobdiff - src/server/ServerState.hpp
invalidate meshes if surrounding chunks on insert
[blank.git] / src / server / ServerState.hpp
index 31ad5217535567d4bf1fd63490ae72f06f6c9b08..b62cf0904224f767730bf6cd33f5156c1d7e50f8 100644 (file)
@@ -5,7 +5,8 @@
 #include "../ai/Spawner.hpp"
 #include "../app/IntervalTimer.hpp"
 #include "../app/State.hpp"
-#include "../model/Skeletons.hpp"
+#include "../model/ModelRegistry.hpp"
+#include "../model/ShapeRegistry.hpp"
 #include "../world/BlockTypeRegistry.hpp"
 #include "../world/ChunkLoader.hpp"
 #include "../world/Generator.hpp"
@@ -31,6 +32,7 @@ public:
                const WorldSave &,
                const Config &
        );
+       ~ServerState();
 
        void Handle(const SDL_Event &) override;
        void Update(int dt) override;
@@ -38,11 +40,12 @@ public:
 
 private:
        HeadlessEnvironment &env;
+       ShapeRegistry shapes;
        BlockTypeRegistry block_types;
+       ModelRegistry models;
        World world;
        Generator generator;
        ChunkLoader chunk_loader;
-       Skeletons skeletons;
        Spawner spawner;
        Server server;
        IntervalTimer loop_timer;