pub struct PlayerFireProjectile {
pub id: Mob,
pub ty: MobType,
pub pos: Position,
pub speed: Velocity,
pub accel: Accel,
pub max_speed: Speed,
}Expand description
Data on a projectile fired by a plane.
This is used in the projectiles array of the PlayerFire packet.
Fields§
§id: Mob§ty: MobType§pos: Position§speed: Velocity§accel: Accel§max_speed: SpeedTrait Implementations§
Source§impl Clone for PlayerFireProjectile
impl Clone for PlayerFireProjectile
Source§fn clone(&self) -> PlayerFireProjectile
fn clone(&self) -> PlayerFireProjectile
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 PlayerFireProjectile
impl Debug for PlayerFireProjectile
Source§impl<'de> DeserializeV5<'de> for PlayerFireProjectile
impl<'de> DeserializeV5<'de> for PlayerFireProjectile
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl SerializeV5 for PlayerFireProjectile
impl SerializeV5 for PlayerFireProjectile
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for PlayerFireProjectile
Auto Trait Implementations§
impl Freeze for PlayerFireProjectile
impl RefUnwindSafe for PlayerFireProjectile
impl Send for PlayerFireProjectile
impl Sync for PlayerFireProjectile
impl Unpin for PlayerFireProjectile
impl UnwindSafe for PlayerFireProjectile
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