2022-11-01 18:01:28 +01:00
|
|
|
|
namespace EDPlayerJournal.Entries;
|
|
|
|
|
|
|
|
|
|
public class FactionKillBondEntry : Entry {
|
2022-11-25 12:34:11 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reward given
|
|
|
|
|
/// </summary>
|
2022-11-25 13:45:02 +01:00
|
|
|
|
public ulong Reward { get; set; } = 0;
|
2022-11-25 12:34:11 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Faction that awarded the kill bond
|
|
|
|
|
/// </summary>
|
2022-11-01 18:01:28 +01:00
|
|
|
|
public string? AwardingFaction { get; set; }
|
2022-11-25 12:34:11 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Localised string of the awarding faction if available
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? AwardingFactionLocalised { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Victim faction, internal name
|
|
|
|
|
/// </summary>
|
2022-11-01 18:01:28 +01:00
|
|
|
|
public string? VictimFaction { get; set; }
|
2022-11-25 12:34:11 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Localised name of the victim faction
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? VictimFactionLocalised { get; set; }
|
2022-11-01 18:01:28 +01:00
|
|
|
|
|
|
|
|
|
protected override void Initialise() {
|
2022-11-25 13:45:02 +01:00
|
|
|
|
Reward = JSON.Value<ulong?>("Reward") ?? 0;
|
2022-11-01 18:01:28 +01:00
|
|
|
|
AwardingFaction = JSON.Value<string>("AwardingFaction");
|
2022-11-25 12:34:11 +01:00
|
|
|
|
AwardingFactionLocalised = JSON.Value<string>("AwardingFaction_Localised");
|
2022-11-01 18:01:28 +01:00
|
|
|
|
VictimFaction = JSON.Value<string>("VictimFaction");
|
2022-11-25 12:34:11 +01:00
|
|
|
|
VictimFactionLocalised = JSON.Value<string>("VictimFaction_Localised");
|
2022-11-01 18:01:28 +01:00
|
|
|
|
}
|
|
|
|
|
}
|