Struct arcdps::evtc::event::CommonEvent
source · pub struct CommonEvent {
pub time: u64,
pub src: AgentId,
pub dst: AgentId,
pub skill_id: u32,
pub affinity: Affinity,
pub is_ninety: u8,
pub is_fifty: u8,
pub is_moving: u8,
pub is_flanking: u8,
}
Expand description
Information common to combat events.
Fields§
§time: u64
Time of registering the event.
src: AgentId
Agent that caused the event.
dst: AgentId
Agent the event happened to.
skill_id: u32
Skill id of the relevant skill (can be zero).
affinity: Affinity
Current affinity of src
and dst
.
Arc calls this “iff” for if friend/foe.
is_ninety: u8
Whether src
is above 90% Health.
is_fifty: u8
Whether dst
is below 50% Health.
is_moving: u8
Whether src
is moving at time of event.
is_flanking: u8
Whether src
is flanking at time of event.
The value lies in a range of 1
to 135
degrees where 135
is rear.
Trait Implementations§
source§impl AsMut<CommonEvent> for BuffApplyEvent
impl AsMut<CommonEvent> for BuffApplyEvent
source§fn as_mut(&mut self) -> &mut CommonEvent
fn as_mut(&mut self) -> &mut CommonEvent
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<CommonEvent> for BuffDamageEvent
impl AsMut<CommonEvent> for BuffDamageEvent
source§fn as_mut(&mut self) -> &mut CommonEvent
fn as_mut(&mut self) -> &mut CommonEvent
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<CommonEvent> for BuffInitialEvent
impl AsMut<CommonEvent> for BuffInitialEvent
source§fn as_mut(&mut self) -> &mut CommonEvent
fn as_mut(&mut self) -> &mut CommonEvent
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<CommonEvent> for BuffRemoveEvent
impl AsMut<CommonEvent> for BuffRemoveEvent
source§fn as_mut(&mut self) -> &mut CommonEvent
fn as_mut(&mut self) -> &mut CommonEvent
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<CommonEvent> for StrikeEvent
impl AsMut<CommonEvent> for StrikeEvent
source§fn as_mut(&mut self) -> &mut CommonEvent
fn as_mut(&mut self) -> &mut CommonEvent
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<CommonEvent> for BuffApplyEvent
impl AsRef<CommonEvent> for BuffApplyEvent
source§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<CommonEvent> for BuffDamageEvent
impl AsRef<CommonEvent> for BuffDamageEvent
source§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<CommonEvent> for BuffInitialEvent
impl AsRef<CommonEvent> for BuffInitialEvent
source§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<CommonEvent> for BuffRemoveEvent
impl AsRef<CommonEvent> for BuffRemoveEvent
source§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<CommonEvent> for StrikeEvent
impl AsRef<CommonEvent> for StrikeEvent
source§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for CommonEvent
impl Clone for CommonEvent
source§fn clone(&self) -> CommonEvent
fn clone(&self) -> CommonEvent
Returns a copy 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 CommonEvent
impl Debug for CommonEvent
source§impl<'de> Deserialize<'de> for CommonEvent
impl<'de> Deserialize<'de> for CommonEvent
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CommonEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CommonEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&Event> for CommonEvent
impl From<&Event> for CommonEvent
source§fn from(event: &Event) -> CommonEvent
fn from(event: &Event) -> CommonEvent
Converts to this type from the input type.
source§impl From<BuffApplyEvent> for CommonEvent
impl From<BuffApplyEvent> for CommonEvent
source§fn from(value: BuffApplyEvent) -> CommonEvent
fn from(value: BuffApplyEvent) -> CommonEvent
Converts to this type from the input type.
source§impl From<BuffDamageEvent> for CommonEvent
impl From<BuffDamageEvent> for CommonEvent
source§fn from(value: BuffDamageEvent) -> CommonEvent
fn from(value: BuffDamageEvent) -> CommonEvent
Converts to this type from the input type.
source§impl From<BuffInitialEvent> for CommonEvent
impl From<BuffInitialEvent> for CommonEvent
source§fn from(value: BuffInitialEvent) -> CommonEvent
fn from(value: BuffInitialEvent) -> CommonEvent
Converts to this type from the input type.
source§impl From<BuffRemoveEvent> for CommonEvent
impl From<BuffRemoveEvent> for CommonEvent
source§fn from(value: BuffRemoveEvent) -> CommonEvent
fn from(value: BuffRemoveEvent) -> CommonEvent
Converts to this type from the input type.
source§impl From<StrikeEvent> for CommonEvent
impl From<StrikeEvent> for CommonEvent
source§fn from(value: StrikeEvent) -> CommonEvent
fn from(value: StrikeEvent) -> CommonEvent
Converts to this type from the input type.
source§impl Serialize for CommonEvent
impl Serialize for CommonEvent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CommonEvent
impl RefUnwindSafe for CommonEvent
impl Send for CommonEvent
impl Sync for CommonEvent
impl Unpin for CommonEvent
impl UnwindSafe for CommonEvent
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