add API to determine on foot missions
This commit is contained in:
parent
9d686bea61
commit
132d090fd5
@ -255,6 +255,18 @@ public class Mission : IComparable<Mission> {
|
||||
/// </summary>
|
||||
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 {
|
||||
get {
|
||||
|
Loading…
x
Reference in New Issue
Block a user