Skip to main content

Interface: WorldState

Defined in: apps/paracosm/src/engine/types.ts:89

Runtime world state with typed record bags. Not everything is a flat numeric resource.

Properties

capacities

capacities: Record<string, number>

Defined in: apps/paracosm/src/engine/types.ts:93

Capacity constraints: life support, housing


environment

environment: Record<string, number | string | boolean>

Defined in: apps/paracosm/src/engine/types.ts:99

Environment conditions


metrics

metrics: Record<string, number>

Defined in: apps/paracosm/src/engine/types.ts:91

Numeric gauges: food, power, water, population, morale


politics

politics: Record<string, number | string | boolean>

Defined in: apps/paracosm/src/engine/types.ts:97

Political/social pressures


statuses

statuses: Record<string, string | boolean>

Defined in: apps/paracosm/src/engine/types.ts:95

Categorical state: governance status, faction alignment