using System.Threading;
namespace Content.Server.GameTicking.Rules.Components;
///
/// Configures the game rule.
///
[RegisterComponent]
public sealed class MaxTimeRestartRuleComponent : Component
{
///
/// The max amount of time the round can last
///
[DataField("roundMaxTime", required: true)]
public TimeSpan RoundMaxTime = TimeSpan.FromMinutes(5);
///
/// The amount of time between the round completing and the lobby appearing.
///
[DataField("roundEndDelay", required: true)]
public TimeSpan RoundEndDelay = TimeSpan.FromSeconds(10);
public CancellationTokenSource TimerCancel = new();
}