Files
tbd-station-14/Content.Shared/Cargo/Components/CargoSlipComponent.cs
pathetic meowmeow cfba56c2b4 Make departmental orders consoles print slips (#36944)
* Make departmental orders consoles print slips

* feed back cycle
2025-05-06 15:04:18 -04:00

42 lines
976 B
C#

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;
}