Additional support for ExecutingMove
This commit is contained in:
parent
59fbe5edaa
commit
2187221a17
|
@ -37,6 +37,8 @@ namespace PkmnLibSharp.Battling
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public HitData FirstHit => GetHitData(Targets[0], 0);
|
public HitData FirstHit => GetHitData(Targets[0], 0);
|
||||||
|
|
||||||
|
public byte NumberOfHits => Creaturelib.Generated.ExecutingAttack.GetNumberOfHits(Ptr);
|
||||||
|
|
||||||
public ReadOnlyNativePtrArray<Pokemon> Targets
|
public ReadOnlyNativePtrArray<Pokemon> Targets
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -22,6 +22,11 @@ namespace Creaturelib.Generated
|
||||||
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Destruct")]
|
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Destruct")]
|
||||||
internal static extern void Destruct(IntPtr p);
|
internal static extern void Destruct(IntPtr p);
|
||||||
|
|
||||||
|
/// <param name="p">const ExecutingAttack *</param>
|
||||||
|
/// <returns>unsigned char</returns>
|
||||||
|
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetNumberOfHits")]
|
||||||
|
internal static extern byte GetNumberOfHits(IntPtr p);
|
||||||
|
|
||||||
/// <param name="out">HitData * &</param>
|
/// <param name="out">HitData * &</param>
|
||||||
/// <param name="p">ExecutingAttack *</param>
|
/// <param name="p">ExecutingAttack *</param>
|
||||||
/// <param name="target">Creature *</param>
|
/// <param name="target">Creature *</param>
|
||||||
|
|
BIN
PkmnLibSharp/Native/libCreatureLib.so (Stored with Git LFS)
BIN
PkmnLibSharp/Native/libCreatureLib.so (Stored with Git LFS)
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue