Files
tbd-station-14/Content.Shared/Cargo/Components/CargoShuttleComponent.cs
2023-03-23 16:10:49 +11:00

26 lines
830 B
C#

using Robust.Shared.Map;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Cargo.Components;
/// <summary>
/// Present on cargo shuttles to provide metadata such as preventing spam calling.
/// </summary>
[RegisterComponent, Access(typeof(SharedCargoSystem))]
public sealed class CargoShuttleComponent : Component
{
/// <summary>
/// The assigned station for this cargo shuttle.
/// </summary>
[DataField("station")]
public EntityUid? Station;
/// <summary>
/// The paper-type prototype to spawn with the order information.
/// </summary>
[DataField("printerOutput", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string PrinterOutput = "PaperCargoInvoice";
}