X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FPreloadState.hpp;h=2012d4b7ef963d7b6c53760bf11559f683088890;hb=3185bad87c06739e4ec19b456c7158437ba9621f;hp=8dcd7060934e1c45bbdef70c5faebcdaf6b1378f;hpb=e1209ec25c4cc91e13889876106f56bd51aa96e2;p=blank.git diff --git a/src/standalone/PreloadState.hpp b/src/standalone/PreloadState.hpp index 8dcd706..2012d4b 100644 --- a/src/standalone/PreloadState.hpp +++ b/src/standalone/PreloadState.hpp @@ -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 @@ -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;