init
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user