X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FClientState.hpp;h=8868c98a7becd4635725ad238499700b37e44566;hb=104592aabdc70b21065c35fe4d092fc6cdaa1f49;hp=f54e56f93199222547275a38d45d517ca67d292d;hpb=dbfcb12348b80e2582f710acb1e4ed0011889ba2;p=blank.git diff --git a/src/app/ClientState.hpp b/src/app/ClientState.hpp index f54e56f..8868c98 100644 --- a/src/app/ClientState.hpp +++ b/src/app/ClientState.hpp @@ -3,7 +3,9 @@ #include "State.hpp" #include "../net/Client.hpp" +#include "../ui/Interface.hpp" #include "../world/BlockTypeRegistry.hpp" +#include "../world/ChunkRenderer.hpp" #include "../world/World.hpp" @@ -19,9 +21,12 @@ public: Environment &, const World::Config &, const WorldSave &, + const Interface::Config &, const Client::Config & ); + void OnEnter() override; + void Handle(const SDL_Event &) override; void Update(int dt) override; void Render(Viewport &) override; @@ -30,6 +35,8 @@ private: Environment &env; BlockTypeRegistry block_types; World world; + ChunkRenderer chunk_renderer; + Interface interface; Client client; };