pub struct SimConfig {
pub building: BuildingConfig,
pub elevators: Vec<ElevatorConfig>,
pub simulation: SimulationParams,
pub passenger_spawning: PassengerSpawnConfig,
}Expand description
Top-level simulation configuration, loadable from RON.
Validated at construction time by Simulation::new()
or SimulationBuilder::build().
Fields§
§building: BuildingConfigBuilding layout describing the stops (floors/stations) along the shaft.
elevators: Vec<ElevatorConfig>Elevator cars to install in the building.
Legacy flat list — used when building.lines is None.
When explicit lines are provided, elevators live inside each
LineConfig instead.
simulation: SimulationParamsGlobal simulation timing parameters.
passenger_spawning: PassengerSpawnConfigPassenger spawning parameters used by the game layer.
The core library does not consume these directly; they are stored here for games and traffic generators that read the config.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimConfig
impl<'de> Deserialize<'de> for SimConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SimConfig
impl RefUnwindSafe for SimConfig
impl Send for SimConfig
impl Sync for SimConfig
impl Unpin for SimConfig
impl UnsafeUnpin for SimConfig
impl UnwindSafe for SimConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more