using Content.Shared.DeviceLinking; using Robust.Shared.Audio; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Shared.Cargo.Components; /// /// Handles teleporting in requested cargo after the specified delay. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedCargoSystem)), AutoGenerateComponentPause] public sealed partial class CargoTelepadComponent : Component { [DataField] public List CurrentOrders = new(); /// /// The delay between each teleport in seconds /// [DataField] public TimeSpan Delay = TimeSpan.FromSeconds(5); /// /// The next time the teleporter can teleport. /// [DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField] public TimeSpan NextTeleport; [DataField] public CargoTelepadState CurrentState = CargoTelepadState.Unpowered; [DataField] public SoundSpecifier TeleportSound = new SoundPathSpecifier("/Audio/Machines/phasein.ogg"); /// /// The paper-type prototype to spawn with the order information. /// [DataField] public EntProtoId PrinterOutput = "PaperCargoInvoice"; [DataField] public ProtoId ReceiverPort = "OrderReceiver"; }