Repository navigation
API Interface SystemDef
Defined in: src/engine/core/systems.ts:38
readonly after?: readonly string[];Defined in: src/engine/core/systems.ts:42
readonly before?: readonly string[];Defined in: src/engine/core/systems.ts:43
readonly name: string;Defined in: src/engine/core/systems.ts:40
Unique name, e.g. game.ScrollSystem. Other systems can order against it.
readonly phase: Phase;Defined in: src/engine/core/systems.ts:41
readonly predicted?: boolean;Defined in: src/engine/core/systems.ts:67
A predicted system (ADR 0033 §6, T13; Unity's PredictedSimulationSystemGroup): it moves the
state the owning client predicts. fixedUpdate only. Default false.
On servers and in Worlds that aren't networked it runs like any other system. On a network
client it runs on the prediction timeline (net/prediction.ts):
- its rows are only the ghosts this client predicts (
Replicated.isPredictedLocally), not their children or any other node; - it runs once per predicted tick (
time.network.serverTick), so a fixed step can run it more than once (catching up skipped ticks) or not at all (its tick was already simulated); - when a snapshot corrects a prediction, it runs again for the ticks since that snapshot
(re-simulation), with
Move.of(node)returning each tick's input. So keep it deterministic, and let it change only its rows' predicted values (the transform, data fields listed inreplicate(def, { predicted }), behavior fields declared{ predicted: true }). On a client, predicted systems always run afterengine.PredictionTick.
readonly query?: readonly QueryTerm[];Defined in: src/engine/core/systems.ts:45
Rows include only nodes that are active in the hierarchy and have every term.
readonly worlds?: readonly WorldTag[];Defined in: src/engine/core/systems.ts:50
Tags of the Worlds this system is meant for (ADR 0032): it runs in Worlds with any of them
("*": every World). Default ["default", "local"]. Adding it to a World by name works regardless.
run(rows, ctx): void;Defined in: src/engine/core/systems.ts:69
rows iterates row by row, and gives typed-array columns for hot loops (rows.column, ADR 0064).
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