27 lines
930 B
C#
27 lines
930 B
C#
using RPGCore.Core.Objects;
|
|
|
|
namespace RPGCore.ObjectModules.EventObjectModule
|
|
{
|
|
/// <summary>
|
|
/// Extend this to create new type of preventable event for <<typeparamref name="T"/>> 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()
|
|
{
|
|
}
|
|
}
|
|
} |