Gamerule Entities (#15513)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System.Threading;
|
||||
|
||||
namespace Content.Server.GameTicking.Rules.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Configures the <see cref="InactivityTimeRestartRuleSystem"/> game rule.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class MaxTimeRestartRuleComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The max amount of time the round can last
|
||||
/// </summary>
|
||||
[DataField("roundMaxTime", required: true)]
|
||||
public TimeSpan RoundMaxTime = TimeSpan.FromMinutes(5);
|
||||
|
||||
/// <summary>
|
||||
/// The amount of time between the round completing and the lobby appearing.
|
||||
/// </summary>
|
||||
[DataField("roundEndDelay", required: true)]
|
||||
public TimeSpan RoundEndDelay = TimeSpan.FromSeconds(10);
|
||||
|
||||
public CancellationTokenSource TimerCancel = new();
|
||||
}
|
||||
Reference in New Issue
Block a user