1
0

TwoWayLeverComponent.cs 698 B

1234567891011121314151617181920212223242526
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Shared.DeviceLinking.Components;
  4. /// <summary>
  5. /// Simple ternary state for device linking.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  8. public sealed partial class TwoWayLeverComponent : Component
  9. {
  10. [DataField, AutoNetworkedField]
  11. public TwoWayLeverState State;
  12. [DataField, AutoNetworkedField]
  13. public bool NextSignalLeft;
  14. [DataField]
  15. public ProtoId<SourcePortPrototype> LeftPort = "Left";
  16. [DataField]
  17. public ProtoId<SourcePortPrototype> RightPort = "Right";
  18. [DataField]
  19. public ProtoId<SourcePortPrototype> MiddlePort = "Middle";
  20. }