Struct arcdps::evtc::event::CommonEvent
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§
§impl AsMut<CommonEvent> for BuffApplyEvent
impl AsMut<CommonEvent> for BuffApplyEvent
§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.
§impl AsMut<CommonEvent> for BuffDamageEvent
impl AsMut<CommonEvent> for BuffDamageEvent
§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.
§impl AsMut<CommonEvent> for BuffInitialEvent
impl AsMut<CommonEvent> for BuffInitialEvent
§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.
§impl AsMut<CommonEvent> for BuffRemoveEvent
impl AsMut<CommonEvent> for BuffRemoveEvent
§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.
§impl AsMut<CommonEvent> for StrikeEvent
impl AsMut<CommonEvent> for StrikeEvent
§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.
§impl AsRef<CommonEvent> for BuffApplyEvent
impl AsRef<CommonEvent> for BuffApplyEvent
§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<CommonEvent> for BuffDamageEvent
impl AsRef<CommonEvent> for BuffDamageEvent
§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<CommonEvent> for BuffInitialEvent
impl AsRef<CommonEvent> for BuffInitialEvent
§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<CommonEvent> for BuffRemoveEvent
impl AsRef<CommonEvent> for BuffRemoveEvent
§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<CommonEvent> for StrikeEvent
impl AsRef<CommonEvent> for StrikeEvent
§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
§impl Clone for CommonEvent
impl Clone for CommonEvent
§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 more§impl Debug for CommonEvent
impl Debug for CommonEvent
§impl<'de> Deserialize<'de> for CommonEvent
impl<'de> Deserialize<'de> for CommonEvent
§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
§impl From<&Event> for CommonEvent
impl From<&Event> for CommonEvent
§fn from(event: &Event) -> CommonEvent
fn from(event: &Event) -> CommonEvent
Converts to this type from the input type.
§impl From<BuffApplyEvent> for CommonEvent
impl From<BuffApplyEvent> for CommonEvent
§fn from(value: BuffApplyEvent) -> CommonEvent
fn from(value: BuffApplyEvent) -> CommonEvent
Converts to this type from the input type.
§impl From<BuffDamageEvent> for CommonEvent
impl From<BuffDamageEvent> for CommonEvent
§fn from(value: BuffDamageEvent) -> CommonEvent
fn from(value: BuffDamageEvent) -> CommonEvent
Converts to this type from the input type.
§impl From<BuffInitialEvent> for CommonEvent
impl From<BuffInitialEvent> for CommonEvent
§fn from(value: BuffInitialEvent) -> CommonEvent
fn from(value: BuffInitialEvent) -> CommonEvent
Converts to this type from the input type.
§impl From<BuffRemoveEvent> for CommonEvent
impl From<BuffRemoveEvent> for CommonEvent
§fn from(value: BuffRemoveEvent) -> CommonEvent
fn from(value: BuffRemoveEvent) -> CommonEvent
Converts to this type from the input type.
§impl From<StrikeEvent> for CommonEvent
impl From<StrikeEvent> for CommonEvent
§fn from(value: StrikeEvent) -> CommonEvent
fn from(value: StrikeEvent) -> CommonEvent
Converts to this type from the input type.
§impl Serialize for CommonEvent
impl Serialize for CommonEvent
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)