]> git.localhorst.tv Git - blank.git/blobdiff - src/standalone/UnloadState.hpp
some linting
[blank.git] / src / standalone / UnloadState.hpp
index 5728ba706965f8fa105b7bc7b7c9e6ffbce468fd..7782ce2d1df3bde08eb9e0d78ec9f054fc8d1cb6 100644 (file)
@@ -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 <cstddef>
 #include <list>
@@ -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<Chunk>::iterator cur;
        std::list<Chunk>::iterator end;
        std::size_t done;