GunSignalControlComponent.cs 728 B

123456789101112131415161718192021222324
  1. using Content.Server.DeviceLinking.Systems;
  2. using Content.Shared.DeviceLinking;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Server.DeviceLinking.Components;
  5. /// <summary>
  6. /// A system that allows you to fire GunComponent + AmmoProvider by receiving signals from DeviceLinking
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(GunSignalControlSystem))]
  9. public sealed partial class GunSignalControlComponent : Component
  10. {
  11. [DataField]
  12. public ProtoId<SinkPortPrototype> TriggerPort = "Trigger";
  13. [DataField]
  14. public ProtoId<SinkPortPrototype> TogglePort = "Toggle";
  15. [DataField]
  16. public ProtoId<SinkPortPrototype> OnPort = "On";
  17. [DataField]
  18. public ProtoId<SinkPortPrototype> OffPort = "Off";
  19. }