#[non_exhaustive]pub enum FightActionType {
Attack,
MushroomCatapult,
Blocked,
Evaded,
MinionAttack,
MinionAttackBlocked,
MinionAttackEvaded,
MinionCrit,
SummonSpecial,
Unknown,
}Expand description
An action in a fight. In the official client this determines the animation, that gets played
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Attack
A simple attack with the normal weapon
MushroomCatapult
One shot from a loaded mushroom catapult in a guild battle
Blocked
The last action was blocked
Evaded
The last action was evaded
MinionAttack
The summoned minion attacks
MinionAttackBlocked
The summoned minion blocked the last attack
MinionAttackEvaded
The summoned minion evaded the last attack
MinionCrit
The summoned minion was crit
SummonSpecial
Plays the harp, or summons a friendly minion
Unknown
I have not checked all possible battle types, so whatever action I have missed will be parsed as this
Trait Implementations§
Source§impl Clone for FightActionType
impl Clone for FightActionType
Source§fn clone(&self) -> FightActionType
fn clone(&self) -> FightActionType
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 FightActionType
impl Debug for FightActionType
Source§impl<'de> Deserialize<'de> for FightActionType
impl<'de> Deserialize<'de> for FightActionType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FightActionType
impl Hash for FightActionType
Source§impl PartialEq for FightActionType
impl PartialEq for FightActionType
Source§impl Serialize for FightActionType
impl Serialize for FightActionType
impl Copy for FightActionType
impl Eq for FightActionType
impl StructuralPartialEq for FightActionType
Auto Trait Implementations§
impl Freeze for FightActionType
impl RefUnwindSafe for FightActionType
impl Send for FightActionType
impl Sync for FightActionType
impl Unpin for FightActionType
impl UnwindSafe for FightActionType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.