From 1b403b172a6eb8b3490a5f1eb20d825a63ac10b9 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 12 Nov 2021 21:49:37 +0100 Subject: [PATCH] add mission failed --- Entry.cs | 1 + Events.cs | 1 + MissionFailedEntry.cs | 13 +++++++++++++ edjournal.csproj | 1 + 4 files changed, 16 insertions(+) create mode 100644 MissionFailedEntry.cs diff --git a/Entry.cs b/Entry.cs index 33eab43..81facaf 100644 --- a/Entry.cs +++ b/Entry.cs @@ -23,6 +23,7 @@ namespace EDJournal { { Events.MissionAbandoned, typeof(MissionAbandonedEntry) }, { Events.MissionAccepted, typeof(MissionAcceptedEntry) }, { Events.MissionCompleted, typeof(MissionCompletedEntry) }, + { Events.MissionFailed, typeof(MissionFailedEntry) }, { Events.MissionRedirected, typeof(MissionRedirectedEntry) }, { Events.MultiSellExplorationData, typeof(MultiSellExplorationDataEntry) }, { Events.RedeemVoucher, typeof(RedeemVoucherEntry) }, diff --git a/Events.cs b/Events.cs index 585c989..b9566f7 100644 --- a/Events.cs +++ b/Events.cs @@ -12,6 +12,7 @@ public static readonly string MissionAbandoned = "MissionAbandoned"; public static readonly string MissionAccepted = "MissionAccepted"; public static readonly string MissionCompleted = "MissionCompleted"; + public static readonly string MissionFailed = "MissionFailed"; public static readonly string MissionRedirected = "MissionRedirected"; public static readonly string MultiSellExplorationData = "MultiSellExplorationData"; public static readonly string RedeemVoucher = "RedeemVoucher"; diff --git a/MissionFailedEntry.cs b/MissionFailedEntry.cs new file mode 100644 index 0000000..1f41d02 --- /dev/null +++ b/MissionFailedEntry.cs @@ -0,0 +1,13 @@ +namespace EDJournal { + public class MissionFailedEntry : Entry { + public string Name { get; set; } + public int MissionID { get; set; } + public int Fine { get; set; } + + protected override void Initialise() { + Name = JSON.Value("Name") ?? ""; + MissionID = JSON.Value("MissionID") ?? 0; + Fine = JSON.Value("Fine") ?? 0; + } + } +} diff --git a/edjournal.csproj b/edjournal.csproj index 53c60e3..c20ddae 100644 --- a/edjournal.csproj +++ b/edjournal.csproj @@ -57,6 +57,7 @@ +