2023-04-23 21:00:42 +00:00
|
|
|
using Content.Shared.PDA;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.PDA.Ringer;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Opens the store ui when the ringstone is set to the secret code.
|
|
|
|
|
/// Traitors are told the code when greeted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, Access(typeof(RingerSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class RingerUplinkComponent : Component
|
2023-04-23 21:00:42 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-05-01 06:30:08 +00:00
|
|
|
/// Notes to set ringtone to in order to lock or unlock the uplink.
|
2023-04-23 21:00:42 +00:00
|
|
|
/// Automatically initialized to random notes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("code")]
|
|
|
|
|
public Note[] Code = new Note[RingerSystem.RingtoneLength];
|
2023-05-01 06:30:08 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether to show the toggle uplink button in pda settings.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("unlocked"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool Unlocked;
|
2023-04-23 21:00:42 +00:00
|
|
|
}
|