add station state to the journal
This commit is contained in:
parent
3df82af239
commit
eaeaa5e0b4
@ -2,15 +2,36 @@
|
|||||||
|
|
||||||
namespace EDPlayerJournal.Entries;
|
namespace EDPlayerJournal.Entries;
|
||||||
public class DockedEntry : Entry {
|
public class DockedEntry : Entry {
|
||||||
|
/// <summary>
|
||||||
|
/// Name of the station
|
||||||
|
/// </summary>
|
||||||
public string? StationName { get; set; }
|
public string? StationName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Star system of the station
|
||||||
|
/// </summary>
|
||||||
public string? StarSystem { get; set; }
|
public string? StarSystem { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// System address
|
||||||
|
/// </summary>
|
||||||
public ulong? SystemAddress { get; set; }
|
public ulong? SystemAddress { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Faction owning the station.
|
||||||
|
/// </summary>
|
||||||
public string? StationFaction { get; set; }
|
public string? StationFaction { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// State of the station, new in Update 14
|
||||||
|
/// </summary>
|
||||||
|
public string? StationState { get; set; }
|
||||||
|
|
||||||
protected override void Initialise() {
|
protected override void Initialise() {
|
||||||
StationName = JSON.Value<string>("StationName");
|
StationName = JSON.Value<string>("StationName");
|
||||||
StarSystem = JSON.Value<string>("StarSystem");
|
StarSystem = JSON.Value<string>("StarSystem");
|
||||||
SystemAddress = JSON.Value<ulong?>("SystemAddress");
|
SystemAddress = JSON.Value<ulong?>("SystemAddress");
|
||||||
|
StationState = JSON.Value<string>("StationState");
|
||||||
JObject? faction = JSON.Value<JObject>("StationFaction");
|
JObject? faction = JSON.Value<JObject>("StationFaction");
|
||||||
if (faction != null) {
|
if (faction != null) {
|
||||||
StationFaction = faction.Value<string>("Name") ?? "";
|
StationFaction = faction.Value<string>("Name") ?? "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user