Class VideoProcessor
Processor in charge of updating the VideoComponents.
public class VideoProcessor : EntityProcessor<VideoComponent, VideoProcessor.AssociatedData>
- Inheritance
-
VideoProcessor
- Inherited Members
Fields
Logger
The logger of the VideoProcessor.
public static readonly Logger Logger
Field Value
Methods
Draw(RenderContext)
Performs work related to this processor.
public override void Draw(RenderContext context)
Parameters
context
RenderContext
GenerateComponentData(Entity, VideoComponent)
Generates associated data to the given entity.
protected override VideoProcessor.AssociatedData GenerateComponentData(Entity entity, VideoComponent component)
Parameters
entity
EntityThe entity.
component
VideoComponent
Returns
- VideoProcessor.AssociatedData
The associated data.
IsAssociatedDataValid(Entity, VideoComponent, AssociatedData)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, VideoComponent component, VideoProcessor.AssociatedData associatedData)
Parameters
entity
EntityThe entity.
component
VideoComponentassociatedData
VideoProcessor.AssociatedDataThe associated data.
Returns
- bool
True if the change in associated data requires the entity to be readded, false otherwise.
OnEntityComponentAdding(Entity, VideoComponent, AssociatedData)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, VideoComponent component, VideoProcessor.AssociatedData data)
Parameters
entity
EntityThe entity.
component
VideoComponentdata
VideoProcessor.AssociatedDataThe associated data.
OnEntityComponentRemoved(Entity, VideoComponent, AssociatedData)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, VideoComponent component, VideoProcessor.AssociatedData data)
Parameters
entity
EntityThe entity.
component
VideoComponentdata
VideoProcessor.AssociatedDataThe associated data.
OnSystemAdd()
Run when this EntityProcessor is added to an EntityManager.
protected override void OnSystemAdd()