Struct CommonEvent
pub struct CommonEvent {
pub time: u64,
pub source: AgentId,
pub target: AgentId,
pub skill_id: u32,
pub affinity: Affinity,
pub is_ninety: bool,
pub is_fifty: bool,
pub is_source_moving: bool,
pub is_target_moving: bool,
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 source and target..
Arc calls this “iff” for if friend/foe.
is_ninety: boolWhether source is above 90% Health.
is_fifty: boolWhether target is below 50% Health.
is_source_moving: boolWhether source is moving at time of event.
is_target_moving: boolWhether target is moving at time of event.
is_flanking: u8Whether source is flanking target 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 BuffApply
impl AsMut<CommonEvent> for BuffApply
§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 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 BuffChange
impl AsMut<CommonEvent> for BuffChange
§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 BuffRemoveAll
impl AsMut<CommonEvent> for BuffRemoveAll
§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 BuffRemoveSingle
impl AsMut<CommonEvent> for BuffRemoveSingle
§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 CombatEvent
impl AsMut<CommonEvent> for CombatEvent
§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 BuffApply
impl AsRef<CommonEvent> for BuffApply
§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 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 BuffChange
impl AsRef<CommonEvent> for BuffChange
§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 BuffRemoveAll
impl AsRef<CommonEvent> for BuffRemoveAll
§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 BuffRemoveSingle
impl AsRef<CommonEvent> for BuffRemoveSingle
§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 CombatEvent
impl AsRef<CommonEvent> for CombatEvent
§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 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 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<BuffApply> for CommonEvent
impl From<BuffApply> for CommonEvent
§fn from(value: BuffApply) -> CommonEvent
fn from(value: BuffApply) -> 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<BuffChange> for CommonEvent
impl From<BuffChange> for CommonEvent
§fn from(value: BuffChange) -> CommonEvent
fn from(value: BuffChange) -> 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<BuffRemoveAll> for CommonEvent
impl From<BuffRemoveAll> for CommonEvent
§fn from(value: BuffRemoveAll) -> CommonEvent
fn from(value: BuffRemoveAll) -> 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<BuffRemoveSingle> for CommonEvent
impl From<BuffRemoveSingle> for CommonEvent
§fn from(value: BuffRemoveSingle) -> CommonEvent
fn from(value: BuffRemoveSingle) -> CommonEvent
Converts to this type from the input type.
§impl From<CombatEvent> for CommonEvent
impl From<CombatEvent> for CommonEvent
§fn from(value: CombatEvent) -> CommonEvent
fn from(value: CombatEvent) -> 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 UnsafeUnpin 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