25 lines
790 B
C#
25 lines
790 B
C#
using Content.Server.Radio.EntitySystems;
|
|
using Content.Shared.Radio;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Radio.Components;
|
|
|
|
/// <summary>
|
|
/// Listens for local chat messages and relays them to some radio frequency
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Access(typeof(RadioDeviceSystem))]
|
|
public sealed class RadioMicrophoneComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("broadcastChannel", customTypeSerializer: typeof(PrototypeIdSerializer<RadioChannelPrototype>))]
|
|
public string BroadcastChannel = "Common";
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("listenRange")]
|
|
public int ListenRange = 4;
|
|
|
|
[DataField("enabled")]
|
|
public bool Enabled = false;
|
|
}
|