Skip to content

MissionWin beta ​

Interface of @v12-engine/client/campaign-worker

ts
export interface MissionWin<D extends object = Record<string, unknown>>

A mission won, as its world says it: what the campaign keeps of it (missionWon) and its debrief shows. Plain data: what a worker tells the page (WorkerSession.onTold)

Members ​

carried ​

ts
carried?: Partial<D>;

What the mission's carry gave, where it has one

heroes ​

ts
heroes: HeroRecord[];

The heroes carried out of it (carryOut)

kind ​

ts
kind: 'v12.missionWon';

Tells it from anything else a worker tells

mission ​

ts
mission: string;

The mission won, by id

seconds ​

ts
seconds: number;

The game's seconds as it was won

stats ​

ts
stats: MissionOutcome['stats'];

The player's stats (ScoreSettings.stats), for the debrief and its rating