This commit is contained in:
2026-04-25 23:37:10 +02:00
commit 19d6bd934a
476 changed files with 9198 additions and 0 deletions
@@ -0,0 +1,27 @@
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()
{
}
}
}