#[repr(u8)]pub enum Strike {
Show 14 variants
Normal = 0,
Crit = 1,
Glance = 2,
Block = 3,
Evade = 4,
Interrupt = 5,
Absorb = 6,
Blind = 7,
KillingBlow = 8,
Downed = 9,
Breakbar = 10,
Activation = 11,
CrowdControl = 12,
Unknown(u8),
}
Expand description
Strike types.
Arc calls this “combat result”.
Variants§
Normal = 0
Normal damage strike.
No crit, no glance.
Crit = 1
Strike was critical.
Glance = 2
Strike was glancing.
Block = 3
Strike was blocked.
Due to Aegis, Chrono Shield 4 etc.
Evade = 4
Strike was evaded.
Due to dodge, Mesmer Sword 2 etc.
Interrupt = 5
Strike interrupted something.
Absorb = 6
Strike was absorbed.
Usually due to an invulnerability like Guardian Renewed Focus.
Blind = 7
Strike missed.
Due to blind etc.
KillingBlow = 8
Skill killed the target.
Not a damage strike.
Downed = 9
Skill downed the target.
Not a damage strike.
Breakbar = 10
Skill dealt breakbar damage.
Not a damage strike.
Activation = 11
On-skill-activation event.
Not a damage strike.
CrowdControl = 12
Skill crowd controlled the target.
Not a damage strike.
Unknown(u8)
Unknown.
Implementations§
§impl Strike
impl Strike
pub const fn dealt_damage(&self) -> bool
pub const fn dealt_damage(&self) -> bool
Whether the strike dealt health damage to the target.
Trait Implementations§
§impl<'de> Deserialize<'de> for Strike
impl<'de> Deserialize<'de> for Strike
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Strike, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Strike, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl IntoEnumIterator for Strike
impl IntoEnumIterator for Strike
type Iterator = StrikeIter
fn iter() -> StrikeIter ⓘ
§impl Ord for Strike
impl Ord for Strike
§impl PartialOrd for Strike
impl PartialOrd for Strike
§impl Serialize for Strike
impl Serialize for Strike
§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
impl Copy for Strike
impl Eq for Strike
impl StructuralPartialEq for Strike
Auto Trait Implementations§
impl Freeze for Strike
impl RefUnwindSafe for Strike
impl Send for Strike
impl Sync for Strike
impl Unpin for Strike
impl UnwindSafe for Strike
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
)