diff options
| author | untodesu <kirill@untode.su> | 2025-12-26 14:50:33 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-26 14:50:33 +0500 |
| commit | 6c2abde5c99a236453b795abaa6d7d70105e31f7 (patch) | |
| tree | f085049b9615a7d03cca5de40adb6529d6c13e11 /src/game/server/game.cc | |
| parent | f40d09cb8f712e87691af4912f3630d92d692779 (diff) | |
| download | voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.tar.bz2 voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.zip | |
Just a big Ctrl+H refactoring
Diffstat (limited to 'src/game/server/game.cc')
| -rw-r--r-- | src/game/server/game.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/game/server/game.cc b/src/game/server/game.cc index 3a13690..deb7d68 100644 --- a/src/game/server/game.cc +++ b/src/game/server/game.cc @@ -66,12 +66,12 @@ void server_game::init(void) server_chat::init(); server_recieve::init(); - world::worldgen::init(); + worldgen::init(); - world::unloader::init(); - world::universe::init(); + unloader::init(); + universe::init(); - world::random_tick::init(); + random_tick::init(); } void server_game::init_late(void) @@ -99,8 +99,8 @@ void server_game::init_late(void) game_voxels::populate(); game_items::populate(); - world::unloader::init_late(); - world::universe::init_late(); + unloader::init_late(); + universe::init_late(); sessions::init_post_universe(); } @@ -119,21 +119,21 @@ void server_game::shutdown(void) enet_host_service(globals::server_host, nullptr, 500); enet_host_destroy(globals::server_host); - world::universe::shutdown(); + universe::shutdown(); } void server_game::fixed_update(void) { // FIXME: threading for(auto dimension : globals::dimensions) { - entity::Collision::fixed_update(dimension.second); - entity::Velocity::fixed_update(dimension.second); - entity::Transform::fixed_update(dimension.second); - entity::Gravity::fixed_update(dimension.second); - entity::Stasis::fixed_update(dimension.second); - - for(auto [entity, component] : dimension.second->chunks.view<world::ChunkComponent>().each()) { - world::random_tick::tick(component.cpos, component.chunk); + Collision::fixed_update(dimension.second); + Velocity::fixed_update(dimension.second); + Transform::fixed_update(dimension.second); + Gravity::fixed_update(dimension.second); + Stasis::fixed_update(dimension.second); + + for(auto [entity, component] : dimension.second->chunks.view<ChunkComponent>().each()) { + random_tick::tick(component.cpos, component.chunk); } } } @@ -158,6 +158,6 @@ void server_game::fixed_update_late(void) // FIXME: threading for(auto dimension : globals::dimensions) { - world::unloader::fixed_update_late(dimension.second); + unloader::fixed_update_late(dimension.second); } } |
