1 #ifndef BLANK_APP_WORLDSTATE_HPP_
2 #define BLANK_APP_WORLDSTATE_HPP_
4 #include "PreloadState.hpp"
6 #include "UnloadState.hpp"
7 #include "../ai/Spawner.hpp"
8 #include "../ui/Interface.hpp"
9 #include "../world/BlockTypeRegistry.hpp"
10 #include "../world/ChunkRenderer.hpp"
11 #include "../world/World.hpp"
24 const Interface::Config &,
25 const World::Config &,
29 void OnEnter() override;
31 void Handle(const SDL_Event &) override;
32 void Update(int dt) override;
33 void Render(Viewport &) override;
35 World &GetWorld() noexcept { return world; }
36 Interface &GetInterface() noexcept { return interface; }
40 BlockTypeRegistry block_types;
42 ChunkRenderer chunk_renderer;