2022-07-29 14:13:12 +12:00
|
|
|
using Content.Shared.Actions;
|
|
|
|
|
using Robust.Shared.Audio;
|
2022-06-23 03:24:50 -07:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Magic.Events;
|
|
|
|
|
|
2023-04-26 16:04:44 +12:00
|
|
|
public sealed class ProjectileSpellEvent : WorldTargetActionEvent, ISpeakSpell
|
2022-06-23 03:24:50 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// What entity should be spawned.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("prototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
public string Prototype = default!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the targeted spawn positions; may lead to multiple entities being spawned.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("posData")] public MagicSpawnData Pos = new TargetCasterPos();
|
2023-04-26 16:04:44 +12:00
|
|
|
|
|
|
|
|
[DataField("speech")]
|
|
|
|
|
public string? Speech { get; }
|
2022-06-23 03:24:50 -07:00
|
|
|
}
|