62 lines
3.1 KiB
C#
62 lines
3.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using PkmnLibSharp.StaticData;
|
|
using PkmnLibSharp.Utils;
|
|
|
|
namespace PkmnLibSharp.FFI.StaticData
|
|
{
|
|
internal static class MoveData
|
|
{
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern NativeResult<FFIHandleValue> move_data_new(IntPtr name, TypeIdentifier moveType, MoveCategory category,
|
|
byte basePower, byte accuracy, byte baseUsages, MoveTarget target, sbyte priority, FFIHandleValue secondaryEffect,
|
|
IntPtr flags, ulong flagsLength);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern NativeResult<IntPtr> move_data_name(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern TypeIdentifier move_data_move_type(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern MoveCategory move_data_category(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern byte move_data_base_power(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern byte move_data_accuracy(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern byte move_data_base_usages(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern MoveTarget move_data_target(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern sbyte move_data_priority(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern FFIHandleValue move_data_secondary_effect(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern byte move_data_has_flag(FFIHandleValue p, IntPtr flag);
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern FFIHandleValue secondary_effect_new(float chance, IntPtr effectName, IntPtr parameters,
|
|
ulong parametersLength);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern float secondary_effect_chance(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern NativeResult<IntPtr> secondary_effect_effect_name(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern ulong secondary_effect_parameter_length(FFIHandleValue p);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern FFIHandleValue secondary_effect_parameter_get(FFIHandleValue p, ulong index);
|
|
}
|
|
} |