PkmnLibSharp/PkmnLibSharp/Generated/Pkmnlib/AngelScriptResolver.cs

115 lines
6.6 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 AngelScriptResolver
{
/// <returns>AngelScriptResolver *</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Construct")]
2020-05-02 17:54:07 +00:00
internal static extern IntPtr Construct();
/// <param name="p">AngelScriptResolver *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Destruct")]
2020-05-02 17:54:07 +00:00
internal static extern byte Destruct(IntPtr p);
/// <param name="p">AngelScriptResolver *</param>
/// <param name="lib">BattleLibrary *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Initialize")]
2020-05-02 17:54:07 +00:00
internal static extern byte Initialize(IntPtr p, IntPtr lib);
/// <param name="p">AngelScriptResolver *</param>
/// <param name="name">const char *</param>
/// <param name="script">const char *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_CreateScript")]
2020-05-02 20:58:08 +00:00
internal static extern byte CreateScript(IntPtr p, IntPtr name, IntPtr script);
2020-05-02 17:54:07 +00:00
/// <param name="p">AngelScriptResolver *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_FinalizeModule")]
2020-05-02 17:54:07 +00:00
internal static extern byte FinalizeModule(IntPtr p);
/// <param name="out">BattleScript * &</param>
2020-05-02 17:54:07 +00:00
/// <param name="p">AngelScriptResolver *</param>
2021-11-05 12:58:01 +00:00
/// <param name="owner">void *</param>
2020-05-02 17:54:07 +00:00
/// <param name="category">ScriptCategory</param>
/// <param name="scriptName">const char *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadScript")]
2021-11-05 12:58:01 +00:00
internal static extern byte LoadScript(ref IntPtr @out, IntPtr p, IntPtr owner, ScriptCategory category, IntPtr scriptName);
2020-05-02 17:54:07 +00:00
/// <param name="out">const EvolutionScript * &</param>
/// <param name="p">AngelScriptResolver *</param>
/// <param name="scriptName">const char *</param>
/// <returns>unsigned char</returns>
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadEvolutionScript")]
internal static extern byte LoadEvolutionScript(ref IntPtr @out, IntPtr p, IntPtr scriptName);
2020-05-02 17:54:07 +00:00
/// <param name="p">AngelScriptResolver *</param>
/// <param name="file">const char *</param>
/// <param name="stripDebugInfo">bool</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToFile")]
2020-05-03 09:38:49 +00:00
internal static extern byte WriteByteCodeToFile(IntPtr p, IntPtr file, byte stripDebugInfo);
2020-05-02 17:54:07 +00:00
/// <param name="p">AngelScriptResolver *</param>
/// <param name="file">const char *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadByteCodeFromFile")]
2020-05-02 20:58:08 +00:00
internal static extern byte LoadByteCodeFromFile(IntPtr p, IntPtr file);
2020-05-02 17:54:07 +00:00
/// <param name="p">AngelScriptResolver *</param>
/// <param name="stripDebugInfo">bool</param>
2020-07-08 11:50:51 +00:00
/// <param name="size">long unsigned int &</param>
/// <param name="out">unsigned char * &</param>
2020-05-02 17:54:07 +00:00
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToMemory")]
2020-05-03 09:38:49 +00:00
internal static extern byte WriteByteCodeToMemory(IntPtr p, byte stripDebugInfo, ref ulong size, ref IntPtr @out);
2020-05-02 17:54:07 +00:00
/// <param name="p">AngelScriptResolver *</param>
/// <param name="memory">unsigned char *</param>
/// <param name="size">long unsigned int</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadByteCodeFromMemory")]
2020-05-02 17:54:07 +00:00
internal static extern byte LoadByteCodeFromMemory(IntPtr p, IntPtr memory, ulong size);
/// <param name="p">AngelScriptResolver *</param>
/// <param name="typeName">const char *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterType")]
2020-05-02 20:58:08 +00:00
internal static extern byte RegisterType(IntPtr p, IntPtr typeName);
2020-05-02 17:54:07 +00:00
/// <param name="p">AngelScriptResolver *</param>
/// <param name="typeName">const char *</param>
/// <param name="decl">const char *</param>
/// <param name="func">Function *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterTypeMethod")]
2020-05-02 20:58:08 +00:00
internal static extern byte RegisterTypeMethod(IntPtr p, IntPtr typeName, IntPtr decl, IntPtr func);
2020-05-02 17:54:07 +00:00
/// <param name="p">AngelScriptResolver *</param>
/// <param name="decl">const char *</param>
/// <param name="func">Function *</param>
/// <returns>unsigned char</returns>
2020-10-17 16:16:00 +00:00
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterGlobalMethod")]
2020-05-02 20:58:08 +00:00
internal static extern byte RegisterGlobalMethod(IntPtr p, IntPtr decl, IntPtr func);
2020-05-02 17:54:07 +00:00
2021-11-05 12:58:01 +00:00
/// <param name="p">AngelScriptResolver *</param>
/// <param name="word">const char *</param>
/// <returns>void</returns>
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_DefineWord")]
internal static extern void DefineWord(IntPtr p, IntPtr word);
/// <param name="p">AngelScriptResolver *</param>
/// <param name="port">unsigned short</param>
/// <returns>void</returns>
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_AddDebugger")]
internal static extern void AddDebugger(IntPtr p, ushort port);
2020-05-02 17:54:07 +00:00
}
}