2022-05-29 02:29:10 -04:00
|
|
|
|
using Content.Shared.Actions;
|
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
|
2023-09-08 18:16:05 -07:00
|
|
|
|
namespace Content.Shared.Magic.Events;
|
2022-05-29 02:29:10 -04:00
|
|
|
|
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class InstantSpawnSpellEvent : InstantActionEvent, ISpeakSpell
|
2022-05-29 02:29:10 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// What entity should be spawned.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("prototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
|
public string Prototype = default!;
|
|
|
|
|
|
|
2022-11-16 20:22:11 +01:00
|
|
|
|
[DataField("preventCollide")]
|
2022-05-29 02:29:10 -04:00
|
|
|
|
public bool PreventCollideWithCaster = true;
|
|
|
|
|
|
|
2023-04-26 16:04:44 +12:00
|
|
|
|
[DataField("speech")]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public string? Speech { get; private set; }
|
2023-04-26 16:04:44 +12:00
|
|
|
|
|
2022-05-29 02:29:10 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the targeted spawn positons; may lead to multiple entities being spawned.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("posData")] public MagicSpawnData Pos = new TargetCasterPos();
|
|
|
|
|
|
}
|