edjournal/FSDJumpEntry.cs

20 lines
612 B
C#
Raw Normal View History

2021-08-25 18:24:44 +02:00
using Newtonsoft.Json.Linq;
namespace EDJournal {
public class FSDJumpEntry : Entry {
protected override void Initialise() {
SystemAddress = JSON.Value<ulong?>("SystemAddress") ?? 0;
StarSystem = JSON.Value<string>("StarSystem");
2021-08-25 18:24:44 +02:00
var faction = JSON.Value<JObject>("SystemFaction");
if (faction != null) {
SystemFaction = faction.Value<string>("Name");
2021-08-25 18:24:44 +02:00
}
}
public string StarSystem { get; set; }
2021-08-25 18:24:44 +02:00
public string SystemFaction { get; set; }
public ulong SystemAddress { get; set; }
2021-08-25 18:24:44 +02:00
}
}