Files
tbd-station-14/Content.Shared/Radio/RadioChannelPrototype.cs
Morber c3a164b906 Localize radio channel names (#9256)
* Add localized channel names

* Full names
2022-06-29 13:27:19 +10:00

29 lines
997 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>
[ViewVariables] [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>
[ViewVariables] [DataField("keycode")] public char KeyCode { get; private set; } = '\0';
[ViewVariables] [DataField("frequency")] public int Frequency { get; private set; } = 0;
[ViewVariables] [DataField("color")] public Color Color { get; private set; } = Color.Lime;
[ViewVariables]
[IdDataFieldAttribute]
public string ID { get; } = default!;
}
}