mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-01 08:23:42 -04:00
Add Startup Events to Database
Now emit startup events on conneciton Some events still to add
This commit is contained in:
@ -81,7 +81,7 @@ public class Docked : JournalBase
|
||||
private get => StationEconomy_Localised;
|
||||
init => StationEconomy_Localised = value;
|
||||
}
|
||||
public ImmutableList<StationEconomy> StationEconomies { get; init; }
|
||||
public IReadOnlyCollection<StationEconomy> StationEconomies { get; init; }
|
||||
|
||||
[Obsolete("StationState is a rundundant property. Use StationEconomy to potentially reduce unnecessary checks.")]
|
||||
public string StationState { get; init; }
|
||||
|
@ -11,7 +11,7 @@ public class FSDJump : JournalBase
|
||||
public string StarSystem { get; init; }
|
||||
public ulong SystemAddress { get; init; }
|
||||
[JsonConverter(typeof(StarPosConverter))]
|
||||
public (double x, double y, double z) StarPos { get; init; }
|
||||
public StarPos StarPos { get; init; }
|
||||
public string Body { get; init; }
|
||||
public int BodyID { get; init; }
|
||||
public string BodyType { get; init; }
|
||||
@ -33,9 +33,9 @@ public class FSDJump : JournalBase
|
||||
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 IReadOnlyCollection<SystemFaction> Factions { get; init; }
|
||||
public IReadOnlyCollection<Conflict> Conflicts { get; init; }
|
||||
public ICollection<string> Powers { get; init; }
|
||||
public string PowerplayState { get; init; }
|
||||
public bool Taxi { get; init; }
|
||||
public bool Multicrew { get; init; }
|
||||
|
@ -8,14 +8,17 @@ 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; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Name of the station at which this event occurred.
|
||||
/// </summary>
|
||||
public string StationName { get; init; }
|
||||
|
||||
public string StationType { get; init; }
|
||||
public float Longitude { get; init; }
|
||||
public float Latitude { get; init; }
|
||||
@ -23,18 +26,20 @@ public class Location : JournalBase
|
||||
|
||||
[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 ICollection<string> StationServices { get; init; }
|
||||
public string StationEconomy { get; init; }
|
||||
public string StationEconomy_Localised { get; init; }
|
||||
public ImmutableList<StationEconomy> StationEconomies { get; init; }
|
||||
public IReadOnlyCollection<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 StarPos StarPos { get; init; }
|
||||
|
||||
public string SystemAllegiance { get; init; }
|
||||
public string SystemEconomy { get; init; }
|
||||
public string SystemEconomy_Localised { get; init; }
|
||||
@ -48,16 +53,24 @@ public class Location : JournalBase
|
||||
public string Body { get; init; }
|
||||
public int BodyID { get; init; }
|
||||
public string BodyType { get; init; }
|
||||
public ImmutableList<DetailedFaction> Factions { get; init; }
|
||||
public IReadOnlyCollection<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 IReadOnlyCollection<Conflict> Conflicts { get; init; }
|
||||
public ICollection<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; }
|
||||
public ThargoidWar ThargoidWar { get; init; }
|
||||
}
|
||||
|
||||
public class StarPos
|
||||
{
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
public double Z { get; set; }
|
||||
}
|
Reference in New Issue
Block a user