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

@ -2,6 +2,7 @@
public class ApproachBody : JournalBase
{
public override string Event => "ApproachBody";
public string StarSystem { get; init; }
public ulong SystemAddress { get; init; }
public string Body { get; init; }

View File

@ -7,6 +7,7 @@ namespace Observatory.Framework.Files.Journal.Travel;
public class Docked : JournalBase
{
public override string Event => "Docked";
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>

View File

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

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Travel;
public class DockingDenied : DockingCancelled
{
public override string Event => "DockingDenied";
[JsonConverter(typeof(JsonStringEnumConverter))]
public Reason Reason { get; init; }
}

View File

@ -2,5 +2,6 @@
public class DockingGranted : DockingCancelled
{
public override string Event => "DockingGranted";
public int LandingPad { get; init; }
}

View File

@ -4,6 +4,7 @@ namespace Observatory.Framework.Files.Journal.Travel;
public class DockingRequested : JournalBase
{
public override string Event => "DockingRequested";
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>

View File

@ -2,4 +2,5 @@
public class DockingTimeout : DockingRequested
{
public override string Event => "DockingTimeout";
}

View File

@ -7,6 +7,7 @@ namespace Observatory.Framework.Files.Journal.Travel;
public class FSDJump : JournalBase
{
public override string Event => "FSDJump";
public string StarSystem { get; init; }
public ulong SystemAddress { get; init; }
[JsonConverter(typeof(StarPosConverter))]

View File

@ -2,6 +2,7 @@
public class FSDTarget : JournalBase
{
public override string Event => "FSDTarget";
public string Name { get; init; }
public ulong SystemAddress { get; init; }
public string StarClass { get; init; }

View File

@ -2,6 +2,7 @@
public class LeaveBody : JournalBase
{
public override string Event => "LeaveBody";
public string StarSystem { get; init; }
public ulong SystemAddress { get; init; }
public string Body { get; init; }

View File

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

View File

@ -7,6 +7,7 @@ namespace Observatory.Framework.Files.Journal.Travel;
public class Location : JournalBase
{
public override string Event => "Location";
[JsonConverter(typeof(IntBoolFlexConverter))]
public bool Docked { get; init; }
public double DistFromStarLS { get; init; }

View File

@ -2,4 +2,5 @@
public class NavRoute : JournalBase
{
public override string Event => "NavRoute";
}

View File

@ -2,4 +2,5 @@
public class NavRouteClear : JournalBase
{
public override string Event => "NavRouteClear";
}

View File

@ -2,6 +2,7 @@
public class StartJump : JournalBase
{
public override string Event => "StartJump";
public string JumpType { get; init; }
public string StarSystem { get; init; }
public ulong SystemAddress { get; init; }

View File

@ -2,6 +2,7 @@
public class SupercruiseDestinationDrop : JournalBase
{
public override string Event => "SupercruiseDestinationDrop";
public string Type { get; init; }
public int Threat { get; init; }
public ulong MarketID { get; init; }

View File

@ -1,7 +1,8 @@
namespace Observatory.Framework.Files.Journal.Travel;
public class SupercruiseEntry : JournalBase
{
{
public override string Event => "SupercruiseEntry";
public string StarSystem { get; init; }
public ulong SystemAddress { get; init; }
public bool Taxi { get; init; }

View File

@ -2,6 +2,7 @@
public class SupercruiseExit : SupercruiseEntry
{
public override string Event => "SupercruiseExit";
public string Body { get; init; }
public int BodyID { get; init; }
public string BodyType { get; init; }

View File

@ -2,6 +2,7 @@
public class Touchdown : JournalBase
{
public override string Event => "Touchdown";
public double Latitude { get; init; }
public double Longitude { get; init; }
public string NearestDestination { get; init; }

View File

@ -2,6 +2,7 @@
public class Undocked : JournalBase
{
public override string Event => "Undocked";
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>