Initial Commit

This commit is contained in:
Ben Parsons 2024-04-13 15:54:59 +10:00
commit 63ed43f4af
55 changed files with 7968 additions and 20433 deletions

View file

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class BuyAmmo : JournalBase
{
public class BuyAmmo : JournalBase
{
public int Cost { get; init; }
}
}
public int Cost { get; init; }
}

View file

@ -1,11 +1,10 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class BuyDrones : JournalBase
{
public class BuyDrones : JournalBase
{
public string Type { get; init; }
public int Count { get; init; }
public uint BuyPrice { get; init; }
public uint SellPrice { get; init; }
public int TotalCost { get; init; }
}
}
public string Type { get; init; }
public int Count { get; init; }
public uint BuyPrice { get; init; }
public uint SellPrice { get; init; }
public int TotalCost { get; init; }
}

View file

@ -1,21 +1,20 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CargoDepot : JournalBase
{
public class CargoDepot : JournalBase
{
public ulong MissionID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UpdateType UpdateType { get; init; }
public string CargoType { get; init; }
public string CargoType_Localised { get; init; }
public int Count { get; init; }
public ulong StartMarketID { get; init; }
public ulong EndMarketID { get; init; }
public int ItemsCollected { get; init; }
public int ItemsDelivered { get; init; }
public int TotalItemsToDeliver { get; init; }
public float Progress { get; init; }
}
}
public ulong MissionID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UpdateType UpdateType { get; init; }
public string CargoType { get; init; }
public string CargoType_Localised { get; init; }
public int Count { get; init; }
public ulong StartMarketID { get; init; }
public ulong EndMarketID { get; init; }
public int ItemsCollected { get; init; }
public int ItemsDelivered { get; init; }
public int TotalItemsToDeliver { get; init; }
public float Progress { get; init; }
}

View file

@ -1,11 +1,10 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ClearImpound : JournalBase
{
public class ClearImpound : JournalBase
{
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public ulong ShipMarketID { get; init; }
public ulong MarketID { get; init; }
}
}
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public ulong ShipMarketID { get; init; }
public ulong MarketID { get; init; }
}

View file

@ -1,10 +1,9 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoal : JournalBase
{
public class CommunityGoal : JournalBase
{
public ImmutableList<CurrentGoal> CurrentGoals { get; init; }
}
}
public ImmutableList<CurrentGoal> CurrentGoals { get; init; }
}

View file

@ -1,9 +1,8 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoalDiscard : JournalBase
{
public class CommunityGoalDiscard : JournalBase
{
public ulong CGID { get; init; }
public string Name { get; init; }
public string System { get; init; }
}
}
public ulong CGID { get; init; }
public string Name { get; init; }
public string System { get; init; }
}

View file

@ -1,6 +1,5 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoalJoin : CommunityGoalDiscard
{
public class CommunityGoalJoin : CommunityGoalDiscard
{
}
}
}

View file

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoalReward : CommunityGoalDiscard
{
public class CommunityGoalReward : CommunityGoalDiscard
{
public long Reward { get; init; }
}
}
public long Reward { get; init; }
}

View file

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CrewAssign : CrewFire
{
public class CrewAssign : CrewFire
{
public string Role { get; init; }
}
}
public string Role { get; init; }
}

View file

@ -1,8 +1,7 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CrewFire : JournalBase
{
public class CrewFire : JournalBase
{
public string Name { get; init; }
public ulong CrewID { get; init; }
}
}
public string Name { get; init; }
public ulong CrewID { get; init; }
}

View file

@ -1,9 +1,8 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CrewHire : CrewFire
{
public class CrewHire : CrewFire
{
public string Faction { get; init; }
public long Cost { get; init; }
public int CombatRank { get; init; }
}
}
public string Faction { get; init; }
public long Cost { get; init; }
public int CombatRank { get; init; }
}

View file

@ -1,12 +1,9 @@
using System;
namespace Observatory.Framework.Files.Journal.StationServices;
namespace Observatory.Framework.Files.Journal
[Obsolete("This event was removed in Elite Dangerous 3.0 and will only appear in legacy data.")]
public class EngineerApply : JournalBase
{
[Obsolete("This event was removed in Elite Dangerous 3.0 and will only appear in legacy data.")]
public class EngineerApply : JournalBase
{
public string Engineer { get; init; }
public string Blueprint { get; init; }
public int Level { get; init; }
}
}
public string Engineer { get; init; }
public string Blueprint { get; init; }
public int Level { get; init; }
}

