Add campaign property for campaign start time.

This field is optional. Omitting the field (or using only a date instead
of a full timestamp) will use the old behavior of picking a random
daylight hour to start the campaign.

This doesn't include any UI in the new game wizard yet. This is only a
campaign yaml option.

https://github.com/dcs-liberation/dcs_liberation/issues/2400
This commit is contained in:
Dan Albert
2022-08-31 00:05:55 -07:00
committed by Raffson
parent b6da2d8e62
commit c5b50ceeae
7 changed files with 51 additions and 32 deletions

View File

@@ -150,4 +150,9 @@ VERSION = _build_version_string()
#: * Campaign files can optionally define the iads configuration
#: It is possible to define if the campaign supports advanced iads
#:
CAMPAIGN_FORMAT_VERSION = (10, 2)
#: Version 10.3
#: * Campaign files can optionally include a start time in their recommended_start_date
#: field. For example, `recommended_start_data: 2022-08-31 13:30:00` will have the
#: first turn start at 13:30. If omitted, or if only a date is given, the mission will
#: start at a random hour in the middle of the day as before.
CAMPAIGN_FORMAT_VERSION = (10, 3)