22 lines
604 B
C#
22 lines
604 B
C#
using JetBrains.Annotations;
|
|
|
|
namespace PkmnLibSharp.Utils
|
|
{
|
|
/// <summary>
|
|
/// A basic type that holds a handle to a native object.
|
|
/// </summary>
|
|
[UsedImplicitly(ImplicitUseTargetFlags.Default | ImplicitUseTargetFlags.WithInheritors)]
|
|
public abstract class HandleType
|
|
{
|
|
/// <inheritdoc cref="HandleType"/>
|
|
protected internal HandleType(FFIHandle handle)
|
|
{
|
|
Handle = handle;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The internal handle to the native object.
|
|
/// </summary>
|
|
protected internal FFIHandle Handle { get; }
|
|
}
|
|
} |