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;
|
|
|
|
|
2020-07-31 12:19:21 +00:00
|
|
|
namespace Creaturelib.Generated
|
2020-05-02 17:54:07 +00:00
|
|
|
{
|
|
|
|
internal static class AttackTurnChoice
|
|
|
|
{
|
|
|
|
/// <param name="user">Creature *</param>
|
|
|
|
/// <param name="attack">LearnedAttack *</param>
|
|
|
|
/// <param name="sideIndex">unsigned char</param>
|
|
|
|
/// <param name="targetIndex">unsigned char</param>
|
|
|
|
/// <returns>AttackTurnChoice *</returns>
|
2020-10-17 16:16:00 +00:00
|
|
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Construct")]
|
2020-05-02 17:54:07 +00:00
|
|
|
internal static extern IntPtr Construct(IntPtr user, IntPtr attack, byte sideIndex, byte targetIndex);
|
|
|
|
|
2020-07-26 12:47:56 +00:00
|
|
|
/// <param name="p">AttackTurnChoice *</param>
|
|
|
|
/// <returns>void</returns>
|
2020-10-17 16:16:00 +00:00
|
|
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Destruct")]
|
2020-07-26 12:47:56 +00:00
|
|
|
internal static extern void Destruct(IntPtr p);
|
|
|
|
|
2020-05-02 17:54:07 +00:00
|
|
|
/// <param name="p">const AttackTurnChoice *</param>
|
|
|
|
/// <returns>LearnedAttack *</returns>
|
2020-10-17 16:16:00 +00:00
|
|
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttack")]
|
2020-05-02 17:54:07 +00:00
|
|
|
internal static extern IntPtr GetAttack(IntPtr p);
|
|
|
|
|
|
|
|
/// <param name="p">const AttackTurnChoice *</param>
|
|
|
|
/// <returns>TurnChoiceKind</returns>
|
2020-10-17 16:16:00 +00:00
|
|
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetKind")]
|
2020-05-02 17:54:07 +00:00
|
|
|
internal static extern TurnChoiceKind GetKind(IntPtr p);
|
|
|
|
|
2020-07-26 12:47:56 +00:00
|
|
|
/// <param name="out">signed char &</param>
|
|
|
|
/// <param name="p">AttackTurnChoice *</param>
|
|
|
|
/// <returns>unsigned char</returns>
|
2020-10-17 16:16:00 +00:00
|
|
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetPriority")]
|
2020-07-26 12:47:56 +00:00
|
|
|
internal static extern byte GetPriority(ref sbyte @out, IntPtr p);
|
|
|
|
|
2020-05-02 17:54:07 +00:00
|
|
|
/// <param name="p">const AttackTurnChoice *</param>
|
|
|
|
/// <returns>Script *</returns>
|
2020-10-17 16:16:00 +00:00
|
|
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttackScript")]
|
2020-05-02 17:54:07 +00:00
|
|
|
internal static extern IntPtr GetAttackScript(IntPtr p);
|
|
|
|
|
2020-07-26 12:47:56 +00:00
|
|
|
/// <param name="p">const AttackTurnChoice *</param>
|
|
|
|
/// <returns>unsigned char</returns>
|
2020-10-17 16:16:00 +00:00
|
|
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetSideIndex")]
|
2020-07-26 12:47:56 +00:00
|
|
|
internal static extern byte GetTargetSideIndex(IntPtr p);
|
|
|
|
|
|
|
|
/// <param name="p">const AttackTurnChoice *</param>
|
|
|
|
/// <returns>unsigned char</returns>
|
2020-10-17 16:16:00 +00:00
|
|
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetCreatureIndex")]
|
2020-07-26 12:47:56 +00:00
|
|
|
internal static extern byte GetTargetCreatureIndex(IntPtr p);
|
|
|
|
|
2020-05-02 17:54:07 +00:00
|
|
|
}
|
|
|
|
}
|