Files
wwdpublic/Content.Shared/Magic/Events/WorldSpawnSpellEvent.cs
Spatison 2a10c02eb5 No spead merge (#475)
* Revert "[GoobPort] WIZ REAL (#465)"

This reverts commit 091a8ff433.

* fix local
2025-04-26 10:50:32 +03:00

38 lines
1.0 KiB
C#

using System.Numerics;
using Content.Shared.Actions;
using Content.Shared.Chat;
using Content.Shared.Storage;
namespace Content.Shared.Magic.Events;
// TODO: This class needs combining with InstantSpawnSpellEvent
public sealed partial class WorldSpawnSpellEvent : WorldTargetActionEvent, ISpeakSpell
{
/// <summary>
/// The list of prototypes this spell will spawn
/// </summary>
[DataField]
public List<EntitySpawnEntry> Prototypes = new();
// TODO: This offset is liable for deprecation.
// TODO: Target tile via code instead?
/// <summary>
/// The offset the prototypes will spawn in on relative to the one prior.
/// Set to 0,0 to have them spawn on the same tile.
/// </summary>
[DataField]
public Vector2 Offset;
/// <summary>
/// Lifetime to set for the entities to self delete
/// </summary>
[DataField]
public float? Lifetime;
[DataField]
public string? Speech { get; private set; }
public InGameICChatType ChatType { get; } = InGameICChatType.Speak;
}