X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FUnloadState.hpp;h=959fa94df5039afc8fb345bb7b978cc2d8fac8e6;hb=07b8335e7bfd631e0878e183c87238812d632c56;hp=5728ba706965f8fa105b7bc7b7c9e6ffbce468fd;hpb=e1209ec25c4cc91e13889876106f56bd51aa96e2;p=blank.git diff --git a/src/standalone/UnloadState.hpp b/src/standalone/UnloadState.hpp index 5728ba7..959fa94 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 "../app/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;