2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00
Ben Parsons efd0b3e0c0 Journals Now processed in own thread
Some invalid journal data is now handled
Journals now use polymorphic deserialization
Added Event names to all journal events
Remove unused controllers
2024-05-24 19:30:12 +10:00

37 lines
1.6 KiB
C#

using System.Collections.Immutable;
using System.Text.Json.Serialization;
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal.StationServices;
public class MissionCompleted : JournalBase
{
public override string Event => "MissionCompleted";
public string Name { get; init; }
public string LocalisedName { get; init; }
public string Faction { get; init; }
public ulong MissionID { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public int Count { get; init; }
public string Target { get; init; }
public string Target_Localised { get; init; }
public string TargetType { get; init; }
public string TargetType_Localised { get; init; }
public long Reward { get; init; }
[JsonConverter(typeof(StringIntConverter))]
public int Donation { get; init; }
public long Donated { get; init; }
public ImmutableList<string> PermitsAwarded { get; init; }
public ImmutableList<CommodityReward> CommodityReward { get; init; }
public ImmutableList<MaterialReward> MaterialsReward { get; init; }
public string DestinationSystem { get; init; }
public string DestinationStation { get; init; }
public string DestinationSettlement { get; init; }
public string NewDestinationSystem { get; init; }
public string NewDestinationStation { get; init; }
public int KillCount { get; init; }
public string TargetFaction { get; init; }
public ImmutableList<FactionEffect> FactionEffects { get; init; }
}