[][src]Trait game::layer::Layer

pub trait Layer {
    fn name(&self) -> Option<&'static str>;
fn event(
        &mut self,
        ctx: &mut EventCtx<'_>,
        app: &mut App,
        minimap: &Panel
    ) -> Option<LayerOutcome>;
fn draw(&self, g: &mut GfxCtx<'_>, app: &App);
fn draw_minimap(&self, g: &mut GfxCtx<'_>); }

Required methods

fn name(&self) -> Option<&'static str>[src]

fn event(
    &mut self,
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    minimap: &Panel
) -> Option<LayerOutcome>
[src]

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)[src]

fn draw_minimap(&self, g: &mut GfxCtx<'_>)[src]

Loading content...

Implementations

impl dyn Layer[src]

fn simple_event(
    ctx: &mut EventCtx<'_>,
    minimap: &Panel,
    panel: &mut Panel
) -> Option<LayerOutcome>
[src]

Implementors

impl Layer for Elevation[src]

impl Layer for ShowFavorites[src]

impl Layer for BikeActivity[src]

impl Layer for CongestionCaps[src]

impl Layer for Static[src]

impl Layer for Pandemic[src]

impl Layer for Efficiency[src]

impl Layer for Occupancy[src]

impl Layer for PopulationMap[src]

impl Layer for Backpressure[src]

impl Layer for CompareThroughput[src]

impl Layer for Delay[src]

impl Layer for Throughput[src]

impl Layer for TrafficJams[src]

impl Layer for TransitNetwork[src]

Loading content...