pub struct PlayerFire {
pub clock: u32,
pub id: Player,
pub energy: Energy,
pub energy_regen: EnergyRegen,
pub projectiles: Vec<PlayerFireProjectile>,
}Expand description
Packet for whan a player fires missiles.
Fields§
§clock: u32§id: Player§energy: Energy§energy_regen: EnergyRegen§projectiles: Vec<PlayerFireProjectile>Trait Implementations§
Source§impl Clone for PlayerFire
impl Clone for PlayerFire
Source§fn clone(&self) -> PlayerFire
fn clone(&self) -> PlayerFire
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 PlayerFire
impl Debug for PlayerFire
Source§impl<'de> DeserializeV5<'de> for PlayerFire
impl<'de> DeserializeV5<'de> for PlayerFire
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<PlayerFire> for ServerPacket
impl From<PlayerFire> for ServerPacket
Source§fn from(v: PlayerFire) -> Self
fn from(v: PlayerFire) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for PlayerFire
impl SerializeV5 for PlayerFire
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
Auto Trait Implementations§
impl Freeze for PlayerFire
impl RefUnwindSafe for PlayerFire
impl Send for PlayerFire
impl Sync for PlayerFire
impl Unpin for PlayerFire
impl UnwindSafe for PlayerFire
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