6
StarHorizon_Public/Content.Server/Disposal/Tube/DisposalSignalRouterComponent.cs
2026-01-18 12:53:36 +03:00

36 lines
1001 B
C#

using Content.Shared.DeviceLinking;
using Robust.Shared.Prototypes;
namespace Content.Server.Disposal.Tube;
/// <summary>
/// Requires <see cref="DisposalJunctionComponent"/> to function.
/// </summary>
[RegisterComponent, Access(typeof(DisposalSignalRouterSystem))]
public sealed partial class DisposalSignalRouterComponent : Component
{
/// <summary>
/// Whether to route items to the side or not.
/// </summary>
[DataField]
public bool Routing;
/// <summary>
/// Port that sets the router to send items to the side.
/// </summary>
[DataField]
public ProtoId<SinkPortPrototype> OnPort = "On";
/// <summary>
/// Port that sets the router to send items ahead.
/// </summary>
[DataField]
public ProtoId<SinkPortPrototype> OffPort = "Off";
/// <summary>
/// Port that toggles the router between sending items to the side and ahead.
/// </summary>
[DataField]
public ProtoId<SinkPortPrototype> TogglePort = "Toggle";
}