mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add version field to campaign descriptor file.
This is used to provide a UI hint to guide players towards campaigns that have been updated to work with the current version of the game. All the campaigns we currently have were made for an unknown version of the game, so they're all flagged as incompatible. The version field is not the DCS Liberation version number because the campaign format may change multiple times during development. Instead the version number is a monotonically increasing integer that we increment whenever a game change requires campaign updates.
This commit is contained in:
@@ -84,6 +84,15 @@ 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user