]> git.localhorst.tv Git - blank.git/blobdiff - src/app/ClientState.hpp
client-side implementation of login packet
[blank.git] / src / app / ClientState.hpp
index f54e56f93199222547275a38d45d517ca67d292d..8868c98a7becd4635725ad238499700b37e44566 100644 (file)
@@ -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;
 
 };