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