1 #ifndef BLANK_STANDALONE_MASTERSTATE_HPP_
2 #define BLANK_STANDALONE_MASTERSTATE_HPP_
4 #include "../app/State.hpp"
6 #include "PreloadState.hpp"
7 #include "UnloadState.hpp"
8 #include "../ai/Spawner.hpp"
9 #include "../graphics/SkyBox.hpp"
10 #include "../model/Skeletons.hpp"
11 #include "../ui/Interface.hpp"
12 #include "../world/BlockTypeRegistry.hpp"
13 #include "../world/ChunkLoader.hpp"
14 #include "../world/ChunkRenderer.hpp"
15 #include "../world/Generator.hpp"
16 #include "../world/World.hpp"
23 namespace standalone {
31 const Generator::Config &,
32 const Interface::Config &,
33 const World::Config &,
37 void OnEnter() override;
39 void Handle(const SDL_Event &) override;
40 void Update(int dt) override;
41 void Render(Viewport &) override;
43 World &GetWorld() noexcept { return world; }
44 Interface &GetInterface() noexcept { return interface; }
48 BlockTypeRegistry block_types;
52 ChunkLoader chunk_loader;
53 ChunkRenderer chunk_renderer;