Skip to main content

Module sim

Module sim 

Source
Expand description

Top-level simulation runner. Top-level simulation runner and tick loop.

§Essential API

Simulation exposes a large surface, but most users only need the ~15 methods below, grouped by the order they appear in a typical game loop.

§Construction

§Per-tick driving

§Spawning and rerouting riders

§Observability

§Imperative control

§Persistence

Everything else (phase-runners, world-level accessors, energy, tag metrics, topology queries) is available for advanced use but is not required for the common case.

Structs§

ElevatorParams
Parameters for creating a new elevator at runtime.
LineParams
Parameters for creating a new line at runtime.
RiderBuilder
Fluent builder for spawning riders with optional configuration.
Simulation
The core simulation state, advanced by calling step().