using Content.Shared.Cargo;
using Content.Shared.Cargo.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Cargo.Components;
///
/// Stores all of cargo orders for a particular station.
///
[RegisterComponent]
public sealed class StationCargoOrderDatabaseComponent : Component
{
///
/// Maximum amount of orders a station is allowed, approved or not.
///
[ViewVariables(VVAccess.ReadWrite), DataField("capacity")]
public int Capacity = 20;
[ViewVariables(VVAccess.ReadWrite), DataField("orders")]
public List Orders = new();
///
/// Used to determine unique order IDs
///
public int NumOrdersCreated;
[DataField("cargoShuttleProto", customTypeSerializer:typeof(PrototypeIdSerializer))]
public string? CargoShuttleProto = "CargoShuttle";
///
/// The cargo shuttle assigned to this station.
///
[DataField("shuttle")]
public EntityUid? Shuttle;
}