2024-08-01 11:52:27 +03:00
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
using Robust.Shared.Map;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared._CP14.MagicSpell.Spells;
|
|
|
|
|
|
|
|
|
|
[ImplicitDataDefinitionForInheritors]
|
|
|
|
|
[MeansImplicitUse]
|
|
|
|
|
public abstract partial class CP14SpellEffect
|
|
|
|
|
{
|
|
|
|
|
public abstract void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public record class CP14SpellEffectBaseArgs
|
|
|
|
|
{
|
|
|
|
|
public EntityUid? User;
|
2024-11-20 00:23:44 +03:00
|
|
|
public EntityUid? Used;
|
2024-08-01 11:52:27 +03:00
|
|
|
public EntityUid? Target;
|
|
|
|
|
public EntityCoordinates? Position;
|
|
|
|
|
|
2024-11-20 00:23:44 +03:00
|
|
|
public CP14SpellEffectBaseArgs(EntityUid? user, EntityUid? used, EntityUid? target, EntityCoordinates? position)
|
2024-08-01 11:52:27 +03:00
|
|
|
{
|
|
|
|
|
User = user;
|
2024-11-20 00:23:44 +03:00
|
|
|
Used = used;
|
2024-08-01 11:52:27 +03:00
|
|
|
Target = target;
|
|
|
|
|
Position = position;
|
|
|
|
|
}
|
|
|
|
|
}
|