using Content.Shared.Random;
using Robust.Shared.Prototypes;
namespace Content.Server.StationEvents.Components;
/// <summary>
/// This is used for running meteor swarm events at regular intervals.
/// </summary>
[RegisterComponent, Access(typeof(MeteorSchedulerSystem)), AutoGenerateComponentPause]
public sealed partial class MeteorSchedulerComponent : Component
{
/// The weights for which swarms will be selected.
[DataField]
public ProtoId<WeightedRandomEntityPrototype> Config = "DefaultConfig";
/// The time at which the next swarm occurs.
[DataField, AutoPausedField]
public TimeSpan NextSwarmTime = TimeSpan.Zero;
/// The minimum time between swarms
public TimeSpan MinSwarmDelay = TimeSpan.FromMinutes(20.0f);
/// The maximum time between swarms
public TimeSpan MaxSwarmDelay = TimeSpan.FromMinutes(25.0f);
}