DisposalSignalRouterComponent.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Content.Server.Disposal.Tube.Systems;
  2. using Content.Shared.DeviceLinking;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Server.Disposal.Tube.Components;
  5. /// <summary>
  6. /// Requires <see cref="DisposalJunctionComponent"/> to function.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(DisposalSignalRouterSystem))]
  9. public sealed partial class DisposalSignalRouterComponent : Component
  10. {
  11. /// <summary>
  12. /// Whether to route items to the side or not.
  13. /// </summary>
  14. [DataField]
  15. public bool Routing;
  16. /// <summary>
  17. /// Port that sets the router to send items to the side.
  18. /// </summary>
  19. [DataField]
  20. public ProtoId<SinkPortPrototype> OnPort = "On";
  21. /// <summary>
  22. /// Port that sets the router to send items ahead.
  23. /// </summary>
  24. [DataField]
  25. public ProtoId<SinkPortPrototype> OffPort = "Off";
  26. /// <summary>
  27. /// Port that toggles the router between sending items to the side and ahead.
  28. /// </summary>
  29. [DataField]
  30. public ProtoId<SinkPortPrototype> TogglePort = "Toggle";
  31. }