mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* Add bolt signal to door outputs * Update DoorSignalControlSystem.cs * fix test --------- Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
27 lines
787 B
C#
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";
|
|
}
|
|
}
|