Skip to content

OutcomeProps beta ​

Interface of @v12-engine/client

ts
export interface OutcomeProps

What the screen at the end of a game is given: the game, how it ended, and the way to play it again

Members ​

client ​

ts
client: HudClient;

The client around the HUD: its model, commands and settings

outcome ​

ts
outcome: 'victory' | 'defeat';

How the game ended for the player

restart ​

ts
restart: (from?: WorldSave) => void;

The same game again: from its start, or from a save (the rules' last checkpoint)