Table of Contents

Class CallbackSystem

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

int

Name

Configured name from Name(string). Null before registration; never changes after.

public string Name { get; }

Property Value

string

Methods

Configure(SystemBuilder)

Declare the system's name, dependencies, and configuration.

protected abstract void Configure(SystemBuilder b)

Parameters

b SystemBuilder

Execute(TickContext)

Execute the system's logic for this tick.

protected abstract void Execute(TickContext ctx)

Parameters

ctx TickContext