Table of Contents

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

context RenderContext

GenerateComponentData(Entity, AnimationComponent)

Generates associated data to the given entity.

protected override AnimationProcessor.AssociatedData GenerateComponentData(Entity entity, AnimationComponent component)

Parameters

entity Entity

The entity.

component AnimationComponent

Returns

AnimationProcessor.AssociatedData

The associated data.

GetAnimationClipResult(AnimationComponent)

public AnimationClipResult GetAnimationClipResult(AnimationComponent animationComponent)

Parameters

animationComponent AnimationComponent

Returns

AnimationClipResult

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

entity Entity

The entity.

component AnimationComponent
associatedData AnimationProcessor.AssociatedData

The 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

entity Entity

The entity.

component AnimationComponent
data AnimationProcessor.AssociatedData

The 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

entity Entity

The entity.

component AnimationComponent
data AnimationProcessor.AssociatedData

The associated data.