pub struct AvatarAdminServerPacket {
pub caster_id: i32,
pub victim_id: i32,
pub damage: i32,
pub caster_direction: Direction,
pub hp_percentage: i32,
pub victim_died: bool,
pub spell_id: i32,
}Expand description
Nearby player hit by a damage spell from a player
Fields§
§caster_id: i32§victim_id: i32§damage: i32§caster_direction: Direction§hp_percentage: i32§victim_died: bool§spell_id: i32Implementations§
Trait Implementations§
Source§impl Clone for AvatarAdminServerPacket
impl Clone for AvatarAdminServerPacket
Source§fn clone(&self) -> AvatarAdminServerPacket
fn clone(&self) -> AvatarAdminServerPacket
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 AvatarAdminServerPacket
impl Debug for AvatarAdminServerPacket
Source§impl Default for AvatarAdminServerPacket
impl Default for AvatarAdminServerPacket
Source§fn default() -> AvatarAdminServerPacket
fn default() -> AvatarAdminServerPacket
Returns the “default value” for a type. Read more
Source§impl EoSerialize for AvatarAdminServerPacket
impl EoSerialize for AvatarAdminServerPacket
Source§fn serialize(&self, writer: &mut EoWriter) -> Result<(), EoSerializeError>
fn serialize(&self, writer: &mut EoWriter) -> Result<(), EoSerializeError>
Serializes a AvatarAdminServerPacket into the given EoWriter instance
Source§fn deserialize(reader: &EoReader) -> Result<Self, EoReaderError>
fn deserialize(reader: &EoReader) -> Result<Self, EoReaderError>
Deserializes a AvatarAdminServerPacket from an EoReader instance
Source§impl PartialEq for AvatarAdminServerPacket
impl PartialEq for AvatarAdminServerPacket
impl Eq for AvatarAdminServerPacket
impl StructuralPartialEq for AvatarAdminServerPacket
Auto Trait Implementations§
impl Freeze for AvatarAdminServerPacket
impl RefUnwindSafe for AvatarAdminServerPacket
impl Send for AvatarAdminServerPacket
impl Sync for AvatarAdminServerPacket
impl Unpin for AvatarAdminServerPacket
impl UnwindSafe for AvatarAdminServerPacket
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