2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00
Ben Parsons efd0b3e0c0 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
2024-05-24 19:30:12 +10:00

25 lines
790 B
C#

using System.Collections.Immutable;
using Observatory.Framework.Files.Journal;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files;
/// <summary>
/// Elite Dangerous cargo.json file. Describes the current cargo carried above the player's ship.
/// </summary>
public class CargoFile : JournalBase
{
public override string Event => "Cargo";
/// <summary>
/// Type of vehicle currently being reported. "Ship" or "SRV".
/// </summary>
public string Vessel { get; init; }
/// <summary>
/// Number of different types of cargo carried(?)
/// </summary>
public int Count { get; init; }
/// <summary>
/// List of full cargo details.
/// </summary>
public ImmutableList<CargoType> Inventory { get; init; }
}