FixedUpdateSystemBase Class
Definition
Namespace: Brine2D.ECS.Systems
Base class for fixed update systems with default implementations.
C#
public abstract class FixedUpdateSystemBase : Brine2D.ECS.Systems.IFixedUpdateSystem, Brine2D.ECS.ISystem, System.IDisposable
Inheritance System.Object → FixedUpdateSystemBase
Derived
↳ Box2DPhysicsSystem
↳ BuoyancySystem
↳ KinematicCharacterSystem
Implements IFixedUpdateSystem, ISystem, System.IDisposable
| Properties | |
|---|---|
| FixedUpdateOrder | Execution order for this system. Override to customize. Default is Physics \(0\). |
| 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. |
| Methods | |
|---|---|
| Dispose\(bool\) | Override to release cached queries and other resources held by this system. Always call base.Dispose(disposing). |
| FixedUpdate\(IEntityWorld, GameTime\) | Called at a fixed timestep to update this system. |
| OnStart\(IEntityWorld\) | Called once before the first FixedUpdate\(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. |