Class EntityProcessor<TComponent>
Base implementation of EntityProcessor<TComponent, TData> when the TComponent and TData are the same
public abstract class EntityProcessor<TComponent> : EntityProcessor<TComponent, TComponent> where TComponent : EntityComponentType Parameters
- TComponent
- The main type of the component this processor is looking for. 
- Inheritance
- 
      objectEntityProcessor<TComponent, TComponent>EntityProcessor<TComponent>
- Derived
- Inherited Members
Constructors
EntityProcessor(params Type[])
protected EntityProcessor(params Type[] requiredAdditionalTypes)Parameters
- requiredAdditionalTypesType[]
Methods
GenerateComponentData(Entity, TComponent)
Generates associated data to the given entity.
protected override TComponent GenerateComponentData(Entity entity, TComponent component)Parameters
- entityEntity
- The entity. 
- componentTComponent
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
- entityEntity
- The entity. 
- componentTComponent
- associatedDataTComponent
- The associated data. 
Returns
- bool
- True if the change in associated data requires the entity to be readded, false otherwise.