View file

@ -1,20 +1,19 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class EngineerContribution : JournalBase
{
public class EngineerContribution : JournalBase
{
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ContributionType Type { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public string Material { get; init; }
public string Material_Localised { get; init; }
public string Faction { get; init; }
public int Quantity { get; init; }
public int TotalQuantity { get; init; }
}
}
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ContributionType Type { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public string Material { get; init; }
public string Material_Localised { get; init; }
public string Faction { get; init; }
public int Quantity { get; init; }
public int TotalQuantity { get; init; }
}

View file

@ -1,26 +1,25 @@
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using System.Collections.Immutable;
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class EngineerCraft : JournalBase
{
public class EngineerCraft : JournalBase
{
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
public string Blueprint { get; init; }
public string Slot { get; init; }
public string Module { get; init; }
public ulong BlueprintID { get; init; }
public string BlueprintName { get; init; }
public string ExperimentalEffect { get; init; }
public string ExperimentalEffect_Localised { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
public string ApplyExperimentalEffect { get; init; }
[JsonConverter(typeof(MaterialConverter))]
public ImmutableList<Material> Ingredients { get; init; }
public ImmutableList<Modifier> Modifiers { get; init; }
}
}
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
public string Blueprint { get; init; }
public string Slot { get; init; }
public string Module { get; init; }
public ulong BlueprintID { get; init; }
public string BlueprintName { get; init; }
public string ExperimentalEffect { get; init; }
public string ExperimentalEffect_Localised { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
public string ApplyExperimentalEffect { get; init; }
[JsonConverter(typeof(MaterialConverter))]
public ImmutableList<Material> Ingredients { get; init; }
public ImmutableList<Modifier> Modifiers { get; init; }
}

View file

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class EngineerLegacyConvert : EngineerCraft
{
public class EngineerLegacyConvert : EngineerCraft
{
public bool IsPreview { get; init; }
}
}
public bool IsPreview { get; init; }
}

View file

@ -1,17 +1,16 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class EngineerProgress : JournalBase
{
public class EngineerProgress : JournalBase
{
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
public int Rank { get; init; }
public int RankProgress { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ParameterTypes.Progress Progress { get; init; }
public ImmutableList<EngineerType> Engineers { get; init; }
}
}
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
public int Rank { get; init; }
public int RankProgress { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ParameterTypes.Progress Progress { get; init; }
public ImmutableList<EngineerType> Engineers { get; init; }
}

View file

@ -1,14 +1,13 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class FetchRemoteModule : JournalBase
{
public class FetchRemoteModule : JournalBase
{
public ulong ShipID { get; init; }
public int StorageSlot { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public ulong ServerId { get; init; }
public long TransferCost { get; init; }
public string Ship { get; init; }
public long TransferTime { get; init; }
}
}
public ulong ShipID { get; init; }
public int StorageSlot { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public ulong ServerId { get; init; }
public long TransferCost { get; init; }
public string Ship { get; init; }
public long TransferTime { get; init; }
}

View file

@ -1,19 +1,18 @@
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
// TODO: Read market.json file - Will only be valid for most recent market event
public class Market : JournalBase
{
// TODO: Read market.json file - Will only be valid for most recent market event
public class Market : JournalBase
{
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StationType { get; init; }
public string StarSystem { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierDockingAccess CarrierDockingAccess { get; init; }
}
}
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StationType { get; init; }
public string StarSystem { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierDockingAccess CarrierDockingAccess { get; init; }
}

View file

@ -1,13 +1,12 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MassModuleStore : JournalBase
{
public class MassModuleStore : JournalBase
{
public ulong MarketID { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public ImmutableList<Item> Items { get; init; }
}
}
public ulong MarketID { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public ImmutableList<Item> Items { get; init; }
}

View file

@ -1,12 +1,11 @@
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MaterialTrade : JournalBase
{
public class MaterialTrade : JournalBase
{
public ulong MarketID { get; init; }
public string TraderType { get; init; }
public TradeDetail Paid { get; init; }
public TradeDetail Received { get; init; }
}
}
public ulong MarketID { get; init; }
public string TraderType { get; init; }
public TradeDetail Paid { get; init; }
public TradeDetail Received { get; init; }
}

Some files were not shown because too many files have changed in this diff Show more