Files
crystall-punk-14/Content.Shared/Radio/Components/ActiveRadioComponent.cs

31 lines
835 B
C#
Raw Normal View History

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
2022-11-15 17:09:27 +13:00
namespace Content.Shared.Radio.Components;
2022-11-15 17:09:27 +13:00
/// <summary>
/// This component is required to receive radio message events.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class ActiveRadioComponent : Component
2022-11-15 17:09:27 +13:00
{
/// <summary>
/// The channels that this radio is listening on.
/// </summary>
[DataField]
public HashSet<ProtoId<RadioChannelPrototype>> Channels = new();
/// <summary>
/// A toggle for globally receiving all radio channels.
/// Overrides <see cref="Channels"/>
/// </summary>
[DataField]
public bool ReceiveAllChannels;
/// <summary>
/// If this radio can hear all messages on all maps
/// </summary>
[DataField]
public bool GlobalReceive = false;
2022-11-15 17:09:27 +13:00
}