edjournal/MissionFailedEntry.cs

20 lines
584 B
C#
Raw Normal View History

2021-11-12 21:49:37 +01:00
namespace EDJournal {
public class MissionFailedEntry : Entry {
public string Name { get; set; }
public int MissionID { get; set; }
public int Fine { get; set; }
2021-11-12 22:23:12 +01:00
public string HumanReadableName {
get {
return HumanReadableMissionName.MakeHumanReadableName(Name);
}
}
2021-11-12 21:49:37 +01:00
protected override void Initialise() {
Name = JSON.Value<string>("Name") ?? "";
MissionID = JSON.Value<int?>("MissionID") ?? 0;
Fine = JSON.Value<int?>("Fine") ?? 0;
}
}
}