NarcolepsyComponent.cs 705 B

123456789101112131415161718192021222324
  1. using System.Numerics;
  2. namespace Content.Server.Traits.Assorted;
  3. /// <summary>
  4. /// This is used for the narcolepsy trait.
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(NarcolepsySystem))]
  7. public sealed partial class NarcolepsyComponent : Component
  8. {
  9. /// <summary>
  10. /// The random time between incidents, (min, max).
  11. /// </summary>
  12. [DataField("timeBetweenIncidents", required: true)]
  13. public Vector2 TimeBetweenIncidents { get; private set; }
  14. /// <summary>
  15. /// The duration of incidents, (min, max).
  16. /// </summary>
  17. [DataField("durationOfIncident", required: true)]
  18. public Vector2 DurationOfIncident { get; private set; }
  19. public float NextIncidentTime;
  20. }