pub struct PlayerHit {
pub id: Mob,
pub ty: MobType,
pub pos: Position,
pub owner: Player,
pub players: Vec<PlayerHitPlayer>,
}Expand description
Event for when players have been hit by a missile.
Fields§
§id: Mob§ty: MobType§pos: Position§owner: Player§players: Vec<PlayerHitPlayer>Trait Implementations§
Source§impl<'de> DeserializeV5<'de> for PlayerHit
impl<'de> DeserializeV5<'de> for PlayerHit
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<PlayerHit> for ServerPacket
impl From<PlayerHit> for ServerPacket
Source§impl SerializeV5 for PlayerHit
impl SerializeV5 for PlayerHit
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
Auto Trait Implementations§
impl Freeze for PlayerHit
impl RefUnwindSafe for PlayerHit
impl Send for PlayerHit
impl Sync for PlayerHit
impl Unpin for PlayerHit
impl UnwindSafe for PlayerHit
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