Repository navigation
API Function system
github-actions[bot] edited this page Dec 3, 2026
·
1 revision
function system(id, options?): <T>(value, context) => void;Defined in: src/engine/core/systemDecorators.ts:63
Class decorator: register a system under a stable id (ADR 0679), as @behavior does for components. The engine makes
one instance per World it runs in. Decorator order doesn't matter: registration waits until every decorator on the
class has run.
@system("game.Steering")
@updateInGroup(SimulationSystemGroup)
export class SteeringSystem implements ISystem {
private ships!: Query;
onCreate(state: SystemState) { this.ships = state.query(Transform, Ship); }
onUpdate(state: SystemState) { for (const ship of this.ships) { … } }
}string
SystemOptions = {}
<T>(value, context) => void
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference