pub struct SimulationConfig {
pub tick_rate_ms: u32,
pub ticks_per_day: u32,
pub time_dilation: f64,
pub max_entities_per_area: u32,
pub max_events_per_tick: u32,
pub deterministic_seed: u64,
}Expand description
Core simulation tick rate and entity limits.
Fields§
§tick_rate_ms: u32Milliseconds per simulation tick. Default: 100.
ticks_per_day: u32Number of ticks that constitute one in-game day. Default: 365.
time_dilation: f64Time dilation multiplier. 1.0 = real time. Default: 1.0.
max_entities_per_area: u32Maximum entities allowed in a single area. Default: 256.
max_events_per_tick: u32Maximum canon events emitted per tick. Default: 1024.
deterministic_seed: u64Deterministic seed for RNG. 0 = use ctx.rng (server-provided). Default: 0.
Trait Implementations§
Source§impl Clone for SimulationConfig
impl Clone for SimulationConfig
Source§fn clone(&self) -> SimulationConfig
fn clone(&self) -> SimulationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulationConfig
impl Debug for SimulationConfig
Source§impl Default for SimulationConfig
impl Default for SimulationConfig
Source§impl<'de> Deserialize<'de> for SimulationConfig
impl<'de> Deserialize<'de> for SimulationConfig
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 SimulationConfig
impl RefUnwindSafe for SimulationConfig
impl Send for SimulationConfig
impl Sync for SimulationConfig
impl Unpin for SimulationConfig
impl UnsafeUnpin for SimulationConfig
impl UnwindSafe for SimulationConfig
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