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 "../model/Skeletons.hpp"
9 #include "../ui/Interface.hpp"
10 #include "../world/BlockTypeRegistry.hpp"
11 #include "../world/ChunkLoader.hpp"
12 #include "../world/ChunkRenderer.hpp"
13 #include "../world/Generator.hpp"
14 #include "../world/World.hpp"
27 const Generator::Config &,
28 const Interface::Config &,
29 const World::Config &,
33 void OnEnter() override;
35 void Handle(const SDL_Event &) override;
36 void Update(int dt) override;
37 void Render(Viewport &) override;
39 World &GetWorld() noexcept { return world; }
40 Interface &GetInterface() noexcept { return interface; }
44 BlockTypeRegistry block_types;
48 ChunkLoader chunk_loader;
49 ChunkRenderer chunk_renderer;