Anomalies (#13371)
This commit is contained in:
22
Content.Shared/Anomaly/Components/AnomalyPulsingComponent.cs
Normal file
22
Content.Shared/Anomaly/Components/AnomalyPulsingComponent.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
|
||||
namespace Content.Shared.Anomaly.Components;
|
||||
|
||||
/// <summary>
|
||||
/// This component tracks anomalies that are currently pulsing
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class AnomalyPulsingComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The time at which the pulse will be over.
|
||||
/// </summary>
|
||||
[DataField("endTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
||||
public TimeSpan EndTime = TimeSpan.MaxValue;
|
||||
|
||||
/// <summary>
|
||||
/// How long the pulse visual lasts
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public TimeSpan PulseDuration = TimeSpan.FromSeconds(5);
|
||||
}
|
||||
Reference in New Issue
Block a user