X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FPreloadState.hpp;h=1e750d9c815293255a4010474003f8309d31fde9;hb=07b8335e7bfd631e0878e183c87238812d632c56;hp=8dcd7060934e1c45bbdef70c5faebcdaf6b1378f;hpb=e1209ec25c4cc91e13889876106f56bd51aa96e2;p=blank.git diff --git a/src/standalone/PreloadState.hpp b/src/standalone/PreloadState.hpp index 8dcd706..1e750d9 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 "../app/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;