Table of Contents

Class EntityProcessor<TComponent>

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

Base implementation of EntityProcessor<TComponent, TData> when the TComponent and TData are the same

public abstract class EntityProcessor<TComponent> : EntityProcessor<TComponent, TComponent> where TComponent : EntityComponent

Type Parameters

TComponent

The main type of the component this processor is looking for.

Inheritance
EntityProcessor<TComponent, TComponent>
EntityProcessor<TComponent>
Derived
Inherited Members

Constructors

EntityProcessor(params Type[])

protected EntityProcessor(params Type[] requiredAdditionalTypes)

Parameters

requiredAdditionalTypes Type[]

Methods

GenerateComponentData(Entity, TComponent)

Generates associated data to the given entity.

protected override TComponent GenerateComponentData(Entity entity, TComponent component)

Parameters

entity Entity

The entity.

component TComponent

Returns

TComponent

The associated data.

IsAssociatedDataValid(Entity, TComponent, TComponent)

Checks if the current associated data is valid, or if readding the entity is required.

protected override bool IsAssociatedDataValid(Entity entity, TComponent component, TComponent associatedData)

Parameters

entity Entity

The entity.

component TComponent
associatedData TComponent

The associated data.

Returns

bool

True if the change in associated data requires the entity to be readded, false otherwise.