Move campaign format version to a stable location.

This commit is contained in:
Dan Albert
2021-04-18 17:37:55 -07:00
parent 39135f8c80
commit c92e4e06cc
3 changed files with 12 additions and 11 deletions

View File

@@ -84,15 +84,6 @@ def pairwise(iterable):
class MizCampaignLoader:
#: The latest version of the campaign format. Increment this version whenever all
#: existing campaigns should be flagged as incompatible in the UI. We will still
#: attempt to load old campaigns, but this provides a warning to the user that the
#: campaign may not work correctly.
#:
#: There is no verification that the campaign author updated their campaign
#: correctly, this is just a UI hint.
VERSION = 1
BLUE_COUNTRY = CombinedJointTaskForcesBlue()
RED_COUNTRY = CombinedJointTaskForcesRed()

View File

@@ -16,3 +16,12 @@ def _build_version_string() -> str:
#: Current version of Liberation.
VERSION = _build_version_string()
#: The latest version of the campaign format. Increment this version whenever all
#: existing campaigns should be flagged as incompatible in the UI. We will still attempt
#: to load old campaigns, but this provides a warning to the user that the campaign may
#: not work correctly.
#:
#: There is no verification that the campaign author updated their campaign correctly
#: this is just a UI hint.
CAMPAIGN_FORMAT_VERSION = 1