Skip to content

GameListing beta ​

Interface of @v12-engine/engine

ts
export interface GameListing

A game of a server, as its list says it (GET /games): its room (what to connect to, ws://host:port/<room>; none for a server of one game), the game and mode, where it is at, its seats taken and free, who watches, and its settings (the map, among them, where the mode offers one)

Members ​

computer ​

ts
computer: number;

Seats the computer plays

draining ​

ts
draining: boolean;

Whether it takes no new games: stopping

free ​

ts
free: number;

Seats nobody holds that a player could take

game ​

ts
game: string;

The id of the game module the room runs

mode ​

ts
mode: string;

The id of the mode the game runs

phase ​

ts
phase: 'lobby' | 'game' | 'ended';

Where the game is: in its lobby, on, or ended

players ​

ts
players: number;

Seats players hold, seats nobody holds a player could, seats the computer plays

rating ​

ts
rating?: number;

How its players are rated, on average, where the server keeps ratings (Ratings)

room ​

ts
room: string;

The room name to connect to (ws://host:port/<room>); empty for a server of one game

settings ​

ts
settings: Record<string, string>;

The game's settings now, by name, such as the map

watchers ​

ts
watchers: number;

Connections watching without a seat