[][src]Trait game::info::ContextualActions

pub trait ContextualActions {
    fn actions(&self, app: &App, id: ID) -> Vec<(Key, String)>;
fn execute(
        &mut self,
        ctx: &mut EventCtx,
        app: &mut App,
        id: ID,
        action: String,
        close_panel: &mut bool
    ) -> Transition;
fn is_paused(&self) -> bool; fn gameplay_mode(&self) -> GameplayMode { ... } }

Required methods

fn actions(&self, app: &App, id: ID) -> Vec<(Key, String)>

fn execute(
    &mut self,
    ctx: &mut EventCtx,
    app: &mut App,
    id: ID,
    action: String,
    close_panel: &mut bool
) -> Transition

fn is_paused(&self) -> bool

Loading content...

Provided methods

fn gameplay_mode(&self) -> GameplayMode

Loading content...

Implementors

impl ContextualActions for GameplayMode[src]

impl ContextualActions for game::debug::Actions[src]

impl ContextualActions for game::sandbox::gameplay::commute::Actions[src]

impl ContextualActions for game::sandbox::Actions[src]

Loading content...