: env(env)
, block_types()
, world(block_types, wc)
+, spawn_index(world.Chunks().MakeIndex(wc.spawn, 3))
, generator(gc)
, chunk_loader(world.Chunks(), generator, ws)
, skeletons()
std::cout << "listening on UDP port " << config.net.port << std::endl;
}
+ServerState::~ServerState() {
+ world.Chunks().UnregisterIndex(spawn_index);
+}
+
void ServerState::Handle(const SDL_Event &event) {
if (event.type == SDL_QUIT) {