Refactor actions to be entities with components (#19900)
This commit is contained in:
19
Content.Shared/Magic/Events/TeleportSpellEvent.cs
Normal file
19
Content.Shared/Magic/Events/TeleportSpellEvent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Content.Shared.Actions;
|
||||
using Robust.Shared.Audio;
|
||||
|
||||
namespace Content.Shared.Magic.Events;
|
||||
|
||||
public sealed partial class TeleportSpellEvent : WorldTargetActionEvent, ISpeakSpell
|
||||
{
|
||||
[DataField("blinkSound")]
|
||||
public SoundSpecifier BlinkSound = new SoundPathSpecifier("/Audio/Magic/blink.ogg");
|
||||
|
||||
[DataField("speech")]
|
||||
public string? Speech { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Volume control for the spell.
|
||||
/// </summary>
|
||||
[DataField("blinkVolume")]
|
||||
public float BlinkVolume = 5f;
|
||||
}
|
||||
Reference in New Issue
Block a user