CampaignWorkerArgs beta
Interface of @v12-engine/client/campaign-worker
ts
export interface CampaignWorkerArgs<D extends object = Record<string, unknown>>What the campaign's scene sends its worker of the mission to play (WorkerGame.args): plain data
Members
campaign
ts
campaign: string;The campaign, by id
cinematic
ts
cinematic?: string;The cinematic the mission opens on, its briefing, played as a new game starts with the world held
code
ts
code: boolean;Whether the page's mission has code that runs on its world (onStart, carry): the worker's must have it too
difficulty
ts
difficulty: string;The difficulty the mission is played on: the mission's own, else the campaign's (a game loaded keeps the one it was saved on)
heroesAt
ts
heroesAt: Vec2;Where the heroes carried in come in, where the map places none for them
mission
ts
mission: string;The mission, by id
progress
ts
progress: CampaignProgress<D>;The campaign's progress as the mission begins: the heroes and the data the missions before carried