]> git.localhorst.tv Git - blank.git/blob - src/app/PreloadState.hpp
check for entities under crosshair
[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 Environment;
15
16 class PreloadState
17 : public State {
18
19 public:
20         PreloadState(Environment &, ChunkLoader &);
21
22         void Handle(const SDL_Event &) override;
23         void Update(int dt) override;
24         void Render(Viewport &) override;
25
26 private:
27         Environment &env;
28         ChunkLoader &loader;
29         Progress progress;
30         std::size_t total;
31         std::size_t per_update;
32
33 };
34
35 }
36
37 #endif