Files
tbd-station-14/Content.Shared/Radio/RadioChannelPrototype.cs
2023-01-19 13:56:45 +11:00

29 lines
924 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.Radio
{
[Prototype("radioChannel")]
public sealed class RadioChannelPrototype : IPrototype
{
/// <summary>
/// Human-readable name for the channel.
/// </summary>
[DataField("name")] public string 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("keycode")] public char KeyCode { get; private set; } = '\0';
[DataField("frequency")] public int Frequency { get; private set; } = 0;
[DataField("color")] public Color Color { get; private set; } = Color.Lime;
[ViewVariables]
[IdDataField]
public string ID { get; } = default!;
}
}