PkmnLibSharp/PkmnLibSharp/Generated/Creaturelib/CreatureSpecies.cs

123 lines
7.0 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 Creaturelib.Generated
2020-05-02 17:54:07 +00:00
{
internal static class CreatureSpecies
{
2020-07-08 11:50:51 +00:00
/// <param name="out">CreatureSpecies * &</param>
2020-05-02 17:54:07 +00:00
/// <param name="id">unsigned short</param>
/// <param name="name">const char *</param>
/// <param name="defaultVariant">SpeciesVariant *</param>
/// <param name="genderRatio">float</param>
/// <param name="growthRate">const char *</param>
/// <param name="captureRate">unsigned char</param>
2020-08-10 17:13:17 +00:00
/// <param name="flags">const char * *</param>
/// <param name="flagsCount">long unsigned int</param>
2020-05-02 17:54:07 +00:00
/// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Construct")]
2020-08-10 17:13:17 +00:00
internal static extern byte Construct(ref IntPtr @out, ushort id, IntPtr name, IntPtr defaultVariant, float genderRatio, IntPtr growthRate, byte captureRate, IntPtr flags, ulong flagsCount);
2020-05-02 17:54:07 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Destruct")]
2020-05-02 17:54:07 +00:00
internal static extern void Destruct(IntPtr p);
/// <param name="p">const CreatureSpecies *</param>
/// <returns>unsigned short</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetId")]
2020-05-02 17:54:07 +00:00
internal static extern ushort GetId(IntPtr p);
/// <param name="p">const CreatureSpecies *</param>
/// <returns>float</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGenderRate")]
2020-05-02 17:54:07 +00:00
internal static extern float GetGenderRate(IntPtr p);
/// <param name="p">const CreatureSpecies *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetCaptureRate")]
2020-05-02 17:54:07 +00:00
internal static extern byte GetCaptureRate(IntPtr p);
/// <param name="p">const CreatureSpecies *</param>
/// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetName")]
2020-05-02 20:58:08 +00:00
internal static extern IntPtr GetName(IntPtr p);
2020-05-02 17:54:07 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGrowthRate")]
2020-05-02 20:58:08 +00:00
internal static extern IntPtr GetGrowthRate(IntPtr p);
2020-05-02 17:54:07 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <param name="name">const char *</param>
/// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariant")]
2020-05-03 09:38:49 +00:00
internal static extern byte HasVariant(IntPtr p, IntPtr name);
2020-05-02 17:54:07 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <param name="hash">unsigned int</param>
/// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariantWithHash")]
2020-05-03 09:38:49 +00:00
internal static extern byte HasVariantWithHash(IntPtr p, uint hash);
2020-05-02 17:54:07 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <param name="name">const char *</param>
2020-07-08 11:50:51 +00:00
/// <param name="out">const SpeciesVariant * &</param>
2020-05-02 17:54:07 +00:00
/// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariant")]
2020-05-03 09:38:49 +00:00
internal static extern byte TryGetVariant(IntPtr p, IntPtr name, ref IntPtr @out);
2020-05-02 17:54:07 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <param name="hash">unsigned int</param>
2020-07-08 11:50:51 +00:00
/// <param name="out">const SpeciesVariant * &</param>
2020-05-02 17:54:07 +00:00
/// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariantWithHash")]
2020-05-03 09:38:49 +00:00
internal static extern byte TryGetVariantWithHash(IntPtr p, uint hash, ref IntPtr @out);
2020-05-02 17:54:07 +00:00
2020-07-08 11:50:51 +00:00
/// <param name="out">const SpeciesVariant * &</param>
2020-05-02 17:54:07 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <param name="name">const char *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariant")]
2020-05-02 20:58:08 +00:00
internal static extern byte GetVariant(ref IntPtr @out, IntPtr p, IntPtr name);
2020-05-02 17:54:07 +00:00
2020-07-18 14:49:11 +00:00
/// <param name="out">const SpeciesVariant * &</param>
2020-05-02 17:54:07 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <param name="hash">unsigned int</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantWithHash")]
2020-07-18 14:49:11 +00:00
internal static extern byte GetVariantWithHash(ref IntPtr @out, IntPtr p, uint hash);
2020-05-02 17:54:07 +00:00
2020-05-04 19:16:42 +00:00
/// <param name="p">CreatureSpecies *</param>
/// <param name="name">const char *</param>
/// <param name="variant">SpeciesVariant *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_SetVariant")]
2020-05-04 19:16:42 +00:00
internal static extern byte SetVariant(IntPtr p, IntPtr name, IntPtr variant);
2020-07-18 14:49:11 +00:00
/// <param name="p">CreatureSpecies *</param>
/// <param name="random">Random *</param>
/// <returns>Gender</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetRandomGender")]
2020-07-18 14:49:11 +00:00
internal static extern Gender GetRandomGender(IntPtr p, IntPtr random);
2020-08-09 09:01:43 +00:00
/// <param name="p">CreatureSpecies *</param>
/// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantsCount")]
internal static extern ulong GetVariantsCount(IntPtr p);
/// <param name="p">CreatureSpecies *</param>
/// <returns>const const SpeciesVariant * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariants")]
internal static extern IntPtr GetVariants(IntPtr p);
2020-08-10 17:13:17 +00:00
/// <param name="p">const CreatureSpecies *</param>
/// <param name="key">const char *</param>
/// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasFlag")]
internal static extern byte HasFlag(IntPtr p, IntPtr key);
2020-05-02 17:54:07 +00:00
}
}