also change other mission ids

This commit is contained in:
Florian Stinglmayr 2022-02-14 17:46:53 +01:00
parent e8df57b55a
commit bc0d4265d9
2 changed files with 4 additions and 5 deletions

View File

@ -1,10 +1,9 @@
 
namespace EDJournal { namespace EDJournal {
public class MissionAbandonedEntry : Entry { public class MissionAbandonedEntry : Entry {
private int missionid = 0; public ulong MissionID { get; set; }
public int MissionID => missionid;
protected override void Initialise() { protected override void Initialise() {
missionid = JSON.Value<int?>("MissionID") ?? 0; MissionID = JSON.Value<ulong?>("MissionID") ?? 0;
} }
} }
} }

View File

@ -1,7 +1,7 @@
namespace EDJournal { namespace EDJournal {
public class MissionFailedEntry : Entry { public class MissionFailedEntry : Entry {
public string Name { get; set; } public string Name { get; set; }
public int MissionID { get; set; } public ulong MissionID { get; set; }
public int Fine { get; set; } public int Fine { get; set; }
public string HumanReadableName { public string HumanReadableName {
@ -12,7 +12,7 @@
protected override void Initialise() { protected override void Initialise() {
Name = JSON.Value<string>("Name") ?? ""; Name = JSON.Value<string>("Name") ?? "";
MissionID = JSON.Value<int?>("MissionID") ?? 0; MissionID = JSON.Value<ulong?>("MissionID") ?? 0;
Fine = JSON.Value<int?>("Fine") ?? 0; Fine = JSON.Value<int?>("Fine") ?? 0;
} }
} }