[][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>

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)

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 BikeNetwork[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...