Skip to main content

Module engine

Module engine 

Source
Expand description

CivLab Simulation Engine - Core Tick Loop with ECS

This module provides the deterministic simulation loop with entity component system.

Structs§

Building
Building entity component
Citizen
Citizen entity component
MilitaryUnit
Military unit component
Position
Position on the hex grid
Production
Production capability
Resources
Resource storage component
Simulation
Simulation engine combining state + ECS world
SimulationSnapshot
Snapshot of simulation state
WorldState
Global world state

Enums§

BuildingType
JobType
ResourceType
UnitType

Type Aliases§

SimRng
Seeded RNG for reproducible simulation