2023-02-19 06:27:56 +13:00
|
|
|
using Content.Shared.Chat;
|
2025-09-12 01:26:47 +02:00
|
|
|
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>
|
2025-09-12 01:26:47 +02:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class EncryptionKeyComponent : Component
|
2023-01-29 00:53:08 +00:00
|
|
|
{
|
2025-09-12 01:26:47 +02: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>
|
2025-09-12 01:26:47 +02:00
|
|
|
[DataField]
|
|
|
|
|
public ProtoId<RadioChannelPrototype>? DefaultChannel;
|
2023-01-29 00:53:08 +00:00
|
|
|
}
|