ui(guide): 💄 Enhance PopulationDashboardPage component with improved population metrics visualization and interactivity
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
771e84bde1
commit
e3aae475a4
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import { FadeIn, PageTitle, Section, SectionHeading, Prose, FilterRow, FilterChi
|
|||
import { Heading, Text } from '@lilith/ui-typography'
|
||||
import { ALL_BIOMES, BIOME_MAP, QUALITY_COLORS } from '@/data/ecology'
|
||||
import type { GridState, TileState } from '@magic-civ/engine-ts'
|
||||
import { classifyBiome } from '@magic-civ/engine-ts'
|
||||
import { classifyBiome, DEFAULT_DT } from '@magic-civ/engine-ts'
|
||||
import { WasmEcologyPhysics, WasmGrid } from '@magic-civ/physics-rs'
|
||||
|
||||
const W = 30
|
||||
|
|
@ -140,7 +140,7 @@ function useSimulation(): TurnRecord[] {
|
|||
|
||||
const wg = WasmGrid.fromJSON(grid)
|
||||
for (let t = 1; t <= MAX_TURNS; t++) {
|
||||
eco.processStep(wg)
|
||||
eco.processStep(wg, DEFAULT_DT)
|
||||
if (t % 5 === 0 || t <= 10 || t === MAX_TURNS) {
|
||||
grid = wg.toJSON() as GridState
|
||||
records.push(recordTurn(grid, t))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue