IntrinsicRadioTransmitterComponent.cs 686 B

1234567891011121314151617
  1. using Content.Server.Chat.Systems;
  2. using Content.Shared.Chat;
  3. using Content.Shared.Radio;
  4. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
  5. namespace Content.Server.Radio.Components;
  6. /// <summary>
  7. /// This component allows an entity to directly translate spoken text into radio messages (effectively an intrinsic
  8. /// radio headset).
  9. /// </summary>
  10. [RegisterComponent]
  11. public sealed partial class IntrinsicRadioTransmitterComponent : Component
  12. {
  13. [DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<RadioChannelPrototype>))]
  14. public HashSet<string> Channels = new() { SharedChatSystem.CommonChannel };
  15. }