Skip to content

DebriefProps beta ​

Interface of @v12-engine/client/app

ts
export interface DebriefProps

What a mission's debrief screen is given (MissionDef.debrief): the mission, its words, how long it took, the player's stats, a rating of one to three, and where it goes on to

Members ​

back ​

ts
back: () => void;

Goes back to the campaign's menu; run by the button and the Escape key

campaign ​

ts
campaign: string;

The id of the campaign the mission is in

goOn ​

ts
goOn: () => void;

Goes on to the next mission or ends the campaign; run by the button and the Enter key

mission ​

ts
mission: string;

The id of the mission that was won

next ​

ts
next: string;

The words of the way on: the next mission's name, or the campaign won

rating ​

ts
rating?: 1 | 2 | 3;

The mission's rating of one to three; none shown when left out

seconds ​

ts
seconds: number;

How long the mission took, in seconds of game time

stats ​

ts
stats: readonly {
        id: string;
        name: string;
        value: number;
    }[];

The player's stats, each with its id, shown name and value

text ​

ts
text?: string;

The debrief's words; none shown when left out