EDBGS/EDPlayerJournal/Entries/MissionFailedEntry.cs

16 lines
386 B
C#
Raw Normal View History

namespace EDPlayerJournal.Entries;
2022-11-01 18:01:28 +01:00
public class MissionFailedEntry : Entry {
/// <summary>
/// Fine imposed for mission failure.
/// </summary>
2022-11-01 18:01:28 +01:00
public int Fine { get; set; }
public Mission? Mission { get; set; }
2022-11-01 18:01:28 +01:00
protected override void Initialise() {
Mission = Mission.FromMissionFailed(JSON);
2022-11-01 18:01:28 +01:00
Fine = JSON.Value<int?>("Fine") ?? 0;
}
}