Files
TheVVaS-Assets/RPGCore/Runtime/ObjectModules/EventObjectModule/BaseEvent.cs
T
2026-04-25 23:37:10 +02:00

24 lines
813 B
C#

using RPGCore.Core.Objects;
namespace RPGCore.ObjectModules.EventObjectModule
{
/// <summary>
/// Extend this to create new type of event for &lt;<typeparamref name="T"/>&gt; type of object.<br/><br/>
/// This event is called once by <see cref="EventModule"/>.<see cref="EventModule.Invoke{T}"/>:
/// </summary>
/// <typeparam name="T"><see cref="BaseObject"/> (or any of its children) that this event can be attached to.</typeparam>
/// <seealso cref="BasePreventableEvent{T}"/>
public abstract class BaseEvent<T> : BaseEvent where T : BaseObject
{
}
/// <summary>
/// <b>DO NOT EXTEND THIS</b>, use <see cref="BaseEvent{T}"/> instead!
/// </summary>
public abstract class BaseEvent
{
protected internal BaseEvent()
{
}
}
}