Files
crystall-punk-14/Content.Shared/Anomaly/Components/AnomalyPulsingComponent.cs

24 lines
800 B
C#
Raw Permalink Normal View History

2023-01-17 00:05:20 -05:00
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Shared.Anomaly.Components;
/// <summary>
/// This component tracks anomalies that are currently pulsing
/// </summary>
[RegisterComponent, Access(typeof(SharedAnomalySystem)), AutoGenerateComponentPause]
public sealed partial class AnomalyPulsingComponent : Component
2023-01-17 00:05:20 -05:00
{
/// <summary>
/// The time at which the pulse will be over.
/// </summary>
[DataField("endTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
[AutoPausedField]
public TimeSpan EndTime;
2023-01-17 00:05:20 -05:00
/// <summary>
/// How long the pulse visual lasts
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public TimeSpan PulseDuration = TimeSpan.FromSeconds(5);
}