pub enum EventCategory {
    StateChange,
    Activation,
    BuffRemove,
    BuffApply,
    BuffDamage,
    Strike,
}
Expand description

Possible Event categories.

Variants§

§

StateChange

State change event.

See variants of StateChange for details.

§

Activation

Activation (cast) event.

is_activation contains Activation (except Activation::None).

For Activation::Start and Activation::QuicknessUnused: value contains the duration at which all “significant” effects associated with the cast have happened (for example damage hits). buff_dmg contains the duration at which control is expected to be returned to the character (for example aftercasts).

For Activation::CancelFire and Activation::CancelCancel: value contains the time spent in animation. buff_dmg contains the duration of the scaled (as if not affected) time spent.

dst_agent contains x/y of target of skill effect. overstack_value contains z of target of skill effect.

All durations and times are given in milliseconds.

For skill data see SkillInfo and SkillTiming.

§

BuffRemove

Buff removed.

is_buffremove contains BuffRemove (except BuffRemove::None). skill_id contains the buff id. buff will be non-zero.

src_agent is agent that had buff removed. dst_agent is the agent that caused the buff to be removed.

value contains the remaining time on the removed buff calculated as duration. buff_dmg contains the remaining time on the removed buff calculated as intensity Warning: this can overflow on BuffRemove::All, use as sum check only!

For BuffRemove::All result contains the number of stacks removed

For BuffRemove::Single pad61 to pad64 contains the buff instance id of buff removed.

For buff data see BuffInfo and BuffFormula.

§

BuffApply

Buff applied.

skill_id contains the buff id. buff will be non-zero.

value contains the duration in milliseconds applied. pad61 to pad64 contains the buff instance id of the buff applied. is_shields contains the stack active status.

If is_offcycle == 0, overstack_value contains the duration of the existing buff stack that is expected to be replaced. If is_offcycle != 0, overstack_value contains the new duration of the existing buff stack and value contains the duration change (no new buff stack added).

For buff data see BuffInfo and BuffFormula.

§

BuffDamage

Buff damage.

skill_id contains the buff id. buff will be non-zero.

buff_dmg contains the damage dealt in Arc’s damage simulation. If is_offcycle == 0, damage is accumulated by tick (for example Bleeding tick). If is_offcycle != 0, damage is accumulated reactively (for example Confusion damage on skill use). result contains 0 if expected to hit, 1 for invulnerability by buff and 2/3/4 for invulnerability by skill.

For buff data see BuffInfo and BuffFormula.

§

Strike

Direct damage strike.

value contains the combined shield (barrier) and health damage dealt. overstack_value contains the shield (barrier) damage dealt. is_offcycle == 1 if target is currently downed. result contains Strike.

Trait Implementations§

source§

impl Clone for EventCategory

source§

fn clone(&self) -> EventCategory

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EventCategory

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for EventCategory

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<EventCategory, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<&Event> for EventCategory

source§

fn from(event: &Event) -> EventCategory

Converts to this type from the input type.
source§

impl Hash for EventCategory

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for EventCategory

source§

fn cmp(&self, other: &EventCategory) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for EventCategory

source§

fn eq(&self, other: &EventCategory) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for EventCategory

source§

fn partial_cmp(&self, other: &EventCategory) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for EventCategory

source§

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
source§

impl Copy for EventCategory

source§

impl Eq for EventCategory

source§

impl StructuralPartialEq for EventCategory

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,