mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-01 08:23:42 -04:00
Reorganize all observatory core projects into monorepo (#25)
* chore: move all observatory repos to core * only save journal folder on change, don't constantly re-check during monitoring * chore: monorepo project changes * chore: monorepo migration
This commit is contained in:
10
ObservatoryFramework/Files/Journal/Travel/ApproachBody.cs
Normal file
10
ObservatoryFramework/Files/Journal/Travel/ApproachBody.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class ApproachBody : JournalBase
|
||||
{
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
public string Body { get; init; }
|
||||
public int BodyID { get; init; }
|
||||
}
|
||||
}
|
101
ObservatoryFramework/Files/Journal/Travel/Docked.cs
Normal file
101
ObservatoryFramework/Files/Journal/Travel/Docked.cs
Normal file
@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
using Observatory.Framework.Files.ParameterTypes;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class Docked : JournalBase
|
||||
{
|
||||
|
||||
public string StationName { get; init; }
|
||||
public string StationType { get; init; }
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
public long MarketID { get; init; }
|
||||
|
||||
[JsonConverter(typeof(Converters.LegacyFactionConverter<Faction>))]
|
||||
public Faction StationFaction { get; init; }
|
||||
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage), JsonConverter(typeof(Converters.LegacyFactionConverter<Faction>))]
|
||||
public Faction Faction
|
||||
{
|
||||
private get
|
||||
{
|
||||
return StationFaction;
|
||||
}
|
||||
init
|
||||
{
|
||||
StationFaction = value;
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage)]
|
||||
public string FactionState
|
||||
{
|
||||
private get
|
||||
{
|
||||
return StationFaction.FactionState;
|
||||
}
|
||||
|
||||
init
|
||||
{
|
||||
//Stale Data, discard
|
||||
}
|
||||
}
|
||||
|
||||
public string StationGovernment { get; init; }
|
||||
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage)]
|
||||
public string Government
|
||||
{
|
||||
private get { return StationGovernment; }
|
||||
init { StationGovernment = value; }
|
||||
}
|
||||
public string StationGovernment_Localised { get; init; }
|
||||
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage)]
|
||||
public string Government_Localised
|
||||
{
|
||||
private get { return StationGovernment_Localised; }
|
||||
init { StationGovernment_Localised = value; }
|
||||
}
|
||||
public string StationAllegiance { get; init; }
|
||||
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage)]
|
||||
public string Allegiance
|
||||
{
|
||||
private get { return StationAllegiance; }
|
||||
init { StationAllegiance = value; }
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(Converters.StationServiceConverter))]
|
||||
public StationService StationServices { get; init; }
|
||||
public string StationEconomy { get; init; }
|
||||
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage)]
|
||||
public string Economy
|
||||
{
|
||||
private get { return StationEconomy; }
|
||||
init { StationEconomy = value; }
|
||||
}
|
||||
public string StationEconomy_Localised { get; init; }
|
||||
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage)]
|
||||
public string Economy_Localised
|
||||
{
|
||||
private get { return StationEconomy_Localised; }
|
||||
init { StationEconomy_Localised = value; }
|
||||
}
|
||||
public ImmutableList<StationEconomy> StationEconomies { get; init; }
|
||||
|
||||
[Obsolete("StationState is a rundundant property. Use StationEconomy to potentially reduce unnecessary checks.")]
|
||||
public string StationState { get; init; }
|
||||
public float DistFromStarLS { get; init; }
|
||||
public bool Wanted { get; init; }
|
||||
public bool ActiveFine { get; init; }
|
||||
public bool CockpitBreach { get; init; }
|
||||
public bool Taxi { get; init; }
|
||||
public bool Multicrew { get; init; }
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class DockingCancelled : DockingRequested
|
||||
{ }
|
||||
}
|
11
ObservatoryFramework/Files/Journal/Travel/DockingDenied.cs
Normal file
11
ObservatoryFramework/Files/Journal/Travel/DockingDenied.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Observatory.Framework.Files.ParameterTypes;
|
||||
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class DockingDenied : DockingCancelled
|
||||
{
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public Reason Reason { get; init; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class DockingGranted : DockingCancelled
|
||||
{
|
||||
public int LandingPad { get; init; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using Observatory.Framework.Files.ParameterTypes;
|
||||
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class DockingRequested : JournalBase
|
||||
{
|
||||
public string StationName { get; init; }
|
||||
public string StationType { get; init; }
|
||||
public long MarketID { get; init; }
|
||||
public LandingPads LandingPads { get; init; }
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class DockingTimeout : DockingRequested
|
||||
{
|
||||
}
|
||||
}
|
53
ObservatoryFramework/Files/Journal/Travel/FSDJump.cs
Normal file
53
ObservatoryFramework/Files/Journal/Travel/FSDJump.cs
Normal file
@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
using Observatory.Framework.Files.ParameterTypes;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class FSDJump : JournalBase
|
||||
{
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
[JsonConverter(typeof(Converters.StarPosConverter))]
|
||||
public (double x, double y, double z) StarPos { get; init; }
|
||||
public string Body { get; init; }
|
||||
public int BodyID { get; init; }
|
||||
public string BodyType { get; init; }
|
||||
public double JumpDist { get; init; }
|
||||
public double FuelUsed { get; init; }
|
||||
public double FuelLevel { get; init; }
|
||||
public int BoostUsed { get; init; }
|
||||
[JsonConverter(typeof(Converters.LegacyFactionConverter<SystemFaction>))]
|
||||
public SystemFaction SystemFaction { get; init; }
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage)]
|
||||
public string FactionState
|
||||
{
|
||||
get
|
||||
{
|
||||
return SystemFaction.FactionState;
|
||||
}
|
||||
init
|
||||
{
|
||||
//Stale Data, discard
|
||||
}
|
||||
}
|
||||
public string SystemAllegiance { get; init; }
|
||||
public string SystemEconomy { get; init; }
|
||||
public string SystemEconomy_Localised { get; init; }
|
||||
public string SystemSecondEconomy { get; init; }
|
||||
public string SystemSecondEconomy_Localised { get; init; }
|
||||
public string SystemGovernment { get; init; }
|
||||
public string SystemGovernment_Localised { get; init; }
|
||||
public string SystemSecurity { get; init; }
|
||||
public string SystemSecurity_Localised { get; init; }
|
||||
public long Population { get; init; }
|
||||
public bool Wanted { get; init; }
|
||||
public ImmutableList<SystemFaction> Factions { get; init; }
|
||||
public ImmutableList<Conflict> Conflicts { get; init; }
|
||||
public ImmutableList<string> Powers { get; init; }
|
||||
public string PowerplayState { get; init; }
|
||||
public bool Taxi { get; init; }
|
||||
public bool Multicrew { get; init; }
|
||||
}
|
||||
}
|
10
ObservatoryFramework/Files/Journal/Travel/FSDTarget.cs
Normal file
10
ObservatoryFramework/Files/Journal/Travel/FSDTarget.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class FSDTarget : JournalBase
|
||||
{
|
||||
public string Name { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
public string StarClass { get; init; }
|
||||
public int RemainingJumpsInRoute { get; init; }
|
||||
}
|
||||
}
|
10
ObservatoryFramework/Files/Journal/Travel/LeaveBody.cs
Normal file
10
ObservatoryFramework/Files/Journal/Travel/LeaveBody.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class LeaveBody : JournalBase
|
||||
{
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
public string Body { get; init; }
|
||||
public int BodyID { get; init; }
|
||||
}
|
||||
}
|
5
ObservatoryFramework/Files/Journal/Travel/Liftoff.cs
Normal file
5
ObservatoryFramework/Files/Journal/Travel/Liftoff.cs
Normal file
@ -0,0 +1,5 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class Liftoff : Touchdown
|
||||
{ }
|
||||
}
|
72
ObservatoryFramework/Files/Journal/Travel/Location.cs
Normal file
72
ObservatoryFramework/Files/Journal/Travel/Location.cs
Normal file
@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
using Observatory.Framework.Files.ParameterTypes;
|
||||
using Observatory.Framework.Files.Converters;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class Location : JournalBase
|
||||
{
|
||||
[JsonConverter(typeof(IntBoolFlexConverter))]
|
||||
public bool Docked { get; init; }
|
||||
public double DistFromStarLS { get; init; }
|
||||
|
||||
[Obsolete(JournalUtilities.ObsoleteMessage)]
|
||||
public string FactionState
|
||||
{
|
||||
get
|
||||
{
|
||||
return SystemFaction.FactionState;
|
||||
}
|
||||
init
|
||||
{
|
||||
//Stale Data, discard
|
||||
}
|
||||
}
|
||||
public string StationName { get; init; }
|
||||
public string StationType { get; init; }
|
||||
public float Longitude { get; init; }
|
||||
public float Latitude { get; init; }
|
||||
public long MarketID { get; init; }
|
||||
|
||||
[JsonConverter(typeof(LegacyFactionConverter<Faction>))]
|
||||
public Faction StationFaction { get; init; }
|
||||
public string StationGovernment { get; init; }
|
||||
public string StationGovernment_Localised { get; init; }
|
||||
public string StationAllegiance { get; init; }
|
||||
public ImmutableList<string> StationServices { get; init; }
|
||||
public string StationEconomy { get; init; }
|
||||
public string StationEconomy_Localised { get; init; }
|
||||
public ImmutableList<StationEconomy> StationEconomies { get; init; }
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
|
||||
[JsonConverter(typeof(StarPosConverter))]
|
||||
public (double x, double y, double z) StarPos { get; init; }
|
||||
public string SystemAllegiance { get; init; }
|
||||
public string SystemEconomy { get; init; }
|
||||
public string SystemEconomy_Localised { get; init; }
|
||||
public string SystemSecondEconomy { get; init; }
|
||||
public string SystemSecondEconomy_Localised { get; init; }
|
||||
public string SystemGovernment { get; init; }
|
||||
public string SystemGovernment_Localised { get; init; }
|
||||
public string SystemSecurity { get; init; }
|
||||
public string SystemSecurity_Localised { get; init; }
|
||||
public long Population { get; init; }
|
||||
public string Body { get; init; }
|
||||
public int BodyID { get; init; }
|
||||
public string BodyType { get; init; }
|
||||
public ImmutableList<DetailedFaction> Factions { get; init; }
|
||||
|
||||
[JsonConverter(typeof(LegacyFactionConverter<DetailedFaction>))]
|
||||
public DetailedFaction SystemFaction { get; init; }
|
||||
public ImmutableList<Conflict> Conflicts { get; init; }
|
||||
public ImmutableList<string> Powers { get; init; }
|
||||
public string PowerplayState { get; init; }
|
||||
public bool Taxi { get; init; }
|
||||
public bool Multicrew { get; init; }
|
||||
public bool OnFoot { get; init; }
|
||||
public bool InSRV { get; init; }
|
||||
}
|
||||
}
|
6
ObservatoryFramework/Files/Journal/Travel/NavRoute.cs
Normal file
6
ObservatoryFramework/Files/Journal/Travel/NavRoute.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class NavRoute : JournalBase
|
||||
{
|
||||
}
|
||||
}
|
10
ObservatoryFramework/Files/Journal/Travel/StartJump.cs
Normal file
10
ObservatoryFramework/Files/Journal/Travel/StartJump.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class StartJump : JournalBase
|
||||
{
|
||||
public string JumpType { get; init; }
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
public string StarClass { get; init; }
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class SupercruiseEntry : JournalBase
|
||||
{
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
public bool Taxi { get; init; }
|
||||
public bool Multicrew { get; init; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class SupercruiseExit : SupercruiseEntry
|
||||
{
|
||||
public string Body { get; init; }
|
||||
public int BodyID { get; init; }
|
||||
public string BodyType { get; init; }
|
||||
}
|
||||
}
|
19
ObservatoryFramework/Files/Journal/Travel/Touchdown.cs
Normal file
19
ObservatoryFramework/Files/Journal/Travel/Touchdown.cs
Normal file
@ -0,0 +1,19 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class Touchdown : JournalBase
|
||||
{
|
||||
public double Latitude { get; init; }
|
||||
public double Longitude { get; init; }
|
||||
public string NearestDestination { get; init; }
|
||||
public string NearestDestination_Localised { get; init; }
|
||||
public bool PlayerControlled { get; init; }
|
||||
public bool Taxi { get; init; }
|
||||
public bool Multicrew { get; init; }
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
public string Body { get; init; }
|
||||
public int BodyID { get; init; }
|
||||
public bool OnStation { get; init; }
|
||||
public bool OnPlanet { get; init; }
|
||||
}
|
||||
}
|
11
ObservatoryFramework/Files/Journal/Travel/Undocked.cs
Normal file
11
ObservatoryFramework/Files/Journal/Travel/Undocked.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace Observatory.Framework.Files.Journal
|
||||
{
|
||||
public class Undocked : JournalBase
|
||||
{
|
||||
public string StationName { get; init; }
|
||||
public string StationType { get; init; }
|
||||
public ulong MarketID { get; init; }
|
||||
public bool Taxi { get; init; }
|
||||
public bool Multicrew { get; init; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user