2024-04-24 21:31:45 -04:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
|
|
2024-06-04 11:53:24 +00:00
|
|
|
namespace Content.Shared.GameTicking.Components;
|
2024-04-24 21:31:45 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generic component used to track a gamerule that's start has been delayed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, AutoGenerateComponentPause]
|
|
|
|
|
public sealed partial class DelayedStartRuleComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time at which the rule will start properly.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
|
|
|
|
|
public TimeSpan RuleStartTime;
|
|
|
|
|
}
|