Additional support for ExecutingMove

This commit is contained in:
Deukhoofd 2020-08-22 14:45:13 +02:00
parent 59fbe5edaa
commit 2187221a17
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
4 changed files with 10 additions and 3 deletions

View File

@ -37,6 +37,8 @@ namespace PkmnLibSharp.Battling
/// </summary>
public HitData FirstHit => GetHitData(Targets[0], 0);
public byte NumberOfHits => Creaturelib.Generated.ExecutingAttack.GetNumberOfHits(Ptr);
public ReadOnlyNativePtrArray<Pokemon> Targets
{
get

View File

@ -22,6 +22,11 @@ namespace Creaturelib.Generated
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Destruct")]
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="p">ExecutingAttack *</param>
/// <param name="target">Creature *</param>

BIN
PkmnLibSharp/Native/libCreatureLib.so (Stored with Git LFS)

Binary file not shown.

File diff suppressed because one or more lines are too long