X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FMasterState.hpp;h=680bb5e620cbaa15a9a3f6414f02ecf0c767263c;hb=ba55bf4293f3abc742eef710545a4b207ba2c820;hp=f2c702fb2033df38fbfe39df28e1ac930760e5f8;hpb=b066e776622f96e906600a0c4a08de392bd03676;p=blank.git diff --git a/src/standalone/MasterState.hpp b/src/standalone/MasterState.hpp index f2c702f..680bb5e 100644 --- a/src/standalone/MasterState.hpp +++ b/src/standalone/MasterState.hpp @@ -8,12 +8,14 @@ #include "UnloadState.hpp" #include "../ai/Spawner.hpp" #include "../graphics/SkyBox.hpp" +#include "../model/ShapeRegistry.hpp" #include "../model/Skeletons.hpp" #include "../ui/DirectInput.hpp" #include "../ui/HUD.hpp" #include "../ui/InteractiveManipulator.hpp" #include "../ui/Interface.hpp" #include "../world/BlockTypeRegistry.hpp" +#include "../world/ChunkIndex.hpp" #include "../world/ChunkLoader.hpp" #include "../world/ChunkRenderer.hpp" #include "../world/Generator.hpp" @@ -40,8 +42,10 @@ public: const World::Config &, const WorldSave & ); + ~MasterState(); - void OnEnter() override; + void OnResume() override; + void OnPause() override; void Handle(const SDL_Event &) override; void Update(int dt) override; @@ -59,9 +63,13 @@ public: private: Config &config; Environment &env; + ShapeRegistry shapes; BlockTypeRegistry block_types; + const WorldSave &save; World world; + ChunkIndex &spawn_index; Player &player; + bool spawn_player; HUD hud; InteractiveManipulator manip; DirectInput input;