]> git.localhorst.tv Git - blank.git/blobdiff - src/standalone/PreloadState.hpp
block sounds depending on block type
[blank.git] / src / standalone / PreloadState.hpp
index 8dcd7060934e1c45bbdef70c5faebcdaf6b1378f..1e750d9c815293255a4010474003f8309d31fde9 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 "../app/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;