Files

23 lines
780 B
C#
Raw Permalink Normal View History

2023-02-19 06:27:56 +13:00
using Content.Shared.Chat;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
2023-01-29 00:53:08 +00:00
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, NetworkedComponent]
public sealed partial class EncryptionKeyComponent : Component
2023-01-29 00:53:08 +00:00
{
[DataField]
public HashSet<ProtoId<RadioChannelPrototype>> Channels = new();
2023-01-29 00:53:08 +00:00
/// <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]
public ProtoId<RadioChannelPrototype>? DefaultChannel;
2023-01-29 00:53:08 +00:00
}