Class ParticleSystemRenderProcessor
The processor in charge of updating and drawing the entities having sprite components.
public class ParticleSystemRenderProcessor : EntityProcessor<ParticleSystemComponent, RenderParticleSystem>, IEntityComponentRenderProcessor
- Inheritance
-
ParticleSystemRenderProcessor
- Implements
- Inherited Members
Constructors
ParticleSystemRenderProcessor()
Initializes a new instance of the ParticleSystemRenderProcessor class.
public ParticleSystemRenderProcessor()
Properties
VisibilityGroup
public VisibilityGroup VisibilityGroup { get; set; }
Property Value
Methods
Draw(RenderContext)
Performs work related to this processor.
public override void Draw(RenderContext context)
Parameters
contextRenderContext
GenerateComponentData(Entity, ParticleSystemComponent)
Generates associated data to the given entity.
protected override RenderParticleSystem GenerateComponentData(Entity entity, ParticleSystemComponent particleSystemComponent)
Parameters
entityEntityThe entity.
particleSystemComponentParticleSystemComponent
Returns
- RenderParticleSystem
The associated data.
IsAssociatedDataValid(Entity, ParticleSystemComponent, RenderParticleSystem)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, ParticleSystemComponent spriteComponent, RenderParticleSystem associatedData)
Parameters
entityEntityThe entity.
spriteComponentParticleSystemComponentassociatedDataRenderParticleSystemThe associated data.
Returns
- bool
True if the change in associated data requires the entity to be readded, false otherwise.
OnEntityComponentAdding(Entity, ParticleSystemComponent, RenderParticleSystem)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, ParticleSystemComponent particleSystemComponent, RenderParticleSystem renderParticleSystem)
Parameters
entityEntityThe entity.
particleSystemComponentParticleSystemComponentrenderParticleSystemRenderParticleSystem
OnEntityComponentRemoved(Entity, ParticleSystemComponent, RenderParticleSystem)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, ParticleSystemComponent particleSystemComponent, RenderParticleSystem renderParticleSystem)
Parameters
entityEntityThe entity.
particleSystemComponentParticleSystemComponentrenderParticleSystemRenderParticleSystem