Archived
1
0
This repository has been archived on 2021-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
nonabgs/Journal/FSDJumpEntry.cs

24 lines
706 B
C#
Raw Normal View History

2021-07-09 11:03:30 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace NonaBGS.Journal {
public class FSDJumpEntry : Entry {
private string starsystem = null;
private string systemfaction = null;
protected override void Initialise() {
starsystem = JSON.Value<string>("StarSystem");
var faction = JSON.Value<JObject>("SystemFaction");
if (faction != null) {
systemfaction = faction.Value<string>("Name");
}
}
public string StarSystem => starsystem;
public string SystemFaction => systemfaction;
}
}