pub enum GameAction {
MoveLeft,
MoveRight,
MoveUp,
MoveDown,
Fire,
Dash,
Jump,
Pause,
ActionAlt,
}Expand description
High-level semantic gameplay actions mapped to keyboard and pointer bindings via ActionMap.
Variants§
MoveLeft
Move avatar left.
MoveRight
Move avatar right.
MoveUp
Move avatar up.
MoveDown
Move avatar down.
Fire
Primary fire or attack action.
Dash
Quick dash / dodge boost.
Jump
Jump or thrust impulse.
Pause
Pause or resume simulation.
ActionAlt
Spawn or reset wave action.
Trait Implementations§
Source§impl Clone for GameAction
impl Clone for GameAction
impl Copy for GameAction
Source§impl Debug for GameAction
impl Debug for GameAction
impl Eq for GameAction
Source§impl Hash for GameAction
impl Hash for GameAction
Source§impl PartialEq for GameAction
impl PartialEq for GameAction
impl StructuralPartialEq for GameAction
Auto Trait Implementations§
impl Forget for GameAction
impl Freeze for GameAction
impl Move for GameAction
impl RefUnwindSafe for GameAction
impl Send for GameAction
impl Sync for GameAction
impl Unpin for GameAction
impl UnsafeUnpin for GameAction
impl UnwindSafe for GameAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more