]> git.localhorst.tv Git - blank.git/blobdiff - src/standalone/MasterState.hpp
fix entity shader
[blank.git] / src / standalone / MasterState.hpp
index f2c702fb2033df38fbfe39df28e1ac930760e5f8..9e0b8e4c68e119fade7c03636bff1b71f79e30fb 100644 (file)
@@ -14,6 +14,7 @@
 #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 +41,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;
@@ -60,8 +63,11 @@ private:
        Config &config;
        Environment &env;
        BlockTypeRegistry block_types;
+       const WorldSave &save;
        World world;
+       ChunkIndex &spawn_index;
        Player &player;
+       bool spawn_player;
        HUD hud;
        InteractiveManipulator manip;
        DirectInput input;