X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FMasterState.hpp;h=680bb5e620cbaa15a9a3f6414f02ecf0c767263c;hb=ba55bf4293f3abc742eef710545a4b207ba2c820;hp=84c331523e43a4602a52a07d4eed6cdd7bbd22a1;hpb=5178dd1e226d45db7ae61e3d7d6866dc4254d9ae;p=blank.git diff --git a/src/standalone/MasterState.hpp b/src/standalone/MasterState.hpp index 84c3315..680bb5e 100644 --- a/src/standalone/MasterState.hpp +++ b/src/standalone/MasterState.hpp @@ -8,6 +8,7 @@ #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" @@ -43,7 +44,8 @@ public: ); ~MasterState(); - void OnEnter() override; + void OnResume() override; + void OnPause() override; void Handle(const SDL_Event &) override; void Update(int dt) override; @@ -61,11 +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;