Repository navigation
API Class Lobby
Defined in: src/engine/net/lobby/client.ts:545
Lobbies and matchmaking (ADR 0068), client side: static and page-wide, usable from any World. Menus poll its state.
Lobby.connect("ws://play.example.com:7777", { name: "Anne" }); // or "local"
Lobby.quickMatch({ arena: "bay" });
if (Lobby.state === "room") Lobby.setReady(true);get static error(): string;Defined in: src/engine/net/lobby/client.ts:573
The last refusal or disconnect reason ("" for none).
string
get static matchLoading(): LoadProgress | null;Defined in: src/engine/net/lobby/client.ts:601
While a match loads behind the menu (ADR 0616): how far it has come (progress 0..1, phase), for a
loading bar. Non-null from the lobby starting the match until the match World takes the screen.
LoadProgress | null
get static matchWorld(): WorldHandle | null;Defined in: src/engine/net/lobby/client.ts:593
The match client World while a match plays, else null.
WorldHandle | null
get static me(): LobbyMe | null;Defined in: src/engine/net/lobby/client.ts:588
The player's slot and whether they host their room, or null outside a room.
LobbyMe | null
get static room(): LobbyRoom | null;Defined in: src/engine/net/lobby/client.ts:583
The room the player is in (members, ready flags, host, settings, countdown), or null.
LobbyRoom | null
get static rooms(): readonly LobbyRoomInfo[];Defined in: src/engine/net/lobby/client.ts:578
Public rooms: code, name, member count, settings.
readonly LobbyRoomInfo[]
get static state(): LobbyState;Defined in: src/engine/net/lobby/client.ts:568
"offline" | "connecting" | "lobby" | "room" | "starting" | "match".
static connect(
address,
profile,
options?
): void;Defined in: src/engine/net/lobby/client.ts:559
Connect to a lobby server ("ws://host:7777"), or "local" to run the project's lobby World in this page. Returns at once.
string
void
static createRoom(options?): void;Defined in: src/engine/net/lobby/client.ts:609
string
boolean
Readonly<Record<string, string>>
void
static disconnect(): void;Defined in: src/engine/net/lobby/client.ts:563
void
static host(world, options): void;Defined in: src/engine/net/lobby/client.ts:552
Turn on the lobby service in a server World (as a World config's "lobby" does).
void
static joinRoom(code): void;Defined in: src/engine/net/lobby/client.ts:613
string
void
static kick(slot): void;Defined in: src/engine/net/lobby/client.ts:631
Host only.
number
void
static leaveMatch(): void;Defined in: src/engine/net/lobby/client.ts:641
Leave the running match and go back to the room.
void
static leaveRoom(): void;Defined in: src/engine/net/lobby/client.ts:617
void
static quickMatch(settings?): void;Defined in: src/engine/net/lobby/client.ts:605
Readonly<Record<string, string>>
void
static setReady(ready): void;Defined in: src/engine/net/lobby/client.ts:621
boolean
void
static setSetting(key, value): void;Defined in: src/engine/net/lobby/client.ts:626
Host only.
string
string
void
static start(): void;Defined in: src/engine/net/lobby/client.ts:636
Host only: start once the room has minPlayers.
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