ServerSeat beta
Interface of @v12-engine/engine
export interface ServerSeatA seat at a game on a server: a player who joined, or a computer player
Members
ai
ai: boolean;Whether a computer player plays the seat
connected
connected: boolean;Whether someone is connected to it right now
fixed
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
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
name: string;The name shown for who sits there
player
player: PlayerId;The player the seat is for
rated
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
rating?: number;The rating of who sits there in the mode, where the server keeps ratings
ready
ready?: boolean;Whether who sits there said they are ready, in the lobby: once every player seated is, the game starts
settings
settings?: Record<string, string>;What is chosen for this seat (ServerHooks.seatSettings), by name: none where the game has no such settings
team
team?: number;The team it plays for, where the mode says: who it is with and against