Skip to content

API Interface SystemContext

github-actions[bot] edited this page Nov 27, 2026 · 3 revisions

Interface: SystemContext

Defined in: src/engine/core/systems.ts:28

Properties

dt

readonly dt: number;

Defined in: src/engine/core/systems.ts:32

fixedDeltaTime in the fixedUpdate phase, deltaTime otherwise.


time

readonly time: TimeState;

Defined in: src/engine/core/systems.ts:30


world

readonly world: World;

Defined in: src/engine/core/systems.ts:29

Methods

single()

single<V>(def): V | null;

Defined in: src/engine/core/systems.ts:34

The view of the first node that has def, or null. Handy for singleton state.

Type Parameters

V

V = Record<string, number>

Parameters

def

DataComponentDef

Returns

V | null

Clone this wiki locally