X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FMasterState.hpp;h=f72c38ceed7b73f83059b3e1249c4da46f4c42f9;hb=7e782291e0ce39eb2d4e8c1df28f682c313e6f8d;hp=f2c702fb2033df38fbfe39df28e1ac930760e5f8;hpb=b066e776622f96e906600a0c4a08de392bd03676;p=blank.git diff --git a/src/standalone/MasterState.hpp b/src/standalone/MasterState.hpp index f2c702f..f72c38c 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/Skeletons.hpp" +#include "../model/ModelRegistry.hpp" +#include "../model/ShapeRegistry.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,14 @@ public: private: Config &config; Environment &env; + ShapeRegistry shapes; BlockTypeRegistry block_types; + ModelRegistry models; + const WorldSave &save; World world; + ChunkIndex &spawn_index; Player &player; + bool spawn_player; HUD hud; InteractiveManipulator manip; DirectInput input; @@ -69,7 +78,6 @@ private: Generator generator; ChunkLoader chunk_loader; ChunkRenderer chunk_renderer; - Skeletons skeletons; Spawner spawner; SkyBox sky;