PkmnLibSharp/PkmnLibSharp/Generated/Pkmnlib/NatureLibrary.cs

61 lines
3.1 KiB
C#
Raw Normal View History

2020-05-03 09:38:49 +00:00
// AUTOMATICALLY GENERATED, DO NOT EDIT
2020-05-02 17:54:07 +00:00
using System;
using System.Runtime.InteropServices;
namespace Pkmnlib.Generated
{
internal static class NatureLibrary
{
/// <param name="initialCapacity">long unsigned int</param>
/// <returns>NatureLibrary *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_Construct")]
internal static extern IntPtr Construct(ulong initialCapacity);
/// <param name="p">const NatureLibrary *</param>
/// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="p">NatureLibrary *</param>
/// <param name="name">const char *</param>
/// <param name="nature">const Nature *</param>
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_LoadNature")]
2020-05-02 20:58:08 +00:00
internal static extern byte LoadNature(IntPtr p, IntPtr name, IntPtr nature);
2020-05-02 17:54:07 +00:00
/// <param name="p">NatureLibrary *</param>
/// <param name="name">const char *</param>
2020-07-08 11:50:51 +00:00
/// <param name="out">const Nature * &</param>
2020-05-02 17:54:07 +00:00
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureByName")]
2020-05-02 20:58:08 +00:00
internal static extern byte GetNatureByName(IntPtr p, IntPtr name, ref IntPtr @out);
2020-05-02 17:54:07 +00:00
/// <param name="p">NatureLibrary *</param>
/// <param name="rand">Random *</param>
2020-07-19 10:33:22 +00:00
/// <param name="out">const char * &</param>
/// <returns>unsigned char</returns>
2020-05-02 17:54:07 +00:00
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetRandomNatureName")]
2020-07-19 10:33:22 +00:00
internal static extern byte GetRandomNatureName(IntPtr p, IntPtr rand, ref IntPtr @out);
2020-05-02 17:54:07 +00:00
/// <param name="p">NatureLibrary *</param>
/// <param name="nature">const Nature *</param>
2020-07-08 11:50:51 +00:00
/// <param name="out">const char * &</param>
2020-05-02 17:54:07 +00:00
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureName")]
2020-05-02 20:58:08 +00:00
internal static extern byte GetNatureName(IntPtr p, IntPtr nature, ref IntPtr @out);
2020-05-02 17:54:07 +00:00
2020-08-09 09:39:41 +00:00
/// <param name="p">const NatureLibrary *</param>
/// <returns>long unsigned int</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureCount")]
internal static extern ulong GetNatureCount(IntPtr p);
/// <param name="p">NatureLibrary *</param>
/// <param name="index">long unsigned int</param>
/// <param name="out">const char * &</param>
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureByIndex")]
internal static extern byte GetNatureByIndex(IntPtr p, ulong index, ref IntPtr @out);
2020-05-02 17:54:07 +00:00
}
}