23 lines
971 B
C#
23 lines
971 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using PkmnLibSharp.Utils;
|
|
|
|
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 FFIHandleValue dynamic_library_new(FFIHandleValue staticData, FFIHandleValue statCalculator,
|
|
FFIHandleValue damageLibrary, FFIHandleValue miscLibrary, FFIHandleValue scriptResolver);
|
|
|
|
/// <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 FFIHandleValue dynamic_library_get_static_data(FFIHandleValue dynamicLibrary);
|
|
|
|
}
|
|
} |