mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Radio;
|
|
|
|
[Prototype]
|
|
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("keycode")]
|
|
public char KeyCode { get; private set; } = '\0';
|
|
|
|
[DataField("frequency")]
|
|
public int Frequency { get; private set; } = 0;
|
|
|
|
[DataField("color")]
|
|
public Color Color { get; set; } = Color.Lime; // DeltaV - Client-side radio channel colors, no longer private set
|
|
|
|
[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;
|
|
}
|