using Content.Shared.Radio; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set; namespace Content.Server.Radio.Components; /// /// This component is required to receive radio message events. /// [RegisterComponent] public sealed partial class ActiveRadioComponent : Component { /// /// The channels that this radio is listening on. /// [DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] public HashSet Channels = new(); /// /// A toggle for globally receiving all radio channels. /// Overrides /// [DataField, ViewVariables(VVAccess.ReadWrite)] public bool ReceiveAllChannels; /// /// If this radio can hear all messages on all maps /// [DataField("globalReceive")] public bool GlobalReceive = false; }