Files
crystall-punk-14/Content.Shared/Radio/RadioChannelPrototype.cs

39 lines
1.1 KiB
C#
Raw Normal View History

using Robust.Shared.Prototypes;
2023-03-24 03:02:41 +03:00
namespace Content.Shared.Radio;
[Prototype("radioChannel")]
public sealed partial class RadioChannelPrototype : IPrototype
{
2023-03-24 03:02:41 +03:00
/// <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);
2023-03-24 03:02:41 +03:00
/// <summary>
/// Single-character prefix to determine what channel a message should be sent to.
/// </summary>
[DataField("keycode")]
public char KeyCode { get; private set; } = '\0';
2023-03-24 03:02:41 +03:00
[DataField("frequency")]
public int Frequency { get; private set; } = 0;
2023-03-24 03:02:41 +03:00
[DataField("color")]
public Color Color { get; private set; } = Color.Lime;
2023-03-24 03:02:41 +03:00
[IdDataField, ViewVariables]
public string ID { get; } = default!;
2023-03-24 03:02:41 +03:00
/// <summary>
/// If channel is long range it doesn't require telecommunication server
2023-03-24 03:02:41 +03:00
/// and messages can be sent across different stations
/// </summary>
[DataField("longRange"), ViewVariables]
public bool LongRange = false;
}