pub enum CombatFact {
Cast {
kind: CastKind,
ability_id: AbilityId,
},
HitLanded {
crit: bool,
damage: u64,
victim: EntityId,
},
Kill {
victim: EntityId,
},
HitTaken {
damage: u64,
},
Dodged,
}Expand description
One fact a dispatched Core event established about one combatant.
Deliberately raw: it carries what the event itself settled and nothing derived from it. “Share of Max HP”, “which equipped slot”, “how many distinct targets this cast has reached” are each one system’s presentation of a fact, computed at that system’s call site, not stored here.
Variants§
Cast
This entity made a Core cast of the given family.
HitLanded
A Core hit of this entity’s landed on an enemy.
Kill
That same hit left the enemy at zero HP. Always accompanies the
CombatFact::HitLanded it came from.
HitTaken
A Core hit from an attacker landed on this entity.
Dodged
This entity dodged a Core hit.
Trait Implementations§
Source§impl Clone for CombatFact
impl Clone for CombatFact
Source§fn clone(&self) -> CombatFact
fn clone(&self) -> CombatFact
Returns a copy 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 CombatFact
impl Debug for CombatFact
Source§impl PartialEq for CombatFact
impl PartialEq for CombatFact
impl Copy for CombatFact
impl Eq for CombatFact
impl StructuralPartialEq for CombatFact
Auto Trait Implementations§
impl Freeze for CombatFact
impl RefUnwindSafe for CombatFact
impl Send for CombatFact
impl Sync for CombatFact
impl Unpin for CombatFact
impl UnwindSafe for CombatFact
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more