X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FWorldState.hpp;h=04bf6a84a8100a744018e0f0ba7036a87dff874f;hb=e872614d387c4bfc3afb04bcc7cba3d9b8f3954b;hp=38f894420b717115c0cb049beb67c1f130b2b702;hpb=551573ecb04969696f916aeb5485658e298a7f6b;p=blank.git diff --git a/src/app/WorldState.hpp b/src/app/WorldState.hpp index 38f8944..04bf6a8 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" @@ -22,11 +24,14 @@ public: const WorldSave & ); + void OnEnter() override; + void Handle(const SDL_Event &) override; void Update(int dt) override; void Render(Viewport &) override; World &GetWorld() noexcept { return world; } + Interface &GetInterface() noexcept { return interface; } private: Environment &env; @@ -34,6 +39,9 @@ private: Spawner spawner; Interface interface; + PreloadState preload; + UnloadState unload; + }; }