pub struct EventBoost {
pub clock: u32,
pub id: Player,
pub boost: bool,
pub pos: Position,
pub rot: Rotation,
pub speed: Velocity,
pub energy: Energy,
pub energy_regen: EnergyRegen,
}Expand description
A predator has begun/stopped boosting
Fields§
§clock: u32§id: Player§boost: bool§pos: Position§rot: Rotation§speed: Velocity§energy: Energy§energy_regen: EnergyRegenTrait Implementations§
Source§impl Clone for EventBoost
impl Clone for EventBoost
Source§fn clone(&self) -> EventBoost
fn clone(&self) -> EventBoost
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 EventBoost
impl Debug for EventBoost
Source§impl<'de> DeserializeV5<'de> for EventBoost
impl<'de> DeserializeV5<'de> for EventBoost
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<EventBoost> for ServerPacket
impl From<EventBoost> for ServerPacket
Source§fn from(v: EventBoost) -> Self
fn from(v: EventBoost) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for EventBoost
impl SerializeV5 for EventBoost
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for EventBoost
Auto Trait Implementations§
impl Freeze for EventBoost
impl RefUnwindSafe for EventBoost
impl Send for EventBoost
impl Sync for EventBoost
impl Unpin for EventBoost
impl UnwindSafe for EventBoost
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