pub enum EffectorType {
Additive(f64),
AdditiveMultiplier(f64),
MultiplicativeMultiplier(f64),
}Expand description
The way this effector modifies the stat.
Variants§
Additive(f64)
Adds a value to the base value of the stat.
AdditiveMultiplier(f64)
Multiplies the stat by a value. Stacks additively with other multipliers affecting this same stat.
MultiplicativeMultiplier(f64)
Multiplies the stat by a value. Stacks multiplicatively with other multipliers affecting this same stat.
Implementations§
Source§impl EffectorType
impl EffectorType
Sourcepub fn new_additive(f0: f64) -> Self
pub fn new_additive(f0: f64) -> Self
Constructs a new EffectorType::Additive.
Source§impl EffectorType
impl EffectorType
Sourcepub fn new_additive_multiplier(f0: f64) -> Self
pub fn new_additive_multiplier(f0: f64) -> Self
Constructs a new EffectorType::AdditiveMultiplier.
Source§impl EffectorType
impl EffectorType
Sourcepub fn new_multiplicative_multiplier(f0: f64) -> Self
pub fn new_multiplicative_multiplier(f0: f64) -> Self
Constructs a new EffectorType::MultiplicativeMultiplier.
Trait Implementations§
Source§impl Clone for EffectorType
impl Clone for EffectorType
Source§fn clone(&self) -> EffectorType
fn clone(&self) -> EffectorType
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 EffectorType
impl Debug for EffectorType
Source§impl<'de> Deserialize<'de> for EffectorType
impl<'de> Deserialize<'de> for EffectorType
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
Auto Trait Implementations§
impl Freeze for EffectorType
impl RefUnwindSafe for EffectorType
impl Send for EffectorType
impl Sync for EffectorType
impl Unpin for EffectorType
impl UnwindSafe for EffectorType
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