X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FUnloadState.hpp;h=7782ce2d1df3bde08eb9e0d78ec9f054fc8d1cb6;hb=3185bad87c06739e4ec19b456c7158437ba9621f;hp=5728ba706965f8fa105b7bc7b7c9e6ffbce468fd;hpb=e1209ec25c4cc91e13889876106f56bd51aa96e2;p=blank.git diff --git a/src/standalone/UnloadState.hpp b/src/standalone/UnloadState.hpp index 5728ba7..7782ce2 100644 --- a/src/standalone/UnloadState.hpp +++ b/src/standalone/UnloadState.hpp @@ -1,9 +1,7 @@ #ifndef BLANK_STANDALONE_UNLOADSTATE_HPP_ #define BLANK_STANDALONE_UNLOADSTATE_HPP_ -#include "../app/State.hpp" - -#include "../ui/Progress.hpp" +#include "../shared/ProgressState.hpp" #include #include @@ -19,7 +17,7 @@ class WorldSave; namespace standalone { class UnloadState -: public State { +: public ProgressState { public: UnloadState(Environment &, ChunkStore &, const WorldSave &); @@ -28,13 +26,11 @@ public: void Handle(const SDL_Event &) override; void Update(int dt) override; - void Render(Viewport &) override; private: Environment &env; ChunkStore &chunks; const WorldSave &save; - Progress progress; std::list::iterator cur; std::list::iterator end; std::size_t done;