PkmnLibSharp/PkmnLibSharp/Generated/Pkmnlib/NatureLibrary.cs

48 lines
2.3 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>
/// <param name="out">const Nature *&</param>
/// <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>
/// <returns>const char *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetRandomNatureName")]
2020-05-02 20:58:08 +00:00
internal static extern IntPtr GetRandomNatureName(IntPtr p, IntPtr rand);
2020-05-02 17:54:07 +00:00
/// <param name="p">NatureLibrary *</param>
/// <param name="nature">const Nature *</param>
/// <param name="out">const char *&</param>
/// <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
}
}