Added WorldEdit step buttons.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user