AnomalyPulsingComponent.cs 800 B

1234567891011121314151617181920212223
  1. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  2. namespace Content.Shared.Anomaly.Components;
  3. /// <summary>
  4. /// This component tracks anomalies that are currently pulsing
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(SharedAnomalySystem)), AutoGenerateComponentPause]
  7. public sealed partial class AnomalyPulsingComponent : Component
  8. {
  9. /// <summary>
  10. /// The time at which the pulse will be over.
  11. /// </summary>
  12. [DataField("endTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
  13. [AutoPausedField]
  14. public TimeSpan EndTime;
  15. /// <summary>
  16. /// How long the pulse visual lasts
  17. /// </summary>
  18. [ViewVariables(VVAccess.ReadWrite)]
  19. public TimeSpan PulseDuration = TimeSpan.FromSeconds(5);
  20. }