mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
24 lines
872 B
C#
24 lines
872 B
C#
using Content.Shared.DeviceLinking;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.DeviceLinking.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed partial class TwoWayLeverComponent : Component
|
|
{
|
|
[DataField("state")]
|
|
public TwoWayLeverState State;
|
|
|
|
[DataField("nextSignalLeft")]
|
|
public bool NextSignalLeft;
|
|
|
|
[DataField("leftPort", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
|
public string LeftPort = "Left";
|
|
|
|
[DataField("rightPort", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
|
public string RightPort = "Right";
|
|
|
|
[DataField("middlePort", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
|
public string MiddlePort = "Middle";
|
|
}
|
|
}
|