pub struct ActionSet { /* private fields */ }
Expand description
Defines a group of actions that a player can perform.
Created with Session::create_action_set
.
Implementations§
Source§impl ActionSet
impl ActionSet
Sourcepub fn create_action<K: ActionKind>(&self, name: &'static str) -> Action<K>
pub fn create_action<K: ActionKind>(&self, name: &'static str) -> Action<K>
Create a new action that can be activated by the player.
Sourcepub fn set_enabled(&self, value: bool)
pub fn set_enabled(&self, value: bool)
Enable or disable all actions within this action set.
Auto Trait Implementations§
impl Freeze for ActionSet
impl !RefUnwindSafe for ActionSet
impl Send for ActionSet
impl Sync for ActionSet
impl Unpin for ActionSet
impl !UnwindSafe for ActionSet
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