Make departmental orders consoles print slips (#36944)

* Make departmental orders consoles print slips

* feed back cycle
This commit is contained in:
pathetic meowmeow
2025-05-06 15:04:18 -04:00
committed by GitHub
parent f73f6d4467
commit cfba56c2b4
45 changed files with 649 additions and 27 deletions

View File

@@ -0,0 +1,41 @@
using Content.Shared.Cargo.Prototypes;
using Robust.Shared.Prototypes;
namespace Content.Shared.Cargo.Components;
/// <summary>
/// Holds data for an order slip required for insertion into a console
/// </summary>
[RegisterComponent]
public sealed partial class CargoSlipComponent : Component
{
/// <summary>
/// The requested product
/// </summary>
[DataField]
public ProtoId<CargoProductPrototype> Product;
/// <summary>
/// The provided value for the requester form field
/// </summary>
[DataField]
public string Requester;
/// <summary>
/// The provided value for the reason form field
/// </summary>
[DataField]
public string Reason;
/// <summary>
/// How many of the product to order
/// </summary>
[DataField]
public int OrderQuantity;
/// <summary>
/// How many of the product to order
/// </summary>
[DataField]
public ProtoId<CargoAccountPrototype> Account;
}