2023-07-24 14:07:35 +12:00
|
|
|
using Content.Shared.DeviceLinking;
|
2022-05-12 20:46:20 +12:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2022-04-04 01:13:03 -05:00
|
|
|
|
2023-05-07 08:07:24 +02:00
|
|
|
namespace Content.Server.DeviceLinking.Components
|
2022-04-04 01:13:03 -05:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class DoorSignalControlComponent : Component
|
2022-04-04 01:13:03 -05:00
|
|
|
{
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("openPort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
|
2022-05-12 20:46:20 +12:00
|
|
|
public string OpenPort = "Open";
|
|
|
|
|
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("closePort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
|
2022-05-12 20:46:20 +12:00
|
|
|
public string ClosePort = "Close";
|
|
|
|
|
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("togglePort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
|
2022-05-12 20:46:20 +12:00
|
|
|
public string TogglePort = "Toggle";
|
2023-05-06 22:49:11 -08:00
|
|
|
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("boltPort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
|
2023-05-06 22:49:11 -08:00
|
|
|
public string InBolt = "DoorBolt";
|
|
|
|
|
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("onOpenPort", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
2023-05-06 22:49:11 -08:00
|
|
|
public string OutOpen = "DoorStatus";
|
2022-04-04 01:13:03 -05:00
|
|
|
}
|
|
|
|
|
}
|