Files
tbd-station-14/Content.Server/Magic/Events/KnockSpellEvent.cs
2023-04-26 14:04:44 +10:00

27 lines
660 B
C#

using Content.Shared.Actions;
using Robust.Shared.Audio;
namespace Content.Server.Magic.Events;
public sealed class KnockSpellEvent : InstantActionEvent, ISpeakSpell
{
/// <summary>
/// The range this spell opens doors in
/// 4f is the default
/// </summary>
[DataField("range")]
public float Range = 4f;
[DataField("knockSound")]
public SoundSpecifier KnockSound = new SoundPathSpecifier("/Audio/Magic/knock.ogg");
/// <summary>
/// Volume control for the spell.
/// </summary>
[DataField("knockVolume")]
public float KnockVolume = 5f;
[DataField("speech")]
public string? Speech { get; }
}