Skip to content

API Function defineSystem

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

Function: defineSystem()

function defineSystem(def): SystemDef;

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

Register a user system in the catalog (ADR 0032). It runs in the Worlds whose tags its worlds filter matches (by default, the default World) and in any World it's added to by name.

If its after/before close an ordering loop, the loop is logged once and broken at the most recently added constraint on it, so the game keeps running (ADR 0397).

Parameters

def

SystemDef

Returns

SystemDef

Clone this wiki locally