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

fn gameplay_mode(&self) -> GameplayMode

Loading content...

Implementors

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

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

Loading content...