CatStation/Content.Server/DeviceLinking/Components/DoorSignalControlComponent.cs
Varen c512e35bf9
Add bolt signal to door outputs (#44940)
* Add bolt signal to door outputs

* Update DoorSignalControlSystem.cs

* fix test

---------

Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
2026-09-23 19:54:44 +00:00

27 lines
787 B
C#

using Content.Shared.DeviceLinking;
using Robust.Shared.Prototypes;
namespace Content.Server.DeviceLinking.Components
{
[RegisterComponent]
public sealed partial class DoorSignalControlComponent : Component
{
[DataField]
public ProtoId<SinkPortPrototype> OpenPort = "Open";
[DataField]
public ProtoId<SinkPortPrototype> ClosePort = "Close";
[DataField]
public ProtoId<SinkPortPrototype> TogglePort = "Toggle";
[DataField("boltPort")]
public ProtoId<SinkPortPrototype> InBolt = "DoorBolt";
[DataField("onOpenPort")]
public ProtoId<SourcePortPrototype> OutOpen = "DoorStatus";
[DataField("onBoltPort")]
public ProtoId<SourcePortPrototype> OutBolt = "DoorBoltStatus";
}
}