Anomaly Vessel visuals + audio (#13927)

This commit is contained in:
Nemanja
2023-02-05 14:52:30 -05:00
committed by GitHub
parent df160c0712
commit 440cd377ca
14 changed files with 137 additions and 7 deletions

View File

@@ -1,4 +1,6 @@
using Content.Shared.Construction.Prototypes;
using Robust.Shared.Audio;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Anomaly.Components;
@@ -37,4 +39,28 @@ public sealed class AnomalyVesselComponent : Component
/// </summary>
[DataField("partRatingPointModifier")]
public float PartRatingPointModifier = 1.5f;
/// <summary>
/// The maximum time between each beep
/// </summary>
[DataField("maxBeepInterval")]
public TimeSpan MaxBeepInterval = TimeSpan.FromSeconds(2f);
/// <summary>
/// The minimum time between each beep
/// </summary>
[DataField("minBeepInterval")]
public TimeSpan MinBeepInterval = TimeSpan.FromSeconds(0.75f);
/// <summary>
/// When the next beep sound will play
/// </summary>
[DataField("nextBeep", customTypeSerializer:typeof(TimeOffsetSerializer))]
public TimeSpan NextBeep = TimeSpan.Zero;
/// <summary>
/// The sound that is played repeatedly when the anomaly is destabilizing/decaying
/// </summary>
[DataField("beepSound")]
public SoundSpecifier BeepSound = new SoundPathSpecifier("/Audio/Machines/vessel_warning.ogg");
}