2022-10-01 13:39:33 +00:00
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
using PkmnLibSharp.StaticData;
|
|
|
|
|
|
|
|
namespace PkmnLibSharp.FFI.StaticData.Libraries
|
|
|
|
{
|
|
|
|
internal static class LibrarySettings
|
|
|
|
{
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
2023-04-15 07:58:21 +00:00
|
|
|
internal static extern IdentifiablePointer library_settings_new(LevelInt maxLevel, uint shinyRate);
|
2022-10-01 13:39:33 +00:00
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
|
|
internal static extern void library_settings_drop(IntPtr ptr);
|
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
|
|
internal static extern LevelInt library_settings_maximum_level(IntPtr ptr);
|
2023-04-15 07:58:21 +00:00
|
|
|
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
|
|
internal static extern uint library_settings_shiny_rate(IntPtr ptr);
|
|
|
|
|
2022-10-01 13:39:33 +00:00
|
|
|
}
|
|
|
|
}
|