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,30 @@
using System;
using RPGCore.Core.Objects;
namespace RPGCore.ObjectModules.EventObjectModule
{
/// <summary>
/// Extend this to create new type of data for &lt;<typeparamref name="T"/>&gt; type of object.<br/>
/// To retrieve this data from &lt;<typeparamref name="T"/>&gt; object use <see cref="DataModule.Get{T}"/>.
/// </summary>
/// <typeparam name="T"><see cref="BaseObject"/> (or any of its children) that this event can be attached to.</typeparam>
[Serializable]
public abstract class BaseData<T> : BaseData where T : BaseObject
{
public new T parent => (T)base.parent;
}
/// <summary>
/// <b>DO NOT EXTEND THIS</b>, use <see cref="BaseData{T}"/> instead!
/// </summary>
[Serializable]
public abstract class BaseData
{
internal BaseObject parent;
private protected BaseData()
{
}
}
}