X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FWorldState.hpp;h=d47024ff6633ed1fb65cb07dd29d1c8ba6ce2080;hb=9ebe2c320fd9f94266ab93fa2f9d9908a0a284d3;hp=6ab613f85e88634b6dd03bf276964276330a649d;hpb=f5e5e8522b94a6b81a137d4bca7665ef15bcd2c6;p=blank.git diff --git a/src/app/WorldState.hpp b/src/app/WorldState.hpp index 6ab613f..d47024f 100644 --- a/src/app/WorldState.hpp +++ b/src/app/WorldState.hpp @@ -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;