Remove redundant read-only VV from datafields (#12626)
This commit is contained in:
@@ -8,18 +8,18 @@ namespace Content.Shared.Radio
|
||||
/// <summary>
|
||||
/// Human-readable name for the channel.
|
||||
/// </summary>
|
||||
[ViewVariables] [DataField("name")] public string Name { get; private set; } = string.Empty;
|
||||
[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';
|
||||
[DataField("keycode")] public char KeyCode { get; private set; } = '\0';
|
||||
|
||||
[ViewVariables] [DataField("frequency")] public int Frequency { get; private set; } = 0;
|
||||
[DataField("frequency")] public int Frequency { get; private set; } = 0;
|
||||
|
||||
[ViewVariables] [DataField("color")] public Color Color { get; private set; } = Color.Lime;
|
||||
[DataField("color")] public Color Color { get; private set; } = Color.Lime;
|
||||
|
||||
[ViewVariables]
|
||||
[IdDataFieldAttribute]
|
||||
|
||||
Reference in New Issue
Block a user