UpdateSystemBase Class
Definition
Namespace: Brine2D.ECS.Systems
Base class for update systems with default implementations.
C#
public abstract class UpdateSystemBase : Brine2D.ECS.IUpdateSystem, Brine2D.ECS.ISystem, System.IDisposable
Inheritance System.Object → UpdateSystemBase
Derived
↳ AISystem
↳ AnimationSystem
↳ AudioSystem
↳ PlayerControllerSystem
↳ CameraSystem
Implements IUpdateSystem, ISystem, System.IDisposable
| Properties | |
|---|---|
| IsEnabled | Whether this system is currently enabled. |
| 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. |
| UpdateOrder | Execution order for this system. Override to customize. Default is Update \(0\). |
| 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 Update\(IEntityWorld, GameTime\) dispatch. Override to perform initialization that depends on the world being fully set up. |
| 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. |
| Update\(IEntityWorld, GameTime\) | Called every frame to update this system. |