2
0
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:
2024-05-24 17:57:10 +10:00
parent ae848e036d
commit efd0b3e0c0
297 changed files with 827 additions and 209 deletions

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class Cargo : JournalBase
{
public override string Event => "Cargo";
public string Vessel { get; init; }
public int Count { get; init; }
public ImmutableList<CargoType> Inventory { get; init; }

View File

@ -1,4 +1,6 @@
namespace Observatory.Framework.Files.Journal.Startup;
public class ClearSavedGame : Commander
{ }
{
public override string Event => "ClearSavedGame";
}

View File

@ -2,6 +2,7 @@
public class Commander : JournalBase
{
public override string Event => "Commander";
public string Name { get; init; }
public string FID { get; init; }

View File

@ -4,6 +4,7 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class FileHeader : JournalBase
{
public override string Event => "FileHeader";
[JsonPropertyName("part")]
public int Part { get; init; }

View File

@ -4,6 +4,7 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class LoadGame : JournalBase
{
public override string Event => "LoadGame";
public string Commander { get; init; }
public string FID { get; init; }
public bool Horizons { get; init; }

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class Loadout : JournalBase
{
public override string Event => "Loadout";
public string Ship { get; init; }
public ulong ShipID { get; init; }
public string ShipName { get; init; }

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class Materials : JournalBase
{
public override string Event => "Materials";
public ImmutableList<Material> Raw { get; init; }
public ImmutableList<Material> Manufactured { get; init; }
public ImmutableList<Material> Encoded { get; init; }

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class Missions : JournalBase
{
public override string Event => "Missions";
public ImmutableList<Mission> Active { get; init; }
public ImmutableList<Mission> Failed { get; init; }
public ImmutableList<Mission> Complete { get; init; }

View File

@ -2,5 +2,6 @@
public class NewCommander : Commander
{
public override string Event => "NewCommander";
public string Package { get; init; }
}

View File

@ -4,6 +4,8 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class Passengers : JournalBase
{
public override string Event => "Passengers";
[JsonPropertyName("Passengers_Missions_Accepted")]
public int PassengersMissionsAccepted { get; init; }

View File

@ -2,6 +2,8 @@
public class Powerplay : JournalBase
{
public override string Event => "Powerplay";
public string Power { get; init; }
public int Rank { get; init; }

View File

@ -1,4 +1,6 @@
namespace Observatory.Framework.Files.Journal.Startup;
public class Progress : Rank
{ }
{
public override string Event => "Progress";
}

View File

@ -4,6 +4,7 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class Rank : JournalBase
{
public override string Event => "Rank";
public RankCombat Combat { get; init; }
public RankTrade Trade { get; init; }
public RankExploration Explore { get; init; }

View File

@ -2,6 +2,7 @@
public class Reputation : JournalBase
{
public override string Event => "Reputation";
public float Empire { get; init; }
public float Federation { get; init; }

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Startup;
public class Statistics : JournalBase
{
public override string Event => "Statistics";
[JsonPropertyName("Bank_Account")]
public BankAccount BankAccount { get; init; }
public ParameterTypes.Combat Combat { get; init; }