Repository navigation
API Interface WorldHandle
Defined in: src/engine/core/worlds.ts:129
A handle on a World: the only cross-World API. It controls the World's lifetime and setup but never exposes its nodes, so Worlds stay isolated (ADR 0032).
readonly alive: boolean;Defined in: src/engine/core/worlds.ts:133
False once destroyed. Methods on a destroyed handle throw.
readonly name: string;Defined in: src/engine/core/worlds.ts:130
readonly paused: boolean;Defined in: src/engine/core/worlds.ts:134
readonly tags: readonly WorldTag[];Defined in: src/engine/core/worlds.ts:131
addresses(): readonly string[];Defined in: src/engine/core/worlds.ts:155
Where this World listens (ADR 0067). Empty if it doesn't.
readonly string[]
addSystem(name): void;Defined in: src/engine/core/worlds.ts:139
Add a catalog system by name. Throws for unknown names.
string
void
connect(
server,
transport,
options?
): void;Defined in: src/engine/core/worlds.ts:147
Join this World (client side) to server over a transport (ADR 0033): a World of this page,
or the address of a server elsewhere, such as a dedicated server's "ws://host:7777" (ADR 0036).
string | WorldHandle
string
Record<string, unknown>
void
destroy(): void;Defined in: src/engine/core/worlds.ts:159
Destroy the World and everything in it.
void
hasTag(tag): boolean;Defined in: src/engine/core/worlds.ts:135
boolean
listen(transport, options?): Promise<string>;Defined in: src/engine/core/worlds.ts:153
Make this World a server and listen over a transport (ADR 0067). Resolves with the address
clients connect to; rejects with a reason. Options: port, host, path, address,
maxConnections and timeouts. Throws if the World is a client.
string
Record<string, unknown>
Promise<string>
loadScene(path, options?): Promise<void>;Defined in: src/engine/core/worlds.ts:137
Load a scene into the World (at the end of its next frame if it's mid-frame).
string
boolean
Promise<void>
pause(): void;Defined in: src/engine/core/worlds.ts:156
void
removeSystem(name): void;Defined in: src/engine/core/worlds.ts:140
string
void
resume(): void;Defined in: src/engine/core/worlds.ts:157
void
systems(): readonly string[];Defined in: src/engine/core/worlds.ts:142
The World's systems by name, in execution order per phase.
readonly string[]
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