refactor: move Weather instance to WorldInfo

This commit is contained in:
MihailRis 2025-02-28 18:49:44 +03:00
parent 0ea842580c
commit 9c4db8fa10
9 changed files with 116 additions and 61 deletions

View file

@ -69,6 +69,8 @@ LevelController::LevelController(
}
void LevelController::update(float delta, bool pause) {
level->getWorld()->getInfo().weather.update(delta);
for (const auto& [_, player] : *level->players) {
if (player->isSuspended()) {
continue;