pub struct SpellResources {Show 16 fields
pub primary_cost: f64,
pub primary_optional_cost: f64,
pub primary_cost_pct: ResourceCostPercent,
pub primary_max_cost_pct: ResourceCostPercent,
pub primary_optional_cost_pct: ResourceCostPercent,
pub primary_gain: f64,
pub secondary_cost: f64,
pub secondary_optional_cost: f64,
pub secondary_gain: f64,
pub health_cost: f64,
pub health_cost_pct: f64,
pub health_max_cost_pct: f64,
pub health_optional_cost: f64,
pub health_optional_cost_pct: ResourceCostPercent,
pub primary_cost_entry: u8,
pub secondary_cost_entry: u8,
}Expand description
Scaled costs and resource gains resolved for one spell.
Fields§
§primary_cost: f64§primary_optional_cost: f64§primary_cost_pct: ResourceCostPercent§primary_max_cost_pct: ResourceCostPercent§primary_optional_cost_pct: ResourceCostPercent§primary_gain: f64§secondary_cost: f64§secondary_optional_cost: f64§secondary_gain: f64§health_cost: f64§health_cost_pct: f64§health_max_cost_pct: f64§health_optional_cost: f64§health_optional_cost_pct: ResourceCostPercent§primary_cost_entry: u81-based DBC power-cost entry backing primary_cost (0 = none).
secondary_cost_entry: u81-based DBC power-cost entry backing secondary_cost (0 = none).
Trait Implementations§
Source§impl Clone for SpellResources
impl Clone for SpellResources
Source§fn clone(&self) -> SpellResources
fn clone(&self) -> SpellResources
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 SpellResources
impl Debug for SpellResources
Source§impl Default for SpellResources
impl Default for SpellResources
Source§fn default() -> SpellResources
fn default() -> SpellResources
Returns the “default value” for a type. Read more
impl Copy for SpellResources
Auto Trait Implementations§
impl Freeze for SpellResources
impl RefUnwindSafe for SpellResources
impl Send for SpellResources
impl Sync for SpellResources
impl Unpin for SpellResources
impl UnsafeUnpin for SpellResources
impl UnwindSafe for SpellResources
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