1 #ifndef BLANK_APP_SERVERSTATE_HPP_
2 #define BLANK_APP_SERVERSTATE_HPP_
4 #include "IntervalTimer.hpp"
6 #include "../ai/Spawner.hpp"
7 #include "../model/Skeletons.hpp"
8 #include "../net/Server.hpp"
9 #include "../world/BlockTypeRegistry.hpp"
10 #include "../world/ChunkLoader.hpp"
11 #include "../world/Generator.hpp"
12 #include "../world/World.hpp"
17 class HeadlessEnvironment;
25 HeadlessEnvironment &,
26 const Generator::Config &,
27 const World::Config &,
29 const Server::Config &
32 void Handle(const SDL_Event &) override;
33 void Update(int dt) override;
34 void Render(Viewport &) override;
37 HeadlessEnvironment &env;
38 BlockTypeRegistry block_types;
41 ChunkLoader chunk_loader;
45 IntervalTimer loop_timer;