using Content.Shared.PDA; namespace Content.Server.PDA.Ringer { [RegisterComponent] public sealed class RingerComponent : Component { [ViewVariables] [DataField("ringtone")] public Note[] Ringtone = new Note[SharedRingerSystem.RingtoneLength]; [DataField("timeElapsed")] public float TimeElapsed = 0; /// /// Keeps track of how many notes have elapsed if the ringer component is playing. /// [DataField("noteCount")] public int NoteCount = 0; [DataField("isPlaying")] public bool IsPlaying = false; /// /// How far the sound projects in metres. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("range")] public float Range = 3f; [ViewVariables(VVAccess.ReadWrite)] [DataField("volume")] public float Volume = -4f; } }