add mission failed

This commit is contained in:
Florian Stinglmayr 2021-11-12 21:49:37 +01:00
parent e26ccf51f8
commit 1b403b172a
4 changed files with 16 additions and 0 deletions

View File

@ -23,6 +23,7 @@ namespace EDJournal {
{ Events.MissionAbandoned, typeof(MissionAbandonedEntry) }, { Events.MissionAbandoned, typeof(MissionAbandonedEntry) },
{ Events.MissionAccepted, typeof(MissionAcceptedEntry) }, { Events.MissionAccepted, typeof(MissionAcceptedEntry) },
{ Events.MissionCompleted, typeof(MissionCompletedEntry) }, { Events.MissionCompleted, typeof(MissionCompletedEntry) },
{ Events.MissionFailed, typeof(MissionFailedEntry) },
{ Events.MissionRedirected, typeof(MissionRedirectedEntry) }, { Events.MissionRedirected, typeof(MissionRedirectedEntry) },
{ Events.MultiSellExplorationData, typeof(MultiSellExplorationDataEntry) }, { Events.MultiSellExplorationData, typeof(MultiSellExplorationDataEntry) },
{ Events.RedeemVoucher, typeof(RedeemVoucherEntry) }, { Events.RedeemVoucher, typeof(RedeemVoucherEntry) },

View File

@ -12,6 +12,7 @@
public static readonly string MissionAbandoned = "MissionAbandoned"; public static readonly string MissionAbandoned = "MissionAbandoned";
public static readonly string MissionAccepted = "MissionAccepted"; public static readonly string MissionAccepted = "MissionAccepted";
public static readonly string MissionCompleted = "MissionCompleted"; public static readonly string MissionCompleted = "MissionCompleted";
public static readonly string MissionFailed = "MissionFailed";
public static readonly string MissionRedirected = "MissionRedirected"; public static readonly string MissionRedirected = "MissionRedirected";
public static readonly string MultiSellExplorationData = "MultiSellExplorationData"; public static readonly string MultiSellExplorationData = "MultiSellExplorationData";
public static readonly string RedeemVoucher = "RedeemVoucher"; public static readonly string RedeemVoucher = "RedeemVoucher";

13
MissionFailedEntry.cs Normal file
View File

@ -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<string>("Name") ?? "";
MissionID = JSON.Value<int?>("MissionID") ?? 0;
Fine = JSON.Value<int?>("Fine") ?? 0;
}
}
}

View File

@ -57,6 +57,7 @@
<Compile Include="MissionAbandonedEntry.cs" /> <Compile Include="MissionAbandonedEntry.cs" />
<Compile Include="MissionAcceptedEntry.cs" /> <Compile Include="MissionAcceptedEntry.cs" />
<Compile Include="MissionCompletedEntry.cs" /> <Compile Include="MissionCompletedEntry.cs" />
<Compile Include="MissionFailedEntry.cs" />
<Compile Include="MissionRedirectedEntry.cs" /> <Compile Include="MissionRedirectedEntry.cs" />
<Compile Include="MultiSellExplorationDataEntry.cs" /> <Compile Include="MultiSellExplorationDataEntry.cs" />
<Compile Include="PlayerJournal.cs" /> <Compile Include="PlayerJournal.cs" />