Skip to content

OutcomeLook beta ​

Interface of @v12-engine/client

ts
export interface OutcomeLook

The end of a game, as the game wants it (GameView.hud.outcome)

Members ​

buttons ​

ts
buttons?: {
        label: string;
        run: (client: HudClient) => void;
        when?: 'victory' | 'defeat';
    }[];

Buttons of the game's own: Next mission, Back to the campaign

component ​

ts
component?: (props: OutcomeProps) => JSX.Element;

A screen of the game's own instead, as a component: in the place of the client's (OutcomeScreen), which it can wrap

defeat ​

ts
defeat?: string;

The heading of a lost game; the client's own words when left out

mount ​

ts
mount?: (element: HTMLElement, client: HudClient, outcome: 'victory' | 'defeat') => () => void;

A screen of the game's own instead: it is given an element over the view, and the outcome

standard ​

ts
standard?: boolean;

Whether the client's buttons (retry, play again, keep watching) are there too. They are, when left out

victory ​

ts
victory?: string;

The heading of a won game; the client's own words when left out