Skip to content

CampaignMissionInfo beta ​

Interface of @v12-engine/client

ts
export interface CampaignMissionInfo

A mission as a campaign's menu knows it: its words and picture, and how it is reached (MissionDef.unlock, next)

Members ​

branches ​

ts
branches?: boolean;

Whether it says which mission comes after it (MissionDef.next): then the one after it in the list is not reached by it

description ​

ts
description?: string;

A line about the mission on the menu, under its name

id ​

ts
id: string;

The mission's id, as the campaign names it (MissionDef.id)

name ​

ts
name: string;

The mission's name on the menu

picture ​

ts
picture?: string;

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

unlock ​

ts
unlock?: (progress: CampaignProgress) => boolean;

Whether it can be played, by how far the campaign is: in the place of the usual (see CampaignController.reached)