Enum game::sandbox::gameplay::GameplayMode [−][src]
pub enum GameplayMode { Freeform(MapName), PlayScenario(MapName, String, Vec<ScenarioModifier>), FixTrafficSignals, OptimizeCommute(OrigPersonID, Duration), Actdev(MapName, String, bool), Tutorial(TutorialPointer), }
Variants
Freeform(MapName)
PlayScenario(MapName, String, Vec<ScenarioModifier>)
OptimizeCommute(OrigPersonID, Duration)
Tutorial(TutorialPointer)
Implementations
impl GameplayMode
[src]
impl GameplayMode
[src]pub fn map_name(&self) -> MapName
[src]
pub fn scenario(
&self,
app: &App,
rng: XorShiftRng,
timer: &mut Timer<'_>
) -> LoadScenario
[src]
&self,
app: &App,
rng: XorShiftRng,
timer: &mut Timer<'_>
) -> LoadScenario
pub fn can_edit_lanes(&self) -> bool
[src]
pub fn can_edit_stop_signs(&self) -> bool
[src]
pub fn can_jump_to_time(&self) -> bool
[src]
pub fn allows(&self, edits: &MapEdits) -> bool
[src]
pub fn initialize(
&self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Box<dyn GameplayState>
[src]
&self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Box<dyn GameplayState>
Must be called after the scenario has been setup. The caller will call recreate_panels after this, so each constructor doesn’t need to.
Trait Implementations
impl Clone for GameplayMode
[src]
impl Clone for GameplayMode
[src]fn clone(&self) -> GameplayMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Ord for GameplayMode
[src]
impl Ord for GameplayMode
[src]impl PartialEq<GameplayMode> for GameplayMode
[src]
impl PartialEq<GameplayMode> for GameplayMode
[src]fn eq(&self, other: &GameplayMode) -> bool
[src]
fn ne(&self, other: &GameplayMode) -> bool
[src]
impl PartialOrd<GameplayMode> for GameplayMode
[src]
impl PartialOrd<GameplayMode> for GameplayMode
[src]fn partial_cmp(&self, other: &GameplayMode) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Eq for GameplayMode
[src]
impl StructuralEq for GameplayMode
[src]
impl StructuralPartialEq for GameplayMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for GameplayMode
impl Send for GameplayMode
impl Sync for GameplayMode
impl Unpin for GameplayMode
impl UnwindSafe for GameplayMode
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
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>,