MissionCode beta
TypeAlias of @v12-engine/client/app
ts
export type MissionCode<D extends object = Record<string, unknown>> = Partial<MissionDef<D>> & {
id: string;
};A mission as a campaign's code gives it beside its file (CampaignFromFile.missions): by its id, what data cannot say (start, carry, unlock, next, player, heroesAt, a debrief's rating), and anything else of MissionDef, which the file's mission of that id says over