CampaignStore beta
Interface of @v12-engine/client
ts
export interface CampaignStoreWhere a campaign's progress is kept between games
Members
clear
ts
clear(campaign: string): void;Forgets the progress kept for the campaign with that id
load
ts
load(campaign: string): CampaignProgress | undefined;Reads the progress kept for the campaign with that id, or undefined when none is kept
save
ts
save(progress: CampaignProgress): void;Keeps the progress of a campaign, replacing what was kept for it