SignalControlledValveComponent.cs 797 B

123456789101112131415161718
  1. using Content.Server.Atmos.Piping.Binary.EntitySystems;
  2. using Content.Shared.DeviceLinking;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Server.Atmos.Piping.Binary.Components;
  5. [RegisterComponent, Access(typeof(SignalControlledValveSystem))]
  6. public sealed partial class SignalControlledValveComponent : 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. }