SignallerComponent.cs 622 B

123456789101112131415161718
  1. using Content.Shared.DeviceLinking;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.DeviceLinking.Components
  4. {
  5. /// <summary>
  6. /// Sends out a signal to machine linked objects.
  7. /// </summary>
  8. [RegisterComponent]
  9. public sealed partial class SignallerComponent : Component
  10. {
  11. /// <summary>
  12. /// The port that gets signaled when the switch turns on.
  13. /// </summary>
  14. [DataField("port", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
  15. public string Port = "Pressed";
  16. }
  17. }