Class AnimationProcessor
- Namespace
- Stride.Animations
- Assembly
- Stride.Engine.dll
public class AnimationProcessor : EntityProcessor<AnimationComponent, AnimationProcessor.AssociatedData>
- Inheritance
-
AnimationProcessor
- Inherited Members
Constructors
AnimationProcessor()
public AnimationProcessor()
Methods
Draw(RenderContext)
Performs work related to this processor.
public override void Draw(RenderContext context)
Parameters
contextRenderContext
GenerateComponentData(Entity, AnimationComponent)
Generates associated data to the given entity.
protected override AnimationProcessor.AssociatedData GenerateComponentData(Entity entity, AnimationComponent component)
Parameters
entityEntityThe entity.
componentAnimationComponent
Returns
- AnimationProcessor.AssociatedData
The associated data.
GetAnimationClipResult(AnimationComponent)
public AnimationClipResult GetAnimationClipResult(AnimationComponent animationComponent)
Parameters
animationComponentAnimationComponent
Returns
IsAssociatedDataValid(Entity, AnimationComponent, AssociatedData)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, AnimationComponent component, AnimationProcessor.AssociatedData associatedData)
Parameters
entityEntityThe entity.
componentAnimationComponentassociatedDataAnimationProcessor.AssociatedDataThe associated data.
Returns
- bool
True if the change in associated data requires the entity to be readded, false otherwise.
OnEntityComponentAdding(Entity, AnimationComponent, AssociatedData)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, AnimationComponent component, AnimationProcessor.AssociatedData data)
Parameters
entityEntityThe entity.
componentAnimationComponentdataAnimationProcessor.AssociatedDataThe associated data.
OnEntityComponentRemoved(Entity, AnimationComponent, AssociatedData)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, AnimationComponent component, AnimationProcessor.AssociatedData data)
Parameters
entityEntityThe entity.
componentAnimationComponentdataAnimationProcessor.AssociatedDataThe associated data.