Skip to content

CampaignFileMission beta ​

Interface of @v12-engine/client

ts
export interface CampaignFileMission

A mission as campaign.json has it: what MissionDef has that is data. map is the name of a map file of the game's (maps/<name>.vgmap.json), as the editor opens it

Members ​

briefing ​

ts
briefing?: CampaignFileBriefing;

Its briefing screen's words, picture and voice, as MissionDef.briefing shows them

debrief ​

ts
debrief?: {
        text?: string;
    };

What the player is told once it is won: its rating is the code's (MissionDef.debrief.rating)

description ​

ts
description?: string;

What it is about, for the campaign's menu

difficulty ​

ts
difficulty?: string;

The difficulty it is played on, whatever the campaign's: a first mission that teaches, always easy

id ​

ts
id: string;

The mission's id, as MissionDef.id and the saves name it

loading ​

ts
loading?: {
        text?: string;
        picture?: string;
    };

Its loading screen: words, and a picture by its path in images/ under them. The map's when left out

map ​

ts
map: string;

The map it is played on, by the name of its file: homestead for maps/homestead.vgmap.json

name ​

ts
name: string;

The mission's name, shown on the campaign's menu

picture ​

ts
picture?: string;

Its picture on the campaign's menu, by its path in images/