add SearchAndRescue event

This commit is contained in:
Florian Stinglmayr 2022-02-09 08:56:25 +01:00
parent 47fcbdb071
commit be1f0b72e3
4 changed files with 22 additions and 0 deletions

View File

@ -29,6 +29,7 @@ namespace EDJournal {
{ Events.MissionRedirected, typeof(MissionRedirectedEntry) }, { Events.MissionRedirected, typeof(MissionRedirectedEntry) },
{ Events.MultiSellExplorationData, typeof(MultiSellExplorationDataEntry) }, { Events.MultiSellExplorationData, typeof(MultiSellExplorationDataEntry) },
{ Events.RedeemVoucher, typeof(RedeemVoucherEntry) }, { Events.RedeemVoucher, typeof(RedeemVoucherEntry) },
{ Events.SearchAndRescue, typeof(SearchAndRescueEntry) },
{ Events.SellExplorationData, typeof(SellExplorationDataEntry) }, { Events.SellExplorationData, typeof(SellExplorationDataEntry) },
{ Events.SellMicroResources, typeof(SellMicroResourcesEntry) }, { Events.SellMicroResources, typeof(SellMicroResourcesEntry) },
{ Events.SellOrganicData, typeof(SellOrganicDataEntry) }, { Events.SellOrganicData, typeof(SellOrganicDataEntry) },

View File

@ -18,6 +18,7 @@
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";
public static readonly string SearchAndRescue = "SearchAndRescue";
public static readonly string SellExplorationData = "SellExplorationData"; public static readonly string SellExplorationData = "SellExplorationData";
public static readonly string SellMicroResources = "SellMicroResources"; public static readonly string SellMicroResources = "SellMicroResources";
public static readonly string SellOrganicData = "SellOrganicData"; public static readonly string SellOrganicData = "SellOrganicData";

19
SearchAndRescueEntry.cs Normal file
View File

@ -0,0 +1,19 @@
namespace EDJournal {
public class SearchAndRescueEntry : Entry {
public long MarketID { get; set; }
public string Name { get; set; }
public string NameLocalised { get; set; }
public long Count { get; set; }
public long Reward { get; set; }
protected override void Initialise() {
MarketID = JSON.Value<long?>("MarketID") ?? 0;
Name = JSON.Value<string>("Name") ?? "";
NameLocalised = JSON.Value<string>("Name_Localised");
Count = JSON.Value<long?>("Count") ?? 0;
Reward = JSON.Value<long?>("Reward") ?? 0;
}
}
}

View File

@ -69,6 +69,7 @@
<Compile Include="PlayerJournal.cs" /> <Compile Include="PlayerJournal.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RedeemVoucherEntry.cs" /> <Compile Include="RedeemVoucherEntry.cs" />
<Compile Include="SearchAndRescueEntry.cs" />
<Compile Include="SellExplorationDataEntry.cs" /> <Compile Include="SellExplorationDataEntry.cs" />
<Compile Include="SellMicroResourcesEntry.cs" /> <Compile Include="SellMicroResourcesEntry.cs" />
<Compile Include="SellOrganicDataEntry.cs" /> <Compile Include="SellOrganicDataEntry.cs" />