Simple Magic Spellbook System (#7823)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
29
Content.Server/Magic/Events/WorldSpawnSpellEvent.cs
Normal file
29
Content.Server/Magic/Events/WorldSpawnSpellEvent.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Content.Shared.Actions;
|
||||
using Content.Shared.Storage;
|
||||
|
||||
namespace Content.Server.Magic.Events;
|
||||
|
||||
public sealed class WorldSpawnSpellEvent : WorldTargetActionEvent
|
||||
{
|
||||
// TODO:This class needs combining with InstantSpawnSpellEvent
|
||||
|
||||
/// <summary>
|
||||
/// The list of prototypes this spell will spawn
|
||||
/// </summary>
|
||||
[DataField("prototypes")]
|
||||
public List<EntitySpawnEntry> Contents = new();
|
||||
|
||||
// TODO: This offset is liable for deprecation.
|
||||
/// <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("offset")]
|
||||
public Vector2 Offset;
|
||||
|
||||
/// <summary>
|
||||
/// Lifetime to set for the entities to self delete
|
||||
/// </summary>
|
||||
[DataField("lifetime")] public float? Lifetime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user