mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* radiosystem is funny * review Co-authored-by: slarticodefast <slarticodefast@users.noreply.github.com> Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com> * dont forget your tests * dont forget your loc * networking Co-authored-by: Tayrtahn <Tayrtahn@users.noreply.github.com> * dont return because its breaks * uh * review Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com> * more predictions and cleanup * refactor: just me, being picky about whitespaces and commetns formatting --------- Co-authored-by: slarticodefast <slarticodefast@users.noreply.github.com> Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com> Co-authored-by: Tayrtahn <Tayrtahn@users.noreply.github.com> Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com> Co-authored-by: Fildrance <fildrance@gmail.com>
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Radio;
|
|
|
|
/// <summary>
|
|
/// Defines a radio channel and its transmission properties.
|
|
/// </summary>
|
|
[Prototype]
|
|
public sealed partial class RadioChannelPrototype : IPrototype
|
|
{
|
|
[IdDataField, ViewVariables]
|
|
public string ID { get; private set; } = default!;
|
|
|
|
/// <summary>
|
|
/// Human-readable name for the channel.
|
|
/// </summary>
|
|
[DataField]
|
|
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';
|
|
|
|
/// <summary>
|
|
/// Frequency used by the channel.
|
|
/// </summary>
|
|
[DataField]
|
|
public FixedPoint2 Frequency { get; private set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Color used to display the channel.
|
|
/// </summary>
|
|
[DataField]
|
|
public Color Color { get; private set; } = Color.Lime;
|
|
|
|
/// <summary>
|
|
/// Whether the channel can transmit across different stations without a telecommunications server.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool LongRange;
|
|
}
|