using Content.Shared.Cargo; using Content.Shared.Construction.Prototypes; using Content.Shared.DeviceLinking; using Robust.Shared.Audio; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; namespace Content.Shared._NF.Cargo.Components; /// /// Handles teleporting in requested cargo after the specified delay. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedNFCargoSystem))] public sealed partial class NFCargoTelepadComponent : Component { /// /// The base amount of time it takes to teleport from the telepad /// [DataField] public float BaseDelay = 10f; /// /// The actual amount of time it takes to teleport from the telepad /// [DataField] public float Delay = 10f; /// /// The machine part that affects /// [DataField] public ProtoId MachinePartTeleportDelay = "Capacitor"; /// /// A multiplier applied to for each level of /// [DataField] public float PartRatingTeleportDelay = 0.8f; /// /// How much time we've accumulated until next teleport. /// [DataField] public float Accumulator; [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"; }