[][src]Struct game::app::PerMap

pub struct PerMap {
    pub map: Map,
    pub draw_map: DrawMap,
    pub sim: Sim,
    pub current_selection: Option<ID>,
    pub current_flags: Flags,
    pub last_warped_from: Option<(Pt2D, f64)>,
    pub sim_cb: Option<Box<dyn SimCallback>>,
    pub show_zorder: isize,
    pub zorder_range: (isize, isize),
    pub dirty_from_edits: bool,
    pub has_modified_trips: bool,
}

Fields

map: Mapdraw_map: DrawMapsim: Simcurrent_selection: Option<ID>current_flags: Flagslast_warped_from: Option<(Pt2D, f64)>sim_cb: Option<Box<dyn SimCallback>>show_zorder: isizezorder_range: (isize, isize)dirty_from_edits: boolhas_modified_trips: bool

Implementations

impl PerMap[src]

pub fn new(
    flags: Flags,
    cs: &ColorScheme,
    ctx: &mut EventCtx,
    timer: &mut Timer
) -> PerMap
[src]

pub fn clear_sim(&mut self) -> Sim[src]

Auto Trait Implementations

impl !RefUnwindSafe for PerMap

impl !Send for PerMap

impl !Sync for PerMap

impl Unpin for PerMap

impl !UnwindSafe for PerMap

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,