Class CallbackSystem
Proactive system that runs every tick. Used for non-entity work: timers, input draining, global state. Derive from this class, implement Configure(SystemBuilder) and Execute(TickContext).
public abstract class CallbackSystem : ISystem
- Inheritance
-
CallbackSystem
- Implements
- Derived
- Inherited Members
Constructors
CallbackSystem()
protected CallbackSystem()
Properties
Index
DAG position assigned by Build(IResource, ILogger). -1 before build.
public int Index { get; }
Property Value
Name
Configured name from Name(string). Null before registration; never changes after.
public string Name { get; }
Property Value
Methods
Configure(SystemBuilder)
Declare the system's name, dependencies, and configuration.
protected abstract void Configure(SystemBuilder b)
Parameters
Execute(TickContext)
Execute the system's logic for this tick.
protected abstract void Execute(TickContext ctx)
Parameters
ctxTickContext