Projectile spells + fireball spell (#9058)

* Projectile spells + fireball spell

* say it with some gumption
This commit is contained in:
Kara
2022-06-23 03:24:50 -07:00
committed by GitHub
parent d3233d90af
commit cc755a2051
29 changed files with 231 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
using Content.Shared.Actions;
using Content.Shared.Sound;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Magic.Events;
public sealed class ProjectileSpellEvent : WorldTargetActionEvent
{
/// <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();
}