Struct game_features::EffectorSet [−][src]
A collection of currently active effectors.
Fields
effectors: Vec<EffectorInstance<E>>
The active effectors.
Implementations
impl<E> EffectorSet<E>
[src]
pub fn new(effectors: Vec<EffectorInstance<E>>) -> Self
[src]
Constructs a new EffectorSet
.
impl<E: Hash + Eq> EffectorSet<E>
[src]
pub fn apply_to<K: Eq + Hash>(
&self,
effector_defs: &EffectorDefinitions<K, E>,
stat_set: &mut StatSet<K>,
_delta_time: f32
)
[src]
&self,
effector_defs: &EffectorDefinitions<K, E>,
stat_set: &mut StatSet<K>,
_delta_time: f32
)
Applies the effects of this effector to the provided StatSet
.
The delta time is used when using effectors that apply directly to
the base stat value. (WIP)
Trait Implementations
impl<E: Clone> Clone for EffectorSet<E>
[src]
fn clone(&self) -> EffectorSet<E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Debug> Debug for EffectorSet<E>
[src]
impl<E> Default for EffectorSet<E>
[src]
impl<'de, E> Deserialize<'de> for EffectorSet<E> where
E: Deserialize<'de>,
[src]
E: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<E> Serialize for EffectorSet<E> where
E: Serialize,
[src]
E: Serialize,
Auto Trait Implementations
impl<E> RefUnwindSafe for EffectorSet<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for EffectorSet<E> where
E: Send,
E: Send,
impl<E> Sync for EffectorSet<E> where
E: Sync,
E: Sync,
impl<E> Unpin for EffectorSet<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for EffectorSet<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,