using Content.Shared.PDA;
namespace Content.Server.PDA.Ringer;
///
/// Opens the store ui when the ringstone is set to the secret code.
/// Traitors are told the code when greeted.
///
[RegisterComponent, Access(typeof(RingerSystem))]
public sealed partial class RingerUplinkComponent : Component
{
///
/// Notes to set ringtone to in order to lock or unlock the uplink.
/// Automatically initialized to random notes.
///
[DataField("code")]
public Note[] Code = new Note[RingerSystem.RingtoneLength];
///
/// Whether to show the toggle uplink button in pda settings.
///
[DataField("unlocked"), ViewVariables(VVAccess.ReadWrite)]
public bool Unlocked;
}