using Content.Shared.Radio.EntitySystems;
using Content.Shared.Chat;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Radio.Components;
///
/// Listens for radio messages and relays them to local chat.
///
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedRadioDeviceSystem))]
public sealed partial class RadioSpeakerComponent : Component
{
///
/// Whether or not interacting with this entity
/// toggles it on or off.
///
[DataField]
public bool ToggleOnInteract = true;
[DataField]
public HashSet> Channels = new() { SharedChatSystem.CommonChannel };
[DataField, AutoNetworkedField]
public bool Enabled;
}