add API to determine on foot missions

This commit is contained in:
Florian Stinglmayr 2022-12-28 09:53:02 +01:00
parent 9d686bea61
commit 132d090fd5

View File

@ -255,6 +255,18 @@ public class Mission : IComparable<Mission> {
/// </summary> /// </summary>
public List<MissionFactionEffects> FactionEffects { get; set; } = new List<MissionFactionEffects>(); public List<MissionFactionEffects> FactionEffects { get; set; } = new List<MissionFactionEffects>();
/// <summary>
/// Returns true if the name is an on foot mission.
/// </summary>
public bool IsOnFoot {
get {
if (string.IsNullOrEmpty(Name)) {
return false;
}
return Name.Contains("OnFoot");
}
}
public bool IsPassengerMission { public bool IsPassengerMission {
get { get {