X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FWorldState.hpp;h=6ab613f85e88634b6dd03bf276964276330a649d;hb=74b5bd523b0312ee71f0443789bb40f1476054a4;hp=e4edd121cc664fa45e4fa713628891dbe724ab32;hpb=22b25d4b9cc24e249bc8007757267cea00ab18d3;p=blank.git diff --git a/src/app/WorldState.hpp b/src/app/WorldState.hpp index e4edd12..6ab613f 100644 --- a/src/app/WorldState.hpp +++ b/src/app/WorldState.hpp @@ -1,7 +1,9 @@ #ifndef BLANK_APP_WORLDSTATE_HPP_ #define BLANK_APP_WORLDSTATE_HPP_ +#include "PreloadState.hpp" #include "State.hpp" +#include "UnloadState.hpp" #include "../ai/Spawner.hpp" #include "../ui/Interface.hpp" #include "../world/World.hpp" @@ -18,9 +20,12 @@ public: WorldState( Environment &, const Interface::Config &, - const World::Config & + const World::Config &, + const WorldSave & ); + void OnEnter() override; + void Handle(const SDL_Event &) override; void Update(int dt) override; void Render(Viewport &) override; @@ -33,6 +38,9 @@ private: Spawner spawner; Interface interface; + PreloadState preload; + UnloadState unload; + }; }