Skip to content

CampaignControllerOptions beta ​

Interface of @v12-engine/client

ts
export interface CampaignControllerOptions

What a campaign's controller is made from

Members ​

chapters ​

ts
chapters?: readonly CampaignChapter[];

Its missions in chapters, as the menu shows them: one of all its missions when left out

difficulties ​

ts
difficulties?: readonly string[];

The difficulties offered, by name, the first the one played when none was chosen: easy, normal and hard when left out

id ​

ts
id: string;

The campaign's id: the key its progress is kept under

leave ​

ts
leave: () => void;

Out of the campaign: back to the scenes

missions ​

ts
missions: readonly CampaignMissionInfo[];

The campaign's missions, in order

name ​

ts
name: string;

The campaign's name on the menu

play ​

ts
play: (mission: string) => void;

Plays a mission

saves ​

ts
saves: SavesController;

The games of the campaign saved in this browser

store ​

ts
store?: CampaignStore;

Where its progress is kept. This browser when left out