Files
OldThink/Content.Shared/Radio/Components/EncryptionKeyComponent.cs

23 lines
1009 B
C#
Raw Permalink Normal View History

2023-02-19 06:27:56 +13:00
using Content.Shared.Chat;
2023-01-29 00:53:08 +00:00
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
2023-02-19 06:27:56 +13:00
namespace Content.Shared.Radio.Components;
2023-01-29 00:53:08 +00:00
/// <summary>
/// This component is currently used for providing access to channels for "HeadsetComponent"s.
/// It should be used for intercoms and other radios in future.
/// </summary>
[RegisterComponent]
public sealed partial class EncryptionKeyComponent : Component
2023-01-29 00:53:08 +00:00
{
[DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<RadioChannelPrototype>))]
public HashSet<string> Channels = new();
/// <summary>
2023-02-19 06:27:56 +13:00
/// This is the channel that will be used when using the default/department prefix (<see cref="SharedChatSystem.DefaultChannelKey"/>).
2023-01-29 00:53:08 +00:00
/// </summary>
[DataField("defaultChannel", customTypeSerializer: typeof(PrototypeIdSerializer<RadioChannelPrototype>))]
public string? DefaultChannel;
2023-01-29 00:53:08 +00:00
}