pub struct ResolvedEnemyStats {
identity: ResolvedEnemyIdentity,
creature_tuning: Option<ResolvedCreatureTuning>,
level: u16,
max_health: f64,
armor: f64,
armor_constant: Option<f64>,
auto_attack_dps: Option<f64>,
spell_damage: Option<f64>,
provenance: Vec<EnemyStatProvenanceStep>,
}Expand description
Fully resolved enemy stats accepted for combat construction.
Fields§
§identity: ResolvedEnemyIdentity§creature_tuning: Option<ResolvedCreatureTuning>§level: u16§max_health: f64§armor: f64§armor_constant: Option<f64>§auto_attack_dps: Option<f64>§spell_damage: Option<f64>§provenance: Vec<EnemyStatProvenanceStep>Implementations§
Source§impl ResolvedEnemyStats
impl ResolvedEnemyStats
pub const fn identity(&self) -> &ResolvedEnemyIdentity
pub const fn creature_tuning(&self) -> Option<&ResolvedCreatureTuning>
pub const fn level(&self) -> u16
pub const fn max_health(&self) -> f64
pub const fn armor(&self) -> f64
pub const fn armor_constant(&self) -> Option<f64>
pub const fn auto_attack_dps(&self) -> Option<f64>
pub const fn spell_damage(&self) -> Option<f64>
pub fn provenance(&self) -> &[EnemyStatProvenanceStep]
Trait Implementations§
Source§impl Clone for ResolvedEnemyStats
impl Clone for ResolvedEnemyStats
Source§fn clone(&self) -> ResolvedEnemyStats
fn clone(&self) -> ResolvedEnemyStats
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 ResolvedEnemyStats
impl Debug for ResolvedEnemyStats
Source§impl PartialEq for ResolvedEnemyStats
impl PartialEq for ResolvedEnemyStats
impl StructuralPartialEq for ResolvedEnemyStats
Auto Trait Implementations§
impl Freeze for ResolvedEnemyStats
impl RefUnwindSafe for ResolvedEnemyStats
impl Send for ResolvedEnemyStats
impl Sync for ResolvedEnemyStats
impl Unpin for ResolvedEnemyStats
impl UnsafeUnpin for ResolvedEnemyStats
impl UnwindSafe for ResolvedEnemyStats
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more