diff --git a/EDPlayerJournal/Entries/LocationEntry.cs b/EDPlayerJournal/Entries/LocationEntry.cs index 0ea362c..0f73bbb 100644 --- a/EDPlayerJournal/Entries/LocationEntry.cs +++ b/EDPlayerJournal/Entries/LocationEntry.cs @@ -1,18 +1,47 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Newtonsoft.Json.Linq; +using Newtonsoft.Json.Linq; + +namespace EDPlayerJournal.Entries; -namespace EDPlayerJournal.Entries; public class LocationEntry : Entry { + /// + /// Current star system. + /// public string? StarSystem { get; set; } + + /// + /// Faction in control of the current star system. Empty for unpopulated + /// systems. + /// public string? SystemFaction { get; set; } - public string? StationName { get; set; } + + /// + /// 64bit system address. + /// public ulong SystemAddress { get; set; } + + /// + /// Station name if docked at a station. + /// + public string? StationName { get; set; } + + /// + /// Faction in control of the current station, if docked. + /// + public string? StationFaction { get; set; } + + /// + /// Body within the system, might be null. + /// public string? Body { get; set; } + + /// + /// Returns true if the player is docked somewhere. + /// public bool Docked { get; set; } + + /// + /// Position of the star system. + /// public long[]? StarPos { get; set; } public List SystemFactions { get; set; } = new List(); @@ -30,7 +59,12 @@ public class LocationEntry : Entry { JObject? systemfaction = JSON.Value("SystemFaction"); if (systemfaction != null) { - SystemFaction = systemfaction.Value("Name") ?? ""; + SystemFaction = systemfaction.Value("Name"); + } + + JObject? stationfaction = JSON.Value("StationFaction"); + if (stationfaction != null) { + StationFaction = stationfaction.Value("Name"); } JArray? factions = JSON.Value("Factions");