* move all the radio components and system to Shared. * duh split impl * address reviews * cleanup --------- Co-authored-by: walksanatora <walkerffo22@gmail.com>
31 lines
835 B
C#
31 lines
835 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Radio.Components;
|
|
|
|
/// <summary>
|
|
/// This component is required to receive radio message events.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class ActiveRadioComponent : Component
|
|
{
|
|
/// <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;
|
|
}
|