DelayedStartRuleComponent.cs 563 B

12345678910111213141516
  1. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  2. namespace Content.Shared.GameTicking.Components;
  3. /// <summary>
  4. /// Generic component used to track a gamerule that's start has been delayed.
  5. /// </summary>
  6. [RegisterComponent, AutoGenerateComponentPause]
  7. public sealed partial class DelayedStartRuleComponent : Component
  8. {
  9. /// <summary>
  10. /// The time at which the rule will start properly.
  11. /// </summary>
  12. [DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
  13. public TimeSpan RuleStartTime;
  14. }