Added WorldEdit step buttons.

This commit is contained in:
2025-02-19 03:34:20 -06:00
parent 6ba265e9e2
commit d82c821e6f
6 changed files with 58 additions and 18 deletions

View File

@@ -121,6 +121,11 @@ namespace CaveGame::ClientApp
// TODO: Check that current ctx is game context
game_ctx->world->SetTileSimulationEnabled(!value);
};
tile_tool->TileSimulationStep += [this] (int steps) {
for (int i = 0; i < steps; i++) {
game_ctx->world->DoTileTiccs(0.f);
}
};
}
void CaveGameWindow::create_window_widgets()