pub struct SimulationConfig {
pub seed: u64,
pub duration_frames: u64,
pub fps: u32,
pub max_entities: usize,
pub record_states: bool,
}Expand description
Configuration for simulation runs
Fields§
§seed: u64Seed for deterministic random generation
duration_frames: u64Duration in frames (e.g., 3600 for 1 minute at 60fps)
fps: u32Target frames per second for timing calculations
max_entities: usizeMaximum entities allowed before stopping
record_states: boolWhether to record full state history
Implementations§
Source§impl SimulationConfig
impl SimulationConfig
Sourcepub const fn new(seed: u64, duration_frames: u64) -> Self
pub const fn new(seed: u64, duration_frames: u64) -> Self
Create a new config with the given seed and duration
Sourcepub const fn with_duration(self, frames: u64) -> Self
pub const fn with_duration(self, frames: u64) -> Self
Set the duration in frames
Sourcepub const fn with_state_recording(self, enabled: bool) -> Self
pub const fn with_state_recording(self, enabled: bool) -> Self
Enable state recording
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
impl Copy for SimulationConfig
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