EntityProcessor<TComponent> Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
Base implementation of EntityProcessor<TComponent, TData> when the TComponent and TData are the same
System.Object → EntityProcessor → EntityProcessor<TComponent, TComponent> →
EntityProcessor<TComponent>
Derived from EntityProcessor<TComponent>: AudioListenerProcessor CameraProcessor InstanceProcessor LightShaftBoundingVolumeProcessor ModelNodeLinkProcessor ScriptProcessor TransformProcessor UIElementLinkProcessor LightProbeProcessor
public abstract class EntityProcessor<TComponent> : EntityProcessor<TComponent, TComponent> where TComponent : EntityComponent
Type Parameters
| Name | Description |
|---|---|
| TComponent | The main type of the component this processor is looking for. |
| Name | Description | |
|---|---|---|
| Constructors | ||
| EntityProcessor(Type[]) | ||
| Methods | ||
| GenerateComponentData(Entity, TComponent) | Generates associated data to the given entity. |
|
| IsAssociatedDataValid(Entity, TComponent, TComponent) | Checks if the current associated data is valid, or if readding the entity is required. |
|
Constructors
EntityProcessor(Type[])
protected EntityProcessor(params Type[] requiredAdditionalTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type[] | requiredAdditionalTypes |
Methods
GenerateComponentData(Entity, TComponent)
Generates associated data to the given entity.
protected override TComponent GenerateComponentData(Entity entity, TComponent component)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| TComponent | component |
Returns
| Type | Description |
|---|---|
| TComponent | The associated data. |
Overrides
Stride.Engine.EntityProcessor<TComponent, TComponent>.GenerateComponentData(Stride.Engine.Entity, TComponent)
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
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| TComponent | component | |
| TComponent | associatedData |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the change in associated data requires the entity to be readded, false otherwise. |
Overrides
Stride.Engine.EntityProcessor<TComponent, TComponent>.IsAssociatedDataValid(Stride.Engine.Entity, TComponent, TComponent)