using Content.Shared.Radio.EntitySystems;
using Content.Shared.Chat;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Radio.Components;
///
/// Listens for local chat messages and relays them to some radio frequency
///
[RegisterComponent, NetworkedComponent]
[Access(typeof(SharedRadioDeviceSystem))]
public sealed partial class RadioMicrophoneComponent : Component
{
[DataField]
public ProtoId BroadcastChannel = SharedChatSystem.CommonChannel;
[DataField]
public int ListenRange = 4;
[DataField]
public bool Enabled = false;
[DataField]
public bool PowerRequired = false;
///
/// Whether or not interacting with this entity
/// toggles it on or off.
///
[DataField]
public bool ToggleOnInteract = true;
///
/// Whether or not the speaker must have an
/// unobstructed path to the radio to speak
///
[DataField]
public bool UnobstructedRequired = false;
}