2023-07-08 14:08:32 +10:00
|
|
|
|
using System.Numerics;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Traits.Assorted;
|
2022-09-29 18:23:12 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is used for the narcolepsy trait.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent, Access(typeof(NarcolepsySystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class NarcolepsyComponent : Component
|
2022-09-29 18:23:12 -05:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The random time between incidents, (min, max).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("timeBetweenIncidents", required: true)]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public Vector2 TimeBetweenIncidents { get; private set; }
|
2022-09-29 18:23:12 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The duration of incidents, (min, max).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("durationOfIncident", required: true)]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public Vector2 DurationOfIncident { get; private set; }
|
2022-09-29 18:23:12 -05:00
|
|
|
|
|
|
|
|
|
|
public float NextIncidentTime;
|
|
|
|
|
|
}
|