DoorSignalControlComponent.cs 1.0 KB

123456789101112131415161718192021222324
  1. using Content.Shared.DeviceLinking;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.DeviceLinking.Components
  4. {
  5. [RegisterComponent]
  6. public sealed partial class DoorSignalControlComponent : Component
  7. {
  8. [DataField("openPort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
  9. public string OpenPort = "Open";
  10. [DataField("closePort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
  11. public string ClosePort = "Close";
  12. [DataField("togglePort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
  13. public string TogglePort = "Toggle";
  14. [DataField("boltPort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
  15. public string InBolt = "DoorBolt";
  16. [DataField("onOpenPort", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
  17. public string OutOpen = "DoorStatus";
  18. }
  19. }