pub enum PlayerInputKind {
Move {
x: f32,
y: f32,
},
ToggleMining {
target: NetworkId,
},
FirePrimary,
}Expand description
Individual input actions performed by a player in a single tick.
Variants§
Move
Directional thrust/movement.
ToggleMining
Toggle mining beam on a specific target.
FirePrimary
Fire primary weapon (for VS-03).
Trait Implementations§
Source§impl Clone for PlayerInputKind
impl Clone for PlayerInputKind
Source§fn clone(&self) -> PlayerInputKind
fn clone(&self) -> PlayerInputKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerInputKind
impl Debug for PlayerInputKind
Source§impl<'de> Deserialize<'de> for PlayerInputKind
impl<'de> Deserialize<'de> for PlayerInputKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlayerInputKind
impl PartialEq for PlayerInputKind
Source§impl Serialize for PlayerInputKind
impl Serialize for PlayerInputKind
impl Copy for PlayerInputKind
impl StructuralPartialEq for PlayerInputKind
Auto Trait Implementations§
impl Freeze for PlayerInputKind
impl RefUnwindSafe for PlayerInputKind
impl Send for PlayerInputKind
impl Sync for PlayerInputKind
impl Unpin for PlayerInputKind
impl UnsafeUnpin for PlayerInputKind
impl UnwindSafe for PlayerInputKind
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