Struct amethyst_animation::SamplerInterpolationSystem [−][src]
pub struct SamplerInterpolationSystem<T> where
T: AnimationSampling, { /* fields omitted */ }System for interpolating active samplers.
If other forms of animation is needed, this can be used in isolation, have no direct dependency
on AnimationControlSystem.
Will process all active SamplerControlSet, and update the target component for the entity they
belong to.
Type parameters:
T: the component type that the animation should be applied to
Methods
impl<T> SamplerInterpolationSystem<T> where
T: AnimationSampling, [src]
impl<T> SamplerInterpolationSystem<T> where
T: AnimationSampling, Trait Implementations
impl<T: Default> Default for SamplerInterpolationSystem<T> where
T: AnimationSampling,
T::Channel: Default,
T::Primitive: Default, [src]
impl<T: Default> Default for SamplerInterpolationSystem<T> where
T: AnimationSampling,
T::Channel: Default,
T::Primitive: Default, fn default() -> SamplerInterpolationSystem<T>[src]
fn default() -> SamplerInterpolationSystem<T>Returns the "default value" for a type. Read more
impl<'a, T> System<'a> for SamplerInterpolationSystem<T> where
T: AnimationSampling + Component, [src]
impl<'a, T> System<'a> for SamplerInterpolationSystem<T> where
T: AnimationSampling + Component, type SystemData = (Read<'a, Time>, Read<'a, AssetStorage<Sampler<T::Primitive>>>, WriteStorage<'a, SamplerControlSet<T>>, WriteStorage<'a, T>, <T as ApplyData<'a>>::ApplyData)
The resource bundle required to execute this system. Read more
fn run(
&mut self,
(time, samplers, control_sets, comps, apply_data): Self::SystemData
)[src]
fn run(
&mut self,
(time, samplers, control_sets, comps, apply_data): Self::SystemData
)Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTimeReturns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>Return the accessor from the [SystemData].
fn setup(&mut self, res: &mut Resources)
fn setup(&mut self, res: &mut Resources)Sets up the Resources using Self::SystemData::setup.
Auto Trait Implementations
impl<T> Send for SamplerInterpolationSystem<T> where
<T as AnimationSampling>::Channel: Send,
<T as AnimationSampling>::Primitive: Send,
impl<T> Send for SamplerInterpolationSystem<T> where
<T as AnimationSampling>::Channel: Send,
<T as AnimationSampling>::Primitive: Send, impl<T> Sync for SamplerInterpolationSystem<T> where
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,
impl<T> Sync for SamplerInterpolationSystem<T> where
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,