1 #ifndef BLANK_STANDALONE_MASTERSTATE_HPP_
2 #define BLANK_STANDALONE_MASTERSTATE_HPP_
4 #include "../app/State.hpp"
5 #include "../ui/ClientController.hpp"
7 #include "PreloadState.hpp"
8 #include "UnloadState.hpp"
9 #include "../ai/Spawner.hpp"
10 #include "../audio/SoundBank.hpp"
11 #include "../graphics/SkyBox.hpp"
12 #include "../shared/ChatState.hpp"
13 #include "../shared/CLI.hpp"
14 #include "../shared/WorldResources.hpp"
15 #include "../ui/DirectInput.hpp"
16 #include "../ui/HUD.hpp"
17 #include "../ui/InteractiveManipulator.hpp"
18 #include "../ui/Interface.hpp"
19 #include "../world/ChunkIndex.hpp"
20 #include "../world/ChunkLoader.hpp"
21 #include "../world/ChunkRenderer.hpp"
22 #include "../world/Generator.hpp"
23 #include "../world/Player.hpp"
24 #include "../world/World.hpp"
32 namespace standalone {
36 , public ClientController
37 , public ChatState::Responder {
43 const Generator::Config &,
44 const World::Config &,
49 void OnResume() override;
50 void OnPause() override;
52 void OnFocus() override;
53 void OnBlur() override;
55 void Handle(const SDL_Event &) override;
56 void Update(int dt) override;
57 void Render(Viewport &) override;
59 World &GetWorld() noexcept { return world; }
60 Interface &GetInterface() noexcept { return interface; }
62 void SetAudio(bool) override;
63 void SetVideo(bool) override;
64 void SetHUD(bool) override;
65 void SetDebug(bool) override;
68 void OnLineSubmit(const std::string &) override;
75 const WorldSave &save;
77 ChunkIndex &spawn_index;
81 InteractiveManipulator manip;
85 ChunkLoader chunk_loader;
86 ChunkRenderer chunk_renderer;