Skip to content

CampaignScenes beta ​

Interface of @v12-engine/client/app

ts
export interface CampaignScenes

Its scenes: the menu (<id>), the missions (<id>-mission, opened with { mission }: CampaignMissionArgs), and watching them from another page (<id>-watch), for a campaign that may be watched

Members ​

briefing ​

ts
briefing: Scene<CampaignMissionArgs>;

The briefing before a mission (<id>-briefing, opened with { mission })

debrief ​

ts
debrief: Scene<CampaignMissionArgs & Partial<MissionOutcome>>;

The debrief after one won (<id>-debrief, opened with { mission, seconds, stats })

ts
menu: Scene;

The campaign's menu scene (<id>)

mission ​

ts
mission: GameScene;

The scene that plays a mission (<id>-mission), opened with CampaignMissionArgs

scenes ​

ts
scenes: Scene[];

Every scene of the campaign (menu, mission, briefing, debrief and watch), to add to the app's scenes

watch ​

ts
watch?: Scene;

The scene that watches a mission from another page (<id>-watch); only for a campaign that may be watched