23 lines
791 B
C#
23 lines
791 B
C#
using Content.Shared.Actions;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.Magic.Events;
|
|
|
|
public sealed partial class ProjectileSpellEvent : WorldTargetActionEvent, ISpeakSpell
|
|
{
|
|
/// <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();
|
|
|
|
[DataField("speech")]
|
|
public string? Speech { get; private set; }
|
|
}
|