GameResult beta
Interface of @v12-engine/engine
ts
export interface GameResultHow a game on a server ended: who won, and each seat's outcome
Members
duration
ts
duration: number;Seconds of game time
failed
ts
failed?: string;What the players were told, for a game that ended on an error and not by its rules (World.failure)
game
ts
game: string;The id of the game that was played
mode
ts
mode: string;The id of the mode it was played in
seats
ts
seats: (ServerSeat & {
outcome: 'victory' | 'defeat' | 'none';
})[];Every seat with how it ended for it
winner
ts
winner: number | null;The winning team, or null for a game that was stopped