2021-08-26 11:29:11 +02:00
|
|
|
|
|
|
|
|
|
namespace EDJournal {
|
|
|
|
|
public class MissionAcceptedEntry : Entry {
|
|
|
|
|
private string faction = null;
|
2021-08-28 00:10:24 +02:00
|
|
|
|
private string targetfaction = null;
|
2021-08-26 11:29:11 +02:00
|
|
|
|
private string name = null;
|
|
|
|
|
private string localisedname = null;
|
|
|
|
|
private string localisedtargettype = null;
|
|
|
|
|
private int killcount = 0;
|
|
|
|
|
private int missionid = 0;
|
|
|
|
|
private int reward = 0;
|
|
|
|
|
|
|
|
|
|
public string Faction => faction;
|
2021-08-28 00:10:24 +02:00
|
|
|
|
public string TargetFaction => targetfaction;
|
2021-08-26 11:29:11 +02:00
|
|
|
|
public string Name => name;
|
|
|
|
|
public string LocalisedName => localisedname;
|
|
|
|
|
public string LocalisedTargetType => localisedtargettype;
|
|
|
|
|
public int KillCount => killcount;
|
|
|
|
|
public int MissionID => missionid;
|
|
|
|
|
public int Reward => reward;
|
|
|
|
|
|
|
|
|
|
protected override void Initialise() {
|
|
|
|
|
faction = JSON.Value<string>("Faction") ?? "";
|
2021-08-28 00:10:24 +02:00
|
|
|
|
targetfaction = JSON.Value<string>("TargetFaction") ?? "";
|
2021-08-26 11:29:11 +02:00
|
|
|
|
name = JSON.Value<string>("Name") ?? "";
|
|
|
|
|
localisedname = JSON.Value<string>("LocalisedName") ?? "";
|
|
|
|
|
localisedtargettype = JSON.Value<string>("TargetType_Localised") ?? "";
|
|
|
|
|
killcount = JSON.Value<int?>("KillCount") ?? 0;
|
|
|
|
|
missionid = JSON.Value<int?>("MissionID") ?? 0;
|
|
|
|
|
reward = JSON.Value<int?>("Reward") ?? 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|