mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-01 08:23:42 -04:00
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
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
public class AfmuRepairs : JournalBase
|
||||
{
|
||||
public override string Event => "AfmuRepairs";
|
||||
public string Module { get; init; }
|
||||
public string Module_Localised { get; init; }
|
||||
public bool FullyRepaired { get; init; }
|
||||
|
@ -7,6 +7,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class ApproachSettlement : JournalBase
|
||||
{
|
||||
public override string Event => "ApproachSettlement";
|
||||
public ulong SystemAddress { get; init; }
|
||||
public string Name { get; init; }
|
||||
public string Name_Localised { get; init; }
|
||||
|
@ -5,5 +5,6 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class CargoTransfer : JournalBase
|
||||
{
|
||||
public override string Event => "CargoTransfer";
|
||||
public ImmutableList<CargoTransferDetail> Transfers { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class ChangeCrewRole : JournalBase
|
||||
{
|
||||
public override string Event => "ChangeCrewRole";
|
||||
public string Role { get; init; }
|
||||
public bool Telepresence { get; init; }
|
||||
}
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class CockpitBreached : JournalBase
|
||||
{
|
||||
public override string Event => "CockpitBreached";
|
||||
}
|
@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class CommitCrime : JournalBase
|
||||
{
|
||||
public override string Event => "CommitCrime";
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public CrimeType CrimeType { get; init; }
|
||||
public string Faction { get; init; }
|
||||
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class Continued : JournalBase
|
||||
{
|
||||
public override string Event => "Continued";
|
||||
public int Part { get; init; }
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class CrewLaunchFighter : CrewMemberJoins
|
||||
{
|
||||
public override string Event => "CrewLaunchFighter";
|
||||
public ulong ID { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class CrewMemberJoins : JournalBase
|
||||
{
|
||||
public override string Event => "CrewMemberJoins";
|
||||
public string Crew { get; init; }
|
||||
public bool Telepresence { get; init; }
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class CrewMemberQuits : CrewMemberJoins
|
||||
{ }
|
||||
{
|
||||
public override string Event => "CrewMemberQuits";
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class CrewMemberRoleChange : CrewMemberJoins
|
||||
{
|
||||
public override string Event => "CrewMemberRoleChange";
|
||||
public string Role { get; init; }
|
||||
}
|
@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class CrimeVictim : JournalBase
|
||||
{
|
||||
public override string Event => "CrimeVictim";
|
||||
public string Offender { get; init; }
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public CrimeType CrimeType { get; init; }
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class DataScanned : JournalBase
|
||||
{
|
||||
public override string Event => "DataScanned";
|
||||
public string Type { get; init; }
|
||||
public string Type_Localised { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class DatalinkScan : JournalBase
|
||||
{
|
||||
public override string Event => "DatalinkScan";
|
||||
public string Message { get; init; }
|
||||
public string Message_Localised { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class DatalinkVoucher : JournalBase
|
||||
{
|
||||
public override string Event => "DatalinkVoucher";
|
||||
public int Reward { get; init; }
|
||||
public string VictimFaction { get; init; }
|
||||
public string PayeeFaction { get; init; }
|
||||
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class DockFighter : JournalBase
|
||||
{
|
||||
public override string Event => "DockFighter";
|
||||
public ulong ID { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class DockSRV : DockFighter
|
||||
{
|
||||
public override string Event => "DockSRV";
|
||||
public string SRVType { get; init; }
|
||||
public string SRVType_Localised { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class EndCrewSession : JournalBase
|
||||
{
|
||||
public override string Event => "EndCrewSession";
|
||||
public bool OnCrime { get; init; }
|
||||
public bool Telepresence { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class FighterRebuilt : JournalBase
|
||||
{
|
||||
public override string Event => "FighterRebuilt";
|
||||
public string Loadout { get; init; }
|
||||
public ulong ID { get; init; }
|
||||
}
|
@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class Friends : JournalBase
|
||||
{
|
||||
public override string Event => "Friends";
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public FriendStatus Status { get; init; }
|
||||
public string Name { get; init; }
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class FuelScoop : JournalBase
|
||||
{
|
||||
public override string Event => "FuelScoop";
|
||||
public float Scooped { get; init; }
|
||||
public float Total { get; init; }
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class JetConeBoost : JournalBase
|
||||
{
|
||||
public override string Event => "JetConeBoost";
|
||||
public float BoostValue { get; init; }
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class JetConeDamage : JournalBase
|
||||
{
|
||||
public override string Event => "JetConeDamage";
|
||||
public string Module { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class JoinACrew : JournalBase
|
||||
{
|
||||
public override string Event => "JoinACrew";
|
||||
public string Captain { get; init; }
|
||||
public bool Telepresence { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class KickCrewMember : JournalBase
|
||||
{
|
||||
public override string Event => "KickCrewMember";
|
||||
public string Crew { get; init; }
|
||||
public bool OnCrime { get; init; }
|
||||
public bool Telepresence { get; init; }
|
||||
|
@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class LaunchDrone : JournalBase
|
||||
{
|
||||
public override string Event => "LaunchDrone";
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public LimpetDrone Type { get; init; }
|
||||
}
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class LaunchFighter : LaunchSRV
|
||||
{
|
||||
public override string Event => "LaunchFighter";
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class LaunchSRV : JournalBase
|
||||
{
|
||||
public override string Event => "LaunchSRV";
|
||||
public string Loadout { get; init; }
|
||||
public ulong ID { get; init; }
|
||||
public bool PlayerControlled { get; init; }
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
public class ModuleInfo : JournalBase
|
||||
{
|
||||
|
||||
public override string Event => "ModuleInfo";
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class Music : JournalBase
|
||||
{
|
||||
public override string Event => "Music";
|
||||
public string MusicTrack { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class NpcCrewPaidWage : JournalBase
|
||||
{
|
||||
public override string Event => "NpcCrewPaidWage";
|
||||
public ulong NpcCrewId { get; init; }
|
||||
public string NpcCrewName { get; init; }
|
||||
public int Amount { get; init; }
|
||||
|
@ -4,6 +4,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class NpcCrewRank : JournalBase
|
||||
{
|
||||
public override string Event => "NpcCrewRank";
|
||||
public ulong NpcCrewId { get; init; }
|
||||
public string NpcCrewName { get; init; }
|
||||
public RankCombat RankCombat { get; init; }
|
||||
|
@ -3,4 +3,6 @@
|
||||
namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class Promotion : Rank
|
||||
{ }
|
||||
{
|
||||
public override string Event => "Promotion";
|
||||
}
|
@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class ProspectedAsteroid : JournalBase
|
||||
{
|
||||
public override string Event => "ProspectedAsteroid";
|
||||
public ImmutableList<ProspectMaterial> Materials { get; init; }
|
||||
public string Content { get; init; }
|
||||
public string Content_Localised { get; init; }
|
||||
|
@ -1,4 +1,6 @@
|
||||
namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class QuitACrew : JoinACrew
|
||||
{ }
|
||||
{
|
||||
public override string Event => "QuitACrew";
|
||||
}
|
@ -4,5 +4,6 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class RebootRepair : JournalBase
|
||||
{
|
||||
public override string Event => "RebootRepair";
|
||||
public ImmutableList<string> Modules { get; init; }
|
||||
}
|
@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class ReceiveText : JournalBase
|
||||
{
|
||||
public override string Event => "ReceiveText";
|
||||
public string From { get; init; }
|
||||
public string From_Localised { get; init; }
|
||||
public string Message { get; init; }
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class RepairDrone : JournalBase
|
||||
{
|
||||
public override string Event => "RepairDrone";
|
||||
public float HullRepaired { get; init; }
|
||||
public float CockpitRepaired { get; init; }
|
||||
public float CorrosionRepaired { get; init; }
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class ReservoirReplenished : JournalBase
|
||||
{
|
||||
public override string Event => "ReservoirReplenished";
|
||||
public float FuelMain { get; init; }
|
||||
public float FuelReservoir { get; init; }
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class Resurrect : JournalBase
|
||||
{
|
||||
public override string Event => "Resurrect";
|
||||
public string Option { get; init; }
|
||||
public int Cost { get; init; }
|
||||
public bool Bankrupt { get; init; }
|
||||
|
@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class Scanned : JournalBase
|
||||
{
|
||||
public override string Event => "Scanned";
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public ScanType ScanType { get; init; }
|
||||
}
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class SelfDestruct : JournalBase
|
||||
{
|
||||
public override string Event => "SelfDestruct";
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class SendText : JournalBase
|
||||
{
|
||||
public override string Event => "SendText";
|
||||
public string To { get; init; }
|
||||
public string To_Localised { get; init; }
|
||||
public string Message { get; init; }
|
||||
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class Shutdown : JournalBase
|
||||
{
|
||||
public override string Event => "Shutdown";
|
||||
}
|
@ -7,6 +7,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class Synthesis : JournalBase
|
||||
{
|
||||
public override string Event => "Synthesis";
|
||||
public string Name { get; init; }
|
||||
|
||||
[JsonConverter(typeof(MaterialConverter))]
|
||||
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class SystemsShutdown : JournalBase
|
||||
{
|
||||
public override string Event => "SystemsShutdown";
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class USSDrop : JournalBase
|
||||
{
|
||||
public override string Event => "USSDrop";
|
||||
public string USSType { get; init; }
|
||||
public string USSType_Localised { get; init; }
|
||||
public int USSThreat { get; init; }
|
||||
|
@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class VehicleSwitch : JournalBase
|
||||
{
|
||||
public override string Event => "VehicleSwitch";
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public VehicleSwitchTo To { get; init; }
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class WingAdd : JournalBase
|
||||
{
|
||||
public override string Event => "WingAdd";
|
||||
public string Name { get; init; }
|
||||
}
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class WingInvite : WingAdd
|
||||
{
|
||||
public override string Event => "WingInvite";
|
||||
}
|
@ -4,5 +4,6 @@ namespace Observatory.Framework.Files.Journal.Other;
|
||||
|
||||
public class WingJoin : JournalBase
|
||||
{
|
||||
public override string Event => "WingJoin";
|
||||
public ImmutableList<string> Others { get; init; }
|
||||
}
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class WingLeave : JournalBase
|
||||
{
|
||||
public override string Event => "WingLeave";
|
||||
}
|
Reference in New Issue
Block a user