diff --git a/EDPlayerJournal/Entries/Entry.cs b/EDPlayerJournal/Entries/Entry.cs index 2db9cf6..c66f0a2 100644 --- a/EDPlayerJournal/Entries/Entry.cs +++ b/EDPlayerJournal/Entries/Entry.cs @@ -44,6 +44,7 @@ public class Entry { { Events.SellOrganicData, typeof(SellOrganicDataEntry) }, { Events.ShieldState, typeof(ShieldStateEntry) }, { Events.ShipTargeted, typeof(ShipTargetedEntry) }, + { Events.SupercruiseDestinationDrop, typeof(SupercruiseDestinationDrop) }, { Events.SupercruiseEntry, typeof(SupercruiseEntryEntry) }, { Events.SupercruiseExit, typeof(SupercruiseExitEntry) }, { Events.UnderAttack, typeof(UnderAttackEntry) }, diff --git a/EDPlayerJournal/Entries/Events.cs b/EDPlayerJournal/Entries/Events.cs index b8f1388..3562a8d 100644 --- a/EDPlayerJournal/Entries/Events.cs +++ b/EDPlayerJournal/Entries/Events.cs @@ -35,6 +35,7 @@ public class Events { public static readonly string ShieldState = "ShieldState"; public static readonly string ShipTargeted = "ShipTargeted"; public static readonly string Shutdown = "Shutdown"; + public static readonly string SupercruiseDestinationDrop = "SupercruiseDestinationDrop"; public static readonly string SupercruiseEntry = "SupercruiseEntry"; public static readonly string SupercruiseExit = "SupercruiseExit"; public static readonly string UnderAttack = "UnderAttack"; diff --git a/EDPlayerJournal/Entries/SupercruiseDestinationDrop.cs b/EDPlayerJournal/Entries/SupercruiseDestinationDrop.cs new file mode 100644 index 0000000..2525b31 --- /dev/null +++ b/EDPlayerJournal/Entries/SupercruiseDestinationDrop.cs @@ -0,0 +1,30 @@ +namespace EDPlayerJournal.Entries; + +public class SupercruiseDestinationDrop : Entry { + /// + /// Destination type, internal string. + /// + public string? Type { get; set; } = null; + + /// + /// Destination type, localised string. + /// + public string? TypeLocalised { get; set; } = null; + + /// + /// Threat of the destination, if known. + /// + public long? Threat { get; set; } = null; + + /// + /// Market ID if it has one. + /// + public ulong? MarketID { get; set; } = null; + + protected override void Initialise() { + Type = JSON.Value("Type"); + TypeLocalised = JSON.Value("Type_Localised"); + Threat = JSON.Value("Threat"); + MarketID = JSON.Value("MarketID"); + } +} \ No newline at end of file