1 #ifndef BLANK_STANDALONE_MASTERSTATE_HPP_
2 #define BLANK_STANDALONE_MASTERSTATE_HPP_
4 #include "../app/State.hpp"
5 #include "../ui/ClientController.hpp"
7 #include "DirectCLIFeedback.hpp"
8 #include "PreloadState.hpp"
9 #include "UnloadState.hpp"
10 #include "../ai/Spawner.hpp"
11 #include "../audio/SoundBank.hpp"
12 #include "../graphics/SkyBox.hpp"
13 #include "../shared/ChatState.hpp"
14 #include "../shared/CLI.hpp"
15 #include "../shared/WorldResources.hpp"
16 #include "../ui/DirectInput.hpp"
17 #include "../ui/HUD.hpp"
18 #include "../ui/InteractiveManipulator.hpp"
19 #include "../ui/Interface.hpp"
20 #include "../world/ChunkIndex.hpp"
21 #include "../world/ChunkLoader.hpp"
22 #include "../world/ChunkRenderer.hpp"
23 #include "../world/Generator.hpp"
24 #include "../world/Player.hpp"
25 #include "../world/World.hpp"
33 namespace standalone {
37 , public ClientController
38 , public ChatState::Responder {
44 const Generator::Config &,
45 const World::Config &,
50 void OnResume() override;
51 void OnPause() override;
53 void OnFocus() override;
54 void OnBlur() override;
56 void Handle(const SDL_Event &) override;
57 void Update(int dt) override;
58 void Render(Viewport &) override;
60 World &GetWorld() noexcept { return world; }
61 Interface &GetInterface() noexcept { return interface; }
63 void SetAudio(bool) override;
64 void SetVideo(bool) override;
65 void SetHUD(bool) override;
66 void SetDebug(bool) override;
67 void NextCamera() override;
70 void OnLineSubmit(const std::string &) override;
77 const WorldSave &save;
79 ChunkIndex &spawn_index;
83 InteractiveManipulator manip;
87 ChunkLoader chunk_loader;
88 ChunkRenderer chunk_renderer;
94 DirectCLIFeedback cli_ctx;