Skip to content

API Interface SystemContext

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

Interface: SystemContext

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

Properties

dt

readonly dt: number;

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

fixedDeltaTime in the fixedUpdate phase, deltaTime otherwise.


time

readonly time: TimeState;

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


world

readonly world: World;

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

Methods

single()

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

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

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