RadioImplantComponent.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Content.Shared.Radio;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Shared.Implants.Components;
  4. /// <summary>
  5. /// Gives the user access to a given channel without the need for a headset.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class RadioImplantComponent : Component
  9. {
  10. /// <summary>
  11. /// The radio channel(s) to grant access to.
  12. /// </summary>
  13. [DataField(required: true)]
  14. public HashSet<ProtoId<RadioChannelPrototype>> RadioChannels = new();
  15. /// <summary>
  16. /// The radio channels that have been added by the implant to a user's ActiveRadioComponent.
  17. /// Used to track which channels were successfully added (not already in user)
  18. /// </summary>
  19. /// <remarks>
  20. /// Should not be modified outside RadioImplantSystem.cs
  21. /// </remarks>
  22. [DataField]
  23. public HashSet<ProtoId<RadioChannelPrototype>> ActiveAddedChannels = new();
  24. /// <summary>
  25. /// The radio channels that have been added by the implant to a user's IntrinsicRadioTransmitterComponent.
  26. /// Used to track which channels were successfully added (not already in user)
  27. /// </summary>
  28. /// <remarks>
  29. /// Should not be modified outside RadioImplantSystem.cs
  30. /// </remarks>
  31. [DataField]
  32. public HashSet<ProtoId<RadioChannelPrototype>> TransmitterAddedChannels = new();
  33. }