edjournal/MissionFailedEntry.cs

20 lines
588 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; }
2022-02-14 17:46:53 +01:00
public ulong MissionID { get; set; }
2021-11-12 21:49:37 +01:00
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") ?? "";
2022-02-14 17:46:53 +01:00
MissionID = JSON.Value<ulong?>("MissionID") ?? 0;
2021-11-12 21:49:37 +01:00
Fine = JSON.Value<int?>("Fine") ?? 0;
}
}
}