1 #ifndef BLANK_SERVER_SERVERSTATE_HPP_
2 #define BLANK_SERVER_SERVERSTATE_HPP_
5 #include "../ai/Spawner.hpp"
6 #include "../app/IntervalTimer.hpp"
7 #include "../app/State.hpp"
8 #include "../model/Skeletons.hpp"
9 #include "../world/BlockTypeRegistry.hpp"
10 #include "../world/ChunkLoader.hpp"
11 #include "../world/Generator.hpp"
12 #include "../world/World.hpp"
17 class HeadlessEnvironment;
27 HeadlessEnvironment &,
28 const Generator::Config &,
29 const World::Config &,
31 const Server::Config &
34 void Handle(const SDL_Event &) override;
35 void Update(int dt) override;
36 void Render(Viewport &) override;
39 HeadlessEnvironment &env;
40 BlockTypeRegistry block_types;
43 ChunkLoader chunk_loader;
47 IntervalTimer loop_timer;