25 lines
705 B
C#
25 lines
705 B
C#
using System.Numerics;
|
|
|
|
namespace Content.Server.Traits.Assorted;
|
|
|
|
/// <summary>
|
|
/// This is used for the narcolepsy trait.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(NarcolepsySystem))]
|
|
public sealed partial class NarcolepsyComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The random time between incidents, (min, max).
|
|
/// </summary>
|
|
[DataField("timeBetweenIncidents", required: true)]
|
|
public Vector2 TimeBetweenIncidents { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The duration of incidents, (min, max).
|
|
/// </summary>
|
|
[DataField("durationOfIncident", required: true)]
|
|
public Vector2 DurationOfIncident { get; private set; }
|
|
|
|
public float NextIncidentTime;
|
|
}
|