27 lines
925 B
C#
27 lines
925 B
C#
using Content.Server.StationEvents.Events;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.StationEvents.Components;
|
|
|
|
[RegisterComponent, Access(typeof(MassHallucinationsRule))]
|
|
public sealed partial class MassHallucinationsRuleComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The maximum time between incidents in seconds
|
|
/// </summary>
|
|
[DataField("maxTimeBetweenIncidents", required: true), ViewVariables(VVAccess.ReadWrite)]
|
|
public float MaxTimeBetweenIncidents;
|
|
|
|
/// <summary>
|
|
/// The minimum time between incidents in seconds
|
|
/// </summary>
|
|
[DataField("minTimeBetweenIncidents", required: true), ViewVariables(VVAccess.ReadWrite)]
|
|
public float MinTimeBetweenIncidents;
|
|
|
|
[DataField("maxSoundDistance", required: true), ViewVariables(VVAccess.ReadWrite)]
|
|
public float MaxSoundDistance;
|
|
|
|
[DataField("sounds", required: true)]
|
|
public SoundSpecifier Sounds = default!;
|
|
}
|