Files
2026-04-25 23:37:10 +02:00

27 lines
930 B
C#

using RPGCore.Core.Objects;
namespace RPGCore.ObjectModules.EventObjectModule
{
/// <summary>
/// Extend this to create new type of preventable event for &lt;<typeparamref name="T"/>&gt; type of object.<br/><br/>
/// This event can be called twice by <see cref="EventModule"/>:
/// <ul>
/// <li><see cref="EventModule.InvokeBefore{T}"/></li>
/// <li><see cref="EventModule.InvokeAfter{T}"/> - if not prevented in before</li>
/// </ul>
/// </summary>
/// <typeparam name="T"><see cref="BaseObject"/> (or any of its children) that this event can be attached to.</typeparam>
/// <seealso cref="BaseEvent{T}"/>
public abstract class BasePreventableEvent<T> : BasePreventableEvent where T : BaseObject
{
}
public abstract class BasePreventableEvent
{
public bool isPrevented;
protected internal BasePreventableEvent()
{
}
}
}