Class VideoProcessor
Processor in charge of updating the VideoComponents.
public class VideoProcessor : EntityProcessor<VideoComponent, VideoProcessor.AssociatedData>- Inheritance
- 
      objectVideoProcessor
- Inherited Members
Fields
Logger
The logger of the VideoProcessor.
public static readonly Logger LoggerField Value
Methods
Draw(RenderContext)
Performs work related to this processor.
public override void Draw(RenderContext context)Parameters
- contextRenderContext
GenerateComponentData(Entity, VideoComponent)
Generates associated data to the given entity.
protected override VideoProcessor.AssociatedData GenerateComponentData(Entity entity, VideoComponent component)Parameters
- entityEntity
- The entity. 
- componentVideoComponent
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
- entityEntity
- The entity. 
- componentVideoComponent
- associatedDataVideoProcessor.AssociatedData
- The 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
- entityEntity
- The entity. 
- componentVideoComponent
- dataVideoProcessor.AssociatedData
- The 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
- entityEntity
- The entity. 
- componentVideoComponent
- dataVideoProcessor.AssociatedData
- The associated data. 
OnSystemAdd()
Run when this EntityProcessor is added to an EntityManager.
protected override void OnSystemAdd()