Predict and cleanup RingerComponent (#35907)
* clean up most stuff * move to shared * works * shuffle shit around * oops! access * fixes * todo: everything * SUFFERING * curse you
This commit is contained in:
24
Content.Shared/PDA/Ringer/RingerUplinkComponent.cs
Normal file
24
Content.Shared/PDA/Ringer/RingerUplinkComponent.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.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, NetworkedComponent, Access(typeof(SharedRingerSystem))]
|
||||
public sealed partial class RingerUplinkComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Notes to set ringtone to in order to lock or unlock the uplink.
|
||||
/// Set via GenerateUplinkCodeEvent.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public Note[] Code = new Note[SharedRingerSystem.RingtoneLength];
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show the toggle uplink button in PDA settings.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool Unlocked;
|
||||
}
|
||||
Reference in New Issue
Block a user