16 lines
603 B
C#
16 lines
603 B
C#
using Content.Shared.Radio;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
|
|
|
|
namespace Content.Server.Radio.Components;
|
|
|
|
/// <summary>
|
|
/// This component allows an entity to directly translate spoken text into radio messages (effectively an intrinsic
|
|
/// radio headset).
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class IntrinsicRadioTransmitterComponent : Component
|
|
{
|
|
[DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<RadioChannelPrototype>))]
|
|
public readonly HashSet<string> Channels = new() { "Common" };
|
|
}
|