pub struct EventRepel {
pub clock: u32,
pub id: Player,
pub pos: Position,
pub rot: Rotation,
pub speed: Velocity,
pub energy: Energy,
pub energy_regen: EnergyRegen,
pub players: Vec<EventRepelPlayer>,
pub mobs: Vec<EventRepelMob>,
}Expand description
Event triggered when something (player or missile) is deflected by a goliath repel.
Fields§
§clock: u32§id: Player§pos: Position§rot: Rotation§speed: Velocity§energy: Energy§energy_regen: EnergyRegen§players: Vec<EventRepelPlayer>§mobs: Vec<EventRepelMob>Trait Implementations§
Source§impl Clone for EventRepel
impl Clone for EventRepel
Source§fn clone(&self) -> EventRepel
fn clone(&self) -> EventRepel
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 EventRepel
impl Debug for EventRepel
Source§impl<'de> DeserializeV5<'de> for EventRepel
impl<'de> DeserializeV5<'de> for EventRepel
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<EventRepel> for ServerPacket
impl From<EventRepel> for ServerPacket
Source§fn from(v: EventRepel) -> Self
fn from(v: EventRepel) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for EventRepel
impl SerializeV5 for EventRepel
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
Auto Trait Implementations§
impl Freeze for EventRepel
impl RefUnwindSafe for EventRepel
impl Send for EventRepel
impl Sync for EventRepel
impl Unpin for EventRepel
impl UnwindSafe for EventRepel
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