18 [Serialize(
MissionType.Current, IsPropertySaveable.Yes, description:
"Does the mission need to be currently active, selected for the next round or available.")]
21 [Serialize(
"", IsPropertySaveable.Yes, description:
"Identifier of the mission.")]
24 [Serialize(
"", IsPropertySaveable.Yes, description:
"Tag of the mission. Ignored if MissionIdentifier is set.")]
27 [Serialize(1, IsPropertySaveable.Yes, description:
"Minimum number of matching missions for the check to succeed.")]
30 public CheckMissionAction(ScriptedEvent parentEvent, ContentXElement element) : base(parentEvent, element)
37 var missions =
Type switch
39 MissionType.Current => GameMain.GameSession?.Missions,
40 MissionType.Selected => GameMain.GameSession?.Campaign?.Missions,
41 MissionType.Available => GameMain.GameSession?.Map?.CurrentLocation?.AvailableMissions,
44 if (missions is not
null)
Check whether a specific mission is currently active, selected for the next round or available.
override? bool DetermineSuccess()
Identifier MissionIdentifier
CheckMissionAction(ScriptedEvent parentEvent, ContentXElement element)