Skip to content

API Interface MatchInfo

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: MatchInfo

Defined in: src/engine/net/lobby/match.ts:28

A match World's view of its match (Match.current).

Properties

ended

readonly ended: boolean;

Defined in: src/engine/net/lobby/match.ts:38

True once end was called (or the match ended on its own).


id

readonly id: number;

Defined in: src/engine/net/lobby/match.ts:30

The match's id (its World is named Match <id>).


players

readonly players: readonly MatchPlayer[];

Defined in: src/engine/net/lobby/match.ts:36

One per slot, by slot: the room's members, and bots in empty slots when the lobby fills them.


roomId

readonly roomId: number;

Defined in: src/engine/net/lobby/match.ts:32

The room it was started from.


settings

readonly settings: Readonly<Record<string, string>>;

Defined in: src/engine/net/lobby/match.ts:34

The room's settings when it started.

Methods

end()

end(results?): void;

Defined in: src/engine/net/lobby/match.ts:40

Close the match: its players go back to their room, which gets results (e.g. { winner: "Anne" }).

Parameters

results?

Readonly<Record<string, string>>

Returns

void

Clone this wiki locally