add support for DropshipDeploy
This commit is contained in:
42
EDPlayerJournal/Entries/DropshipDeployEntry.cs
Normal file
42
EDPlayerJournal/Entries/DropshipDeployEntry.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
namespace EDPlayerJournal.Entries;
|
||||
|
||||
public class DropshipDeployEntry : Entry {
|
||||
/// <summary>
|
||||
/// Star system this drop happened in.
|
||||
/// </summary>
|
||||
public string? StarSystem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// System address
|
||||
/// </summary>
|
||||
public ulong? SystemAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Planetary body
|
||||
/// </summary>
|
||||
public string? Body { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Body ID
|
||||
/// </summary>
|
||||
public ulong? BodyID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether it happened on station.
|
||||
/// </summary>
|
||||
public bool? OnStation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether it happened on a planet.
|
||||
/// </summary>
|
||||
public bool? OnPlanet { get; set; }
|
||||
|
||||
protected override void Initialise() {
|
||||
StarSystem = JSON.Value<string?>("StarSystem");
|
||||
SystemAddress = JSON.Value<ulong?>("SystemAddress");
|
||||
Body = JSON.Value<string?>("Body");
|
||||
BodyID = JSON.Value<ulong?>("BodyID");
|
||||
OnStation = JSON.Value<bool?>("OnStation");
|
||||
OnPlanet = JSON.Value<bool?>("OnPlanet");
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ public class Entry {
|
||||
{ Events.Died, typeof(DiedEntry) },
|
||||
{ Events.Disembark, typeof(DisembarkEntry) },
|
||||
{ Events.Docked, typeof(DockedEntry) },
|
||||
{ Events.DropshipDeploy, typeof(DropshipDeployEntry) },
|
||||
{ Events.Embark, typeof(EmbarkEntry) },
|
||||
{ Events.FactionKillBond, typeof(FactionKillBondEntry) },
|
||||
{ Events.FileHeader, typeof(FileHeaderEntry) },
|
||||
|
||||
@@ -8,6 +8,7 @@ public class Events {
|
||||
public static readonly string Died = "Died";
|
||||
public static readonly string Disembark = "Disembark";
|
||||
public static readonly string Docked = "Docked";
|
||||
public static readonly string DropshipDeploy = "DropshipDeploy";
|
||||
public static readonly string Embark = "Embark";
|
||||
public static readonly string FactionKillBond = "FactionKillBond";
|
||||
public static readonly string FighterDestroyed = "FighterDestroyed";
|
||||
|
||||
Reference in New Issue
Block a user