Skip to content

RenderSystemBase Class

Definition

Namespace: Brine2D.ECS.Systems

Base class for render systems with default implementations.

C#
public abstract class RenderSystemBase : Brine2D.ECS.IRenderSystem, Brine2D.ECS.ISystem, System.IDisposable

Inheritance System.Object → RenderSystemBase

Derived
Box2DDebugDrawSystem
DebugRenderer
SpriteRenderingSystem

Implements IRenderSystem, ISystem, System.IDisposable

Properties
IsEnabled Whether this system is currently enabled.
RenderOrder Execution order for this system. Override to customize. Default is Sprites \(0\).
StartFailed Gets whether OnStart\(IEntityWorld\) threw an exception on its last attempt. When true, the system is silently skipped each tick. Call ResetStart() to allow OnStart\(IEntityWorld\) to run again.
Methods
Dispose\(bool\) Override to release cached queries and other resources held by this system. Always call base.Dispose(disposing).
OnStart\(IEntityWorld\) Called once before the first Render\(IEntityWorld, IRenderer, GameTime\) dispatch. Override to perform initialization that depends on the world being fully set up.
Render\(IEntityWorld, IRenderer, GameTime\) Called every frame to render this system.
ResetStart() Clears the start-failed state so that OnStart\(IEntityWorld\) will be retried on the next tick. Use this to recover from a transient initialization failure.