2
0
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:
Xjph
2021-10-21 19:31:32 -02:30
committed by GitHub
parent 456c80198a
commit 4c1031b8f9
371 changed files with 7565 additions and 5 deletions

View File

@ -0,0 +1,11 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierBankTransfer : JournalBase
{
public long CarrierID { get; init; }
public long Deposit { get; init; }
public long Withdraw { get; init; }
public long PlayerBalance { get; init; }
public long CarrierBalance { get; init; }
}
}

View File

@ -0,0 +1,13 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierBuy : JournalBase
{
public long BoughtAtMarket { get; init; }
public ulong SystemAddress { get; init; }
public long CarrierID { get; init; }
public string Location { get; init; }
public long Price { get; init; }
public string Variant { get; init; }
public string Callsign { get; init; }
}
}

View File

@ -0,0 +1,7 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierCancelDecommission : JournalBase
{
public long CarrierID { get; init; }
}
}

View File

@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
{
public class CarrierCrewServices : JournalBase
{
public long CarrierID { get; init; }
public string CrewRole { get; init; }
public string CrewName { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierCrewOperation Operation { get; init; }
}
}

View File

@ -0,0 +1,16 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierDecommission : JournalBase
{
public long CarrierID { get; init; }
public long ScrapRefund { get; init; }
public long ScrapTime { get; init; }
public System.DateTime ScrapTimeUTC
{
get
{
return System.DateTimeOffset.FromUnixTimeSeconds(ScrapTime).UtcDateTime;
}
}
}
}

View File

@ -0,0 +1,9 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierDepositFuel : JournalBase
{
public long CarrierID { get; init; }
public int Amount { get; init; }
public int Total { get; init; }
}
}

View File

@ -0,0 +1,13 @@
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
{
public class CarrierDockingPermission : JournalBase
{
public long CarrierID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierDockingAccess DockingAccess { get; init; }
public bool AllowNotorious { get; init; }
}
}

View File

@ -0,0 +1,12 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierFinance : JournalBase
{
public long CarrierID { get; init; }
public int TaxRate { get; init; }
public long CarrierBalance { get; init; }
public long ReserveBalance { get; init; }
public long AvailableBalance { get; init; }
public int ReservePercent { get; init; }
}
}

View File

@ -0,0 +1,23 @@
using System.Text.Json.Serialization;
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
{
public class CarrierJump : FSDJump
{
public bool Docked { get; init; }
public string StationName { get; init; }
public string StationType { get; init; }
public long MarketID { get; init; }
public Faction StationFaction { get; init; }
public string StationGovernment { get; init; }
public string StationGovernment_Localised { get; init; }
[JsonConverter(typeof(StationServiceConverter))]
public StationService StationServices { get; init; }
public string StationEconomy { get; init; }
public string StationEconomy_Localised { get; init; }
public ImmutableList<StationEconomy> StationEconomies { get; init; }
}
}

View File

@ -0,0 +1,7 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierJumpCancelled : JournalBase
{
public long CarrierID { get; init; }
}
}

View File

@ -0,0 +1,12 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierJumpRequest : JournalBase
{
public string Body { get; init; }
public int BodyID { get; init; }
public ulong SystemAddress { get; init; }
public long CarrierID { get; init; }
public string SystemName { get; init; }
public ulong SystemID { get; init; }
}
}

View File

@ -0,0 +1,6 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierModulePack : CarrierShipPack
{
}
}

View File

@ -0,0 +1,16 @@
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
{
public class CarrierShipPack : JournalBase
{
public long CarrierID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierOperation Operation { get; init; }
public string PackTheme { get; init; }
public int PackTier { get; init; }
public int Cost { get; init; }
public int Refund { get; init; }
}
}

View File

@ -0,0 +1,25 @@
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
{
public class CarrierStats : JournalBase
{
public long CarrierID { get; init; }
public string Callsign { get; init; }
public string Name { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierDockingAccess DockingAccess { get; init; }
public bool AllowNotorious { get; init; }
public int FuelLevel { get; init; }
public float JumpRangeCurr { get; init; }
public float JumpRangeMax { get; init; }
public bool PendingDecommission { get; init; }
public CarrierSpaceUsage SpaceUsage { get; init; }
public ParameterTypes.CarrierFinance Finance { get; init; }
public ImmutableList<CarrierCrew> Crew { get; init; }
public ImmutableList<CarrierPack> ShipPacks { get; init; }
public ImmutableList<CarrierPack> ModulePacks { get; init; }
}
}

View File

@ -0,0 +1,14 @@
namespace Observatory.Framework.Files.Journal
{
public class CarrierTradeOrder : JournalBase
{
public long CarrierID { get; init; }
public bool BlackMarket { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public int PurchaseOrder { get; init; }
public int SaleOrder { get; init; }
public bool CancelTrade { get; init; }
public int Price { get; init; }
}
}