* puters * Start on fulfillment * weh * Smol update * FTL sound fixes or smth iunno * Add consoles * More tweaks * Make it unanchorable * final wehs * weh * Fix 1 test * Shrimply bump the distance * cat
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Content.Shared.Cargo;
|
|
using Content.Shared.Cargo.Prototypes;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Cargo.Components;
|
|
|
|
/// <summary>
|
|
/// Stores all of cargo orders for a particular station.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class StationCargoOrderDatabaseComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Maximum amount of orders a station is allowed, approved or not.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("capacity")]
|
|
public int Capacity = 20;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("orders")]
|
|
public List<CargoOrderData> Orders = new();
|
|
|
|
/// <summary>
|
|
/// Used to determine unique order IDs
|
|
/// </summary>
|
|
public int NumOrdersCreated;
|
|
|
|
// TODO: Can probably dump this
|
|
/// <summary>
|
|
/// The cargo shuttle assigned to this station.
|
|
/// </summary>
|
|
[DataField("shuttle")]
|
|
public EntityUid? Shuttle;
|
|
|
|
/// <summary>
|
|
/// The paper-type prototype to spawn with the order information.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntProtoId PrinterOutput = "PaperCargoInvoice";
|
|
}
|