2024-08-01 11:52:27 +03:00
|
|
|
namespace Content.Shared._CP14.MagicSpell.Events;
|
2024-07-28 17:26:47 +03:00
|
|
|
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public sealed class CP14BeforeCastMagicEffectEvent : CancellableEntityEventArgs
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The Performer of the event, to check if they meet the requirements.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EntityUid Performer { get; init; }
|
|
|
|
|
|
|
|
|
|
public string Reason = string.Empty;
|
|
|
|
|
|
|
|
|
|
public void PushReason(string reason)
|
|
|
|
|
{
|
|
|
|
|
Reason += $"{reason}\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public sealed class CP14AfterCastMagicEffectEvent : EntityEventArgs
|
|
|
|
|
{
|
|
|
|
|
public EntityUid? Performer { get; init; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// is invoked if all conditions are met and the spell has begun to be cast
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public sealed class CP14StartCastMagicEffectEvent : EntityEventArgs
|
|
|
|
|
{
|
|
|
|
|
public EntityUid Performer { get; init; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// is invoked on the spell itself when the spell process has been completed or interrupted
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ByRefEvent]
|
2024-08-02 13:51:54 +03:00
|
|
|
public sealed class CP14EndCastMagicEffectEvent : EntityEventArgs
|
2024-07-28 17:26:47 +03:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|