Skip to content

API Interface MatchPlayer

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

Interface: MatchPlayer

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

One player slot of a match.

Properties

bot

readonly bot: boolean;

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

True for a slot the lobby filled with a bot (fillWithBots).


connectionId

readonly connectionId: number;

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

The id of this player's connection (Connection.id) once it's open; 0 before, after it closes, and for bots.


name

name: string;

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

The member's name; for a bot, whatever the game names it (empty until then).


slot

readonly slot: number;

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

The player's slot in the room (0-based).

Clone this wiki locally