RingerUplinkComponent.cs 765 B

123456789101112131415161718192021222324
  1. using Content.Shared.PDA;
  2. namespace Content.Server.PDA.Ringer;
  3. /// <summary>
  4. /// Opens the store ui when the ringstone is set to the secret code.
  5. /// Traitors are told the code when greeted.
  6. /// </summary>
  7. [RegisterComponent, Access(typeof(RingerSystem))]
  8. public sealed partial class RingerUplinkComponent : Component
  9. {
  10. /// <summary>
  11. /// Notes to set ringtone to in order to lock or unlock the uplink.
  12. /// Automatically initialized to random notes.
  13. /// </summary>
  14. [DataField("code")]
  15. public Note[] Code = new Note[RingerSystem.RingtoneLength];
  16. /// <summary>
  17. /// Whether to show the toggle uplink button in pda settings.
  18. /// </summary>
  19. [DataField("unlocked"), ViewVariables(VVAccess.ReadWrite)]
  20. public bool Unlocked;
  21. }