Skip to content

ServerSeat beta ​

Interface of @v12-engine/engine

ts
export interface ServerSeat

A seat at a game on a server: a player who joined, or a computer player

Members ​

ai ​

ts
ai: boolean;

Whether a computer player plays the seat

connected ​

ts
connected: boolean;

Whether someone is connected to it right now

fixed ​

ts
fixed?: string[];

Settings of the seat the mode fixes (ModeSeat.fixed: a race the map gives its player), by name: not the lobby's to change

kick ​

ts
kick?: {
        votes: number;
        needed: number;
    };

A vote to let who sits there go (kick), in the lobby: how many voted, and how many it takes

name ​

ts
name: string;

The name shown for who sits there

player ​

ts
player: PlayerId;

The player the seat is for

rated ​

ts
rated?: string;

Who sits there, as they are rated (ratedId: a hash of their key, safe to show), and their rating in the mode where the server keeps ratings

rating ​

ts
rating?: number;

The rating of who sits there in the mode, where the server keeps ratings

ready ​

ts
ready?: boolean;

Whether who sits there said they are ready, in the lobby: once every player seated is, the game starts

settings ​

ts
settings?: Record<string, string>;

What is chosen for this seat (ServerHooks.seatSettings), by name: none where the game has no such settings

team ​

ts
team?: number;

The team it plays for, where the mode says: who it is with and against