]> git.localhorst.tv Git - blank.git/blob - src/standalone/PreloadState.hpp
more parameters for world generation
[blank.git] / src / standalone / PreloadState.hpp
1 #ifndef BLANK_STANDALONE_PRELOADSTATE_HPP_
2 #define BLANK_STANDALONE_PRELOADSTATE_HPP_
3
4 #include "../app/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 namespace standalone {
18
19 class PreloadState
20 : public State {
21
22 public:
23         PreloadState(Environment &, ChunkLoader &, ChunkRenderer &);
24
25         void Handle(const SDL_Event &) override;
26         void Update(int dt) override;
27         void Render(Viewport &) override;
28
29 private:
30         Environment &env;
31         ChunkLoader &loader;
32         ChunkRenderer &render;
33         Progress progress;
34         std::size_t total;
35         std::size_t per_update;
36
37 };
38
39 }
40 }
41
42 #endif