1 #ifndef BLANK_CLIENT_INTERACTIVESTATE_HPP_
2 #define BLANK_CLIENT_INTERACTIVESTATE_HPP_
4 #include "../app/State.hpp"
5 #include "../io/WorldSave.hpp"
6 #include "../ui/Interface.hpp"
7 #include "../world/BlockTypeRegistry.hpp"
8 #include "../world/ChunkRenderer.hpp"
9 #include "../world/World.hpp"
20 class InteractiveState
24 explicit InteractiveState(MasterState &, std::uint32_t player_id);
26 World &GetWorld() noexcept { return world; }
27 Interface &GetInterface() noexcept { return interface; }
29 void OnEnter() override;
31 void Handle(const SDL_Event &) override;
32 void Update(int dt) override;
33 void Render(Viewport &) override;
37 BlockTypeRegistry block_types;
40 ChunkRenderer chunk_renderer;