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 ApproachBody : JournalBase
|
||||
{
|
||||
public override string Event => "ApproachBody";
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
public string Body { get; init; }
|
||||
|
@ -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>
|
||||
|
@ -1,4 +1,6 @@
|
||||
namespace Observatory.Framework.Files.Journal.Travel;
|
||||
|
||||
public class DockingCancelled : DockingRequested
|
||||
{ }
|
||||
{
|
||||
public override string Event => "DockingCancelled";
|
||||
}
|
@ -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; }
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
|
||||
public class DockingGranted : DockingCancelled
|
||||
{
|
||||
public override string Event => "DockingGranted";
|
||||
public int LandingPad { get; init; }
|
||||
}
|
@ -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>
|
||||
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class DockingTimeout : DockingRequested
|
||||
{
|
||||
public override string Event => "DockingTimeout";
|
||||
}
|
@ -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))]
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
@ -1,4 +1,6 @@
|
||||
namespace Observatory.Framework.Files.Journal.Travel;
|
||||
|
||||
public class Liftoff : Touchdown
|
||||
{ }
|
||||
{
|
||||
public override string Event => "Liftoff";
|
||||
}
|
@ -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; }
|
||||
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class NavRoute : JournalBase
|
||||
{
|
||||
public override string Event => "NavRoute";
|
||||
}
|
@ -2,4 +2,5 @@
|
||||
|
||||
public class NavRouteClear : JournalBase
|
||||
{
|
||||
public override string Event => "NavRouteClear";
|
||||
}
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
public class Undocked : JournalBase
|
||||
{
|
||||
public override string Event => "Undocked";
|
||||
/// <summary>
|
||||
/// Name of the station at which this event occurred.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user