Class: CampaignRun

CampaignRun()

A campaign "Run" saves metadata on a campaign progession. It is equivalent to a saved game for a game. It is named a "run" in an attempt to disambiguate with saved games from campaign runs, campaign templates, and the actual concept of a campaign at large. The intent is that this file should be lightweight to load/save.

Constructor

new CampaignRun()

Source:

Members

data

Source:

data

Source:

data

Source:

filename

Source:

meta

Source:

meta

Source:

template

Source:

template

Source:

template

Source:

Methods

destroy()

Source:

getEndGamePath()

Source:

getLabel(full)

Return a readable name for this campaign.
Parameters:
Name Type Description
full if true, include both user description and template name. Otherwise, skip one if they're identical.
Source:

getMenuPath()

Source:

isCurrent()

Source:

load()

Source:

save()

Source:

setCurrent()

Source:

setData()

Source:

setMeta()

Source:

setTemplate()

Source:

(static) clearCurrentRun()

Source:

(static) getCurrentRun()

Source:

(static) getCurrentRunFilename()

Source:

(static) hasCurrentRun()

Source: