2022-05-12 20:46:20 +12:00
|
|
|
using Content.Shared.MachineLinking;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2021-08-27 17:46:02 +02:00
|
|
|
|
|
|
|
|
namespace Content.Server.MachineLinking.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class TwoWayLeverComponent : Component
|
2021-08-27 17:46:02 +02:00
|
|
|
{
|
2022-05-12 20:46:20 +12:00
|
|
|
[DataField("state")]
|
2022-04-04 01:13:03 -05:00
|
|
|
public TwoWayLeverState State;
|
2021-08-27 17:46:02 +02:00
|
|
|
|
2022-05-12 20:46:20 +12:00
|
|
|
[DataField("nextSignalLeft")]
|
2021-08-27 17:46:02 +02:00
|
|
|
public bool NextSignalLeft;
|
2022-05-12 20:46:20 +12:00
|
|
|
|
|
|
|
|
[DataField("leftPort", customTypeSerializer: typeof(PrototypeIdSerializer<TransmitterPortPrototype>))]
|
|
|
|
|
public string LeftPort = "Left";
|
|
|
|
|
|
|
|
|
|
[DataField("rightPort", customTypeSerializer: typeof(PrototypeIdSerializer<TransmitterPortPrototype>))]
|
|
|
|
|
public string RightPort = "Right";
|
|
|
|
|
|
|
|
|
|
[DataField("middlePort", customTypeSerializer: typeof(PrototypeIdSerializer<TransmitterPortPrototype>))]
|
|
|
|
|
public string MiddlePort = "Middle";
|
2021-08-27 17:46:02 +02:00
|
|
|
}
|
|
|
|
|
}
|