Files
wwdpublic/Content.Shared/Radio/RadioChannelPrototype.cs
Tayrtahn 7f3b436dc1 Fix prototypes so they pass analyzer checks (#35435)
(cherry picked from commit 6f925dd61083a3fd377e5d12549ac908985e855f)
2025-09-27 13:54:06 +03:00

47 lines
1.4 KiB
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.Radio;
[Prototype("radioChannel")]
public sealed partial class RadioChannelPrototype : IPrototype
{
/// <summary>
/// Human-readable name for the channel.
/// </summary>
[DataField("name")]
public LocId Name { get; private set; } = string.Empty;
[ViewVariables(VVAccess.ReadOnly)]
public string LocalizedName => Loc.GetString(Name);
/// <summary>
/// Single-character prefix to determine what channel a message should be sent to.
/// </summary>
[DataField("keycodes")]
public List<char> KeyCodes { get; private set; } = new() {'\0'}; // WD EDIT
[DataField("frequency")]
public int Frequency { get; private set; } = 0;
[DataField("color")]
public Color Color { get; private set; } = Color.Lime;
[IdDataField, ViewVariables]
public string ID { get; private set; } = default!;
/// <summary>
/// If channel is long range it doesn't require telecommunication server
/// and messages can be sent across different stations
/// </summary>
[DataField("longRange"), ViewVariables]
public bool LongRange = false;
// Frontier: radio channel frequencies
/// <summary>
/// If true, the frequency of the message being sent will be appended to the chat message
/// </summary>
[DataField, ViewVariables]
public bool ShowFrequency = false;
// End Frontier
}