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