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,5 +2,5 @@
public class BackPack : JournalBase
{
public override string Event => "BackPack";
}

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class BackpackChange : JournalBase
{
public override string Event => "BackpackChange";
public ImmutableList<BackpackItemChange> Added { get; init; }
public ImmutableList<BackpackItemChange> Removed { get; init; }
}

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class BackpackMaterials : JournalBase
{
public override string Event => "BackpackMaterials";
public ImmutableList<BackpackItem> Items { get; init; }
public ImmutableList<BackpackItem> Components { get; init; }
public ImmutableList<BackpackItem> Consumables { get; init; }

View File

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

View File

@ -2,6 +2,7 @@
public class BookTaxi : JournalBase
{
public override string Event => "BookTaxi";
public int Cost { get; init; }
public string DestinationSystem { get; init; }
public string DestinationLocation { get; init; }

View File

@ -6,6 +6,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class BuyMicroResources : JournalBase
{
public override string Event => "BuyMicroResources";
public string Name { get; init; }
public string Name_Localised { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]

View File

@ -2,6 +2,7 @@
public class BuySuit : JournalBase
{
public override string Event => "BuySuit";
public string Name { get; init; }
public string Name_Localised { get; init; }
public int Price { get; init; }

View File

@ -2,6 +2,7 @@
public class BuyWeapon : JournalBase
{
public override string Event => "BuyWeapon";
public string Name { get; init; }
public string Name_Localised { get; init; }
public int Price { get; init; }

View File

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

View File

@ -2,5 +2,6 @@
public class CancelTaxi : JournalBase
{
public override string Event => "CancelTaxi";
public int Refund { get; init; }
}

View File

@ -2,6 +2,7 @@
public class CollectItems : JournalBase
{
public override string Event => "CollectItems";
public string Name { get; init; }
public string Name_Localised { get; init; }
public string Type { get; init; }

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class CreateSuitLoadout : DeleteSuitLoadout
{
public override string Event => "CreateSuitLoadout";
public ImmutableList<SuitModule> Modules { get; init; }
public ImmutableList<string> SuitMods { get; init; }
}

View File

@ -2,6 +2,7 @@
public class DeleteSuitLoadout : JournalBase
{
public override string Event => "DeleteSuitLoadout";
public ulong SuitID { get; init; }
public string SuitName { get; init; }
public string SuitName_Localised { get; init; }

View File

@ -2,6 +2,7 @@
public class Disembark : JournalBase
{
public override string Event => "Disembark";
public bool SRV { get; init; }
public bool Taxi { get; init; }
public bool Multicrew { get; init; }

View File

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

View File

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

View File

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

View File

@ -2,6 +2,7 @@
public class FCMaterials : JournalBase
{
public override string Event => "FCMaterials";
public ulong MarketID { get; init; }
public string CarrierName { get; init; }
public string CarrierID { get; init; }

View File

@ -2,6 +2,7 @@
public class LoadoutEquipModule : JournalBase
{
public override string Event => "LoadoutEquipModule";
public ulong SuitID { get; init; }
public string SuitName { get; init; }
public string SuitName_Localised { get; init; }

View File

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

View File

@ -2,6 +2,7 @@
public class RenameSuitLoadout : JournalBase
{
public override string Event => "RenameSuitLoadout";
public ulong SuitID { get; init; }
public string SuitName { get; init; }
public ulong LoadoutID { get; init; }

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class ScanOrganic : JournalBase
{
public override string Event => "ScanOrganic";
[JsonConverter(typeof(JsonStringEnumConverter))]
public ScanOrganicType ScanType { get; init; }
public string Genus { get; init; }

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class SellMicroResources : JournalBase
{
public override string Event => "SellMicroResources";
public ImmutableList<MicroResource> MicroResources { get; init; }
public int Price { get; init; }
public ulong MarketID { get; init; }

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class SellOrganicData : JournalBase
{
public override string Event => "SellOrganicData";
public ulong MarketID { get; init; }
public ImmutableList<BioData> BioData { get; init; }
}

View File

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

View File

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

View File

@ -5,6 +5,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class ShipLockerMaterials : JournalBase
{
public override string Event => "ShipLockerMaterials";
public ImmutableList<BackpackItem> Items { get; init; }
public ImmutableList<BackpackItem> Components { get; init; }
public ImmutableList<BackpackItem> Consumables { get; init; }

View File

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

View File

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

View File

@ -6,6 +6,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class TradeMicroResources : JournalBase
{
public override string Event => "TradeMicroResources";
public ImmutableList<MicroResource> Offered { get; init; }
public string Received { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]

View File

@ -5,5 +5,6 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class TransferMicroResources : JournalBase
{
public override string Event => "TransferMicroResources";
public ImmutableList<MicroTransfer> Transfers { get; init; }
}

View File

@ -4,6 +4,7 @@ namespace Observatory.Framework.Files.Journal.Odyssey;
public class UpgradeSuit : JournalBase
{
public override string Event => "UpgradeSuit";
public string Name { get; init; }
public string Name_Localised { get; init; }
public ulong SuitID { get; init; }

View File

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

View File

@ -2,6 +2,7 @@
public class UseConsumable : JournalBase
{
public override string Event => "UseConsumable";
public string Name { get; init; }
public string Name_Localised { get; init; }
public string Type { get; init; }