]> git.localhorst.tv Git - blank.git/blobdiff - src/standalone/PreloadState.hpp
some linting
[blank.git] / src / standalone / PreloadState.hpp
index 8dcd7060934e1c45bbdef70c5faebcdaf6b1378f..2012d4b7ef963d7b6c53760bf11559f683088890 100644 (file)
@@ -1,9 +1,7 @@
 #ifndef BLANK_STANDALONE_PRELOADSTATE_HPP_
 #define BLANK_STANDALONE_PRELOADSTATE_HPP_
 
-#include "../app/State.hpp"
-
-#include "../ui/Progress.hpp"
+#include "../shared/ProgressState.hpp"
 
 #include <cstddef>
 
@@ -17,20 +15,17 @@ class Environment;
 namespace standalone {
 
 class PreloadState
-: public State {
+: public ProgressState {
 
 public:
        PreloadState(Environment &, ChunkLoader &, ChunkRenderer &);
 
-       void Handle(const SDL_Event &) override;
        void Update(int dt) override;
-       void Render(Viewport &) override;
 
 private:
        Environment &env;
        ChunkLoader &loader;
        ChunkRenderer &render;
-       Progress progress;
        std::size_t total;
        std::size_t per_update;