using Robust.Shared.GameStates; namespace Content.Shared._NF.Anomaly; /// /// This is used for tracking anomalies which have ended up off grid, to periodically check whether they should be timed out. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState, AutoGenerateComponentPause] public sealed partial class AnomalyLinkExpiryComponent : Component { /// /// The time at which the link should check if it should be broken. /// [DataField, AutoNetworkedField, AutoPausedField] public TimeSpan EndTime; /// /// How often in seconds the component checks to see if the link should expire. /// If the EntityQuery seems a bit unperformant this can be increased. /// [DataField] public TimeSpan CheckFrequency = TimeSpan.FromSeconds(10); /// /// How far away the vessel is allowed to be from the anomaly its linked to in metres if they don't share a grid /// [DataField] public float MaxDistance = 50; }