2022-09-21 18:19:45 +00:00
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
2023-04-15 07:58:21 +00:00
|
|
|
using PkmnLibSharp.StaticData;
|
2022-09-21 18:19:45 +00:00
|
|
|
|
|
|
|
namespace PkmnLibSharp.FFI.StaticData
|
|
|
|
{
|
|
|
|
internal static class Species
|
|
|
|
{
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
2022-10-08 11:42:30 +00:00
|
|
|
internal static extern IdentifiablePointer species_new(ushort id, IntPtr name, float genderRate, IntPtr growthRate,
|
2022-09-21 18:19:45 +00:00
|
|
|
byte captureRate, IntPtr defaultForm, IntPtr flags, ulong flagsLength);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
internal static extern void species_drop(IntPtr ptr);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
internal static extern ushort species_id(IntPtr ptr);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
internal static extern IntPtr species_name(IntPtr ptr);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
internal static extern float species_gender_rate(IntPtr ptr);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
internal static extern IntPtr species_growth_rate(IntPtr ptr);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
internal static extern byte species_capture_rate(IntPtr ptr);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
internal static extern IntPtr species_add_form(IntPtr ptr, IntPtr name, IntPtr form);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
2022-10-08 11:42:30 +00:00
|
|
|
internal static extern IdentifiablePointer species_get_form(IntPtr ptr, IntPtr name);
|
2022-09-21 18:19:45 +00:00
|
|
|
|
2023-04-15 07:58:21 +00:00
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
internal static extern Gender species_get_random_gender(IntPtr ptr, ulong seed);
|
|
|
|
|
2022-09-21 18:19:45 +00:00
|
|
|
}
|
|
|
|
}
|