pub struct MobUpdate {
pub clock: u32,
pub id: Mob,
pub ty: MobType,
pub pos: Position,
pub speed: Velocity,
pub accel: Accel,
pub max_speed: Speed,
}Expand description
Update for a mobile missile-type mob.
This is sent when a mob enters a player’s view radius or something changes about its state that needs to be communicated to the client.
Fields§
§clock: u32§id: Mob§ty: MobType§pos: Position§speed: Velocity§accel: Accel§max_speed: SpeedTrait Implementations§
Source§impl<'de> DeserializeV5<'de> for MobUpdate
impl<'de> DeserializeV5<'de> for MobUpdate
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<MobUpdate> for ServerPacket
impl From<MobUpdate> for ServerPacket
Source§impl SerializeV5 for MobUpdate
impl SerializeV5 for MobUpdate
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for MobUpdate
Auto Trait Implementations§
impl Freeze for MobUpdate
impl RefUnwindSafe for MobUpdate
impl Send for MobUpdate
impl Sync for MobUpdate
impl Unpin for MobUpdate
impl UnwindSafe for MobUpdate
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