using Content.Server.Explosion.EntitySystems; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.Explosion.Components; /// /// Constantly triggers after being added to an entity. /// [RegisterComponent, Access(typeof(TriggerSystem))] [AutoGenerateComponentPause] public sealed partial class RepeatingTriggerComponent : Component { /// /// How long to wait between triggers. /// The first trigger starts this long after the component is added. /// [DataField] public TimeSpan Delay = TimeSpan.FromSeconds(1); /// /// When the next trigger will be. /// [DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField] public TimeSpan NextTrigger; }