pub struct BreakdownActor {
pub entity_id: Option<EntityId>,
pub entity_template_id: Option<EntityTemplateId>,
pub team: EntityTeam,
}Expand description
Who a recorded amount is credited to. Resolved at record time, because the
entity may be dead and gone from active_fight.entities by fight end.
Fields§
§entity_id: Option<EntityId>§entity_template_id: Option<EntityTemplateId>§team: EntityTeamImplementations§
Source§impl BreakdownActor
impl BreakdownActor
Sourcepub fn unowned() -> Self
pub fn unowned() -> Self
The actor an ownerless amount is credited to (a DoT tick, a fight-start
script). Kept as its own row rather than dropped, so the rows of a fight
still add up to the HP that changed hands. There is no neutral team, so
the row is Ally with a None id — the None is what identifies it.
pub fn from_entity(entity: &Entity) -> Self
Trait Implementations§
Source§impl Clone for BreakdownActor
impl Clone for BreakdownActor
Source§fn clone(&self) -> BreakdownActor
fn clone(&self) -> BreakdownActor
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 BreakdownActor
impl Debug for BreakdownActor
Source§impl PartialEq for BreakdownActor
impl PartialEq for BreakdownActor
impl Eq for BreakdownActor
impl StructuralPartialEq for BreakdownActor
Auto Trait Implementations§
impl Freeze for BreakdownActor
impl RefUnwindSafe for BreakdownActor
impl Send for BreakdownActor
impl Sync for BreakdownActor
impl Unpin for BreakdownActor
impl UnwindSafe for BreakdownActor
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