PkmnLibRSharp/PkmnLibRSharp/FFI/StaticData/EffectParameter.cs

37 lines
1.7 KiB
C#

using System;
using System.Runtime.InteropServices;
using PkmnLibSharp.Utils;
namespace PkmnLibSharp.FFI.StaticData
{
internal static class EffectParameter
{
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern FFIHandleValue effect_parameter_new_bool(byte value);
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern FFIHandleValue effect_parameter_new_int(long value);
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern FFIHandleValue effect_parameter_new_float(float value);
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
internal static extern NativeResult<FFIHandleValue> effect_parameter_new_string(IntPtr value);
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern byte effect_parameter_get_type(FFIHandleValue value);
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern NativeResult<byte> effect_parameter_get_as_bool(FFIHandleValue value);
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern NativeResult<long> effect_parameter_get_as_int(FFIHandleValue value);
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern NativeResult<float> effect_parameter_get_as_float(FFIHandleValue value);
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern NativeResult<IntPtr> effect_parameter_get_as_string(FFIHandleValue value);
}
}