pub struct CommonEvent {
pub time: u64,
pub source: AgentId,
pub target: 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: u64Time of registering the event.
source: AgentIdAgent that caused the event.
target: AgentIdAgent the event happened to.
skill_id: u32Skill id of the relevant skill (can be zero).
affinity: AffinityCurrent affinity of src and dst.
Arc calls this “iff” for if friend/foe.
is_ninety: u8Whether src is above 90% Health.
is_fifty: u8Whether dst is below 50% Health.
is_moving: u8Whether src is moving at time of event.
is_flanking: u8Whether 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 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 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