Table of Contents

Class QuerySystem

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Reactive system that processes entities from a View. Auto-skips when no filtered components were written and event queues are empty. Supports optional Parallel() mode for automatic chunking across workers. Derive from this class, implement Configure(SystemBuilder) and Execute(TickContext).

public abstract class QuerySystem : ISystem
Inheritance
QuerySystem
Implements
Inherited Members

Constructors

QuerySystem()

protected QuerySystem()

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, input View, and configuration.

protected abstract void Configure(SystemBuilder b)

Parameters

b SystemBuilder

Execute(TickContext)

Execute the system's logic. ctx.Entities yields the filtered entity set.

protected abstract void Execute(TickContext ctx)

Parameters

ctx TickContext