mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using Content.Shared.DeviceLinking;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Cargo.Components;
|
|
|
|
/// <summary>
|
|
/// Handles teleporting in requested cargo after the specified delay.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedCargoSystem))]
|
|
public sealed partial class CargoTelepadComponent : Component
|
|
{
|
|
[DataField]
|
|
public List<CargoOrderData> CurrentOrders = new();
|
|
|
|
/// <summary>
|
|
/// The actual amount of time it takes to teleport from the telepad
|
|
/// </summary>
|
|
[DataField]
|
|
public float Delay = 5f;
|
|
|
|
/// <summary>
|
|
/// How much time we've accumulated until next teleport.
|
|
/// </summary>
|
|
[DataField]
|
|
public float Accumulator;
|
|
|
|
[DataField]
|
|
public CargoTelepadState CurrentState = CargoTelepadState.Unpowered;
|
|
|
|
[DataField]
|
|
public SoundSpecifier TeleportSound = new SoundPathSpecifier("/Audio/Machines/phasein.ogg");
|
|
|
|
/// <summary>
|
|
/// The paper-type prototype to spawn with the order information.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntProtoId PrinterOutput = "PaperCargoInvoice";
|
|
|
|
[DataField]
|
|
public ProtoId<SinkPortPrototype> ReceiverPort = "OrderReceiver";
|
|
}
|