Trait game::info::ContextualActions [−][src]
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<App>; fn is_paused(&self) -> bool; fn gameplay_mode(&self) -> GameplayMode; }
Required methods
fn actions(&self, app: &App, id: ID) -> Vec<(Key, String)>
[src]
fn execute(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
id: ID,
action: String,
close_panel: &mut bool
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
id: ID,
action: String,
close_panel: &mut bool
) -> Transition<App>
fn is_paused(&self) -> bool
[src]
fn gameplay_mode(&self) -> GameplayMode
[src]
Implementors
impl ContextualActions for game::debug::Actions
[src]
impl ContextualActions for game::debug::Actions
[src]impl ContextualActions for game::sandbox::Actions
[src]
impl ContextualActions for game::sandbox::Actions
[src]