From 86bd9f76c1a9a51c2234d0f94c934cda0cfe6b8f Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Tue, 26 Apr 2022 15:18:08 +0200 Subject: [PATCH] add starpos to necessary events --- FSDJumpEntry.cs | 3 +++ LocationEntry.cs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/FSDJumpEntry.cs b/FSDJumpEntry.cs index f045c2b..0cb736c 100644 --- a/FSDJumpEntry.cs +++ b/FSDJumpEntry.cs @@ -6,6 +6,8 @@ namespace EDJournal { protected override void Initialise() { SystemAddress = JSON.Value("SystemAddress") ?? 0; StarSystem = JSON.Value("StarSystem"); + StarPos = JSON.Value("StarPos").ToObject(); + var faction = JSON.Value("SystemFaction"); if (faction != null) { SystemFaction = faction.Value("Name"); @@ -21,6 +23,7 @@ namespace EDJournal { } } } + public ulong[] StarPos { get; set; } public string StarSystem { get; set; } public string SystemFaction { get; set; } diff --git a/LocationEntry.cs b/LocationEntry.cs index 897ae96..3e5aa39 100644 --- a/LocationEntry.cs +++ b/LocationEntry.cs @@ -13,6 +13,7 @@ namespace EDJournal { public ulong SystemAddress { get; set; } public string Body { get; set; } public bool Docked { get; set; } + public ulong[] StarPos { get; set; } public List SystemFactions { get; set; } = new List(); @@ -21,6 +22,7 @@ namespace EDJournal { SystemAddress = JSON.Value("SystemAddress") ?? 0; Docked = JSON.Value("Docked") ?? false; StationName = JSON.Value("StationName") ?? ""; + StarPos = JSON.Value("StarPos").ToObject(); JObject systemfaction = JSON.Value("SystemFaction"); if (systemfaction != null) {