Struct sim::make::load::SimFlags [−][src]
pub struct SimFlags { pub load: String, pub modifiers: Vec<ScenarioModifier>, pub rng_seed: u64, pub opts: SimOptions, }
SimFlags specifies a simulation to setup.
Fields
load: String
A path to some file.
- a savestate: restore the simulation exactly from some savestate
- a scenario
- some kind of map: start an empty simulation on the map
modifiers: Vec<ScenarioModifier>
rng_seed: u64
opts: SimOptions
Implementations
impl SimFlags
[src]
impl SimFlags
[src]pub const RNG_SEED: u64
[src]
pub fn from_args(args: &mut CmdArgs) -> SimFlags
[src]
pub fn for_test(run_name: &str) -> SimFlags
[src]
pub fn make_rng(&self) -> XorShiftRng
[src]
pub fn load_synchronously(
&self,
timer: &mut Timer<'_>
) -> (Map, Sim, XorShiftRng)
[src]
&self,
timer: &mut Timer<'_>
) -> (Map, Sim, XorShiftRng)
Loads a map and simulation. Not appropriate for use in the UI or on web.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SimFlags
impl Send for SimFlags
impl Sync for SimFlags
impl Unpin for SimFlags
impl UnwindSafe for SimFlags
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,