]> git.localhorst.tv Git - blank.git/blobdiff - src/app/WorldState.hpp
split chunk redering from world model
[blank.git] / src / app / WorldState.hpp
index 6ab613f85e88634b6dd03bf276964276330a649d..d47024ff6633ed1fb65cb07dd29d1c8ba6ce2080 100644 (file)
@@ -6,6 +6,8 @@
 #include "UnloadState.hpp"
 #include "../ai/Spawner.hpp"
 #include "../ui/Interface.hpp"
+#include "../world/BlockTypeRegistry.hpp"
+#include "../world/ChunkRenderer.hpp"
 #include "../world/World.hpp"
 
 
@@ -31,10 +33,13 @@ public:
        void Render(Viewport &) override;
 
        World &GetWorld() noexcept { return world; }
+       Interface &GetInterface() noexcept { return interface; }
 
 private:
        Environment &env;
+       BlockTypeRegistry block_types;
        World world;
+       ChunkRenderer chunk_renderer;
        Spawner spawner;
        Interface interface;