2023-01-03 15:53:58 +00:00
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
namespace PkmnLibSharp.FFI.DynamicData.Libraries
|
|
|
|
{
|
|
|
|
internal static class DynamicLibrary
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Instantiates a new DynamicLibrary with given parameters.
|
|
|
|
/// </summary>
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
|
|
internal static extern IdentifiablePointer dynamic_library_new(IntPtr staticData, IntPtr statCalculator,
|
|
|
|
IntPtr damageLibrary, IntPtr miscLibrary, IntPtr scriptResolver);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Drops a dynamic library.
|
|
|
|
/// </summary>
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
|
|
internal static extern void dynamic_library_drop(IntPtr dynamicLibrary);
|
|
|
|
|
2023-04-15 07:58:21 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The static data is the immutable storage data for this library.
|
|
|
|
/// </summary>
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
|
|
internal static extern IdentifiablePointer dynamic_library_get_static_data(IntPtr dynamicLibrary);
|
|
|
|
|
2023-01-03 15:53:58 +00:00
|
|
|
}
|
|
|
|
}
|