Files
crystall-punk-14/Content.Server/PDA/Ringer/RingerComponent.cs
TheDarkElites 8c47d6103f Add PDA Ringtones (#5842)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2022-02-08 20:39:23 +11:00

28 lines
792 B
C#

using Content.Shared.PDA;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.PDA.Ringer
{
[RegisterComponent, ComponentProtoName("Ringer")]
public sealed class RingerComponent : Component
{
[ViewVariables]
[DataField("ringtone")]
public Note[] Ringtone = new Note[SharedRingerSystem.RingtoneLength];
[DataField("timeElapsed")]
public float TimeElapsed = 0;
/// <summary>
/// Keeps track of how many notes have elapsed if the ringer component is playing.
/// </summary>
[DataField("noteCount")]
public int NoteCount = 0;
[DataField("isPlaying")]
public bool IsPlaying = false;
}
}