GameListing beta
Interface of @v12-engine/engine
export interface GameListingA 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
computer: number;Seats the computer plays
draining
draining: boolean;Whether it takes no new games: stopping
free
free: number;Seats nobody holds that a player could take
game
game: string;The id of the game module the room runs
mode
mode: string;The id of the mode the game runs
phase
phase: 'lobby' | 'game' | 'ended';Where the game is: in its lobby, on, or ended
players
players: number;Seats players hold, seats nobody holds a player could, seats the computer plays
rating
rating?: number;How its players are rated, on average, where the server keeps ratings (Ratings)
room
room: string;The room name to connect to (ws://host:port/<room>); empty for a server of one game
settings
settings: Record<string, string>;The game's settings now, by name, such as the map
watchers
watchers: number;Connections watching without a seat