2023-02-19 06:27:56 +13:00
|
|
|
using Content.Server.Chat.Systems;
|
|
|
|
|
using Content.Shared.Chat;
|
2022-11-15 17:09:27 +13:00
|
|
|
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]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class IntrinsicRadioTransmitterComponent : Component
|
2022-11-15 17:09:27 +13:00
|
|
|
{
|
|
|
|
|
[DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<RadioChannelPrototype>))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public HashSet<string> Channels = new() { SharedChatSystem.CommonChannel };
|
2022-11-15 17:09:27 +13:00
|
|
|
}
|