2022-02-08 04:39:23 -05:00
|
|
|
using Content.Shared.PDA;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.PDA.Ringer
|
|
|
|
|
{
|
2022-02-08 22:15:06 +11:00
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class RingerComponent : Component
|
2022-02-08 04:39:23 -05:00
|
|
|
{
|
|
|
|
|
[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;
|
|
|
|
|
|
2022-02-08 22:15:06 +11:00
|
|
|
/// <summary>
|
|
|
|
|
/// How far the sound projects in metres.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("range")]
|
2023-07-27 22:25:55 +02:00
|
|
|
public float Range = 3f;
|
2022-02-08 22:15:06 +11:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("volume")]
|
|
|
|
|
public float Volume = -4f;
|
2022-02-08 04:39:23 -05:00
|
|
|
}
|
2022-04-04 22:06:31 -07:00
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ActiveRingerComponent : Component
|
2023-06-07 07:22:19 -07:00
|
|
|
{
|
|
|
|
|
}
|
2022-02-08 04:39:23 -05:00
|
|
|
}
|