]> git.localhorst.tv Git - blank.git/blob - src/app/PreloadState.hpp
move server and client stuff around
[blank.git] / src / app / PreloadState.hpp
1 #ifndef BLANK_APP_PRELOADSTATE_HPP_
2 #define BLANK_APP_PRELOADSTATE_HPP_
3
4 #include "State.hpp"
5
6 #include "../ui/Progress.hpp"
7
8 #include <cstddef>
9
10
11 namespace blank {
12
13 class ChunkLoader;
14 class ChunkRenderer;
15 class Environment;
16
17 class PreloadState
18 : public State {
19
20 public:
21         PreloadState(Environment &, ChunkLoader &, ChunkRenderer &);
22
23         void Handle(const SDL_Event &) override;
24         void Update(int dt) override;
25         void Render(Viewport &) override;
26
27 private:
28         Environment &env;
29         ChunkLoader &loader;
30         ChunkRenderer &render;
31         Progress progress;
32         std::size_t total;
33         std::size_t per_update;
34
35 };
36
37 }
38
39 #endif