API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classSystemRegistry

@codexo/exojs / core / stable

Ordered registry of per-frame Systems, shared by Scene (as `scene.systems`) and `Application` (as `app.systems`). Systems tick once per frame in ascending `order` (ties keep insertion order) and are destroyed in reverse registration order when the registry is destroyed. Structural mutations made from inside a system's `update()` (a system adding or removing another, or itself) are deferred until the tick completes, so the iteration is never invalidated mid-frame.

1
props
4
methods
2
events
Import
import { SystemRegistry } from '@codexo/exojs'

Ordered registry of per-frame Systems, shared by Scene (as `scene.systems`) and `Application` (as `app.systems`). Systems tick once per frame in ascending `order` (ties keep insertion order) and are destroyed in reverse registration order when the registry is destroyed.

Structural mutations made from inside a system's `update()` (a system adding or removing another, or itself) are deferred until the tick completes, so the iteration is never invalidated mid-frame.

Constructors 1
new(): SystemRegistry
Methods 4
add(system: T): T
destroy(): void
has(system: System): boolean
remove(system: System): boolean
Properties 1
size: number
Events 2
onAdd: Signal<[system]>
onRemove: Signal<[system]>
Source