Getter for values of actual Pokemon ability.

This commit is contained in:
Deukhoofd 2020-09-05 14:55:14 +02:00
parent ce54b8c2c2
commit c797a4180b
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
4 changed files with 16 additions and 3 deletions

View File

@ -107,6 +107,9 @@ namespace PkmnLibSharp.Battling
set => Pkmnlib.Generated.Pokemon.SetFriendship(Ptr, value); set => Pkmnlib.Generated.Pokemon.SetFriendship(Ptr, value);
} }
public bool IsActualAbilityHidden => Creaturelib.Generated.Creature.GetRealTalentIsSecret(Ptr) == 1;
public byte ActualAbilityIndex => Creaturelib.Generated.Creature.GetRealTalentIndex(Ptr);
public string? ActiveAbility public string? ActiveAbility
{ {
get get

View File

@ -185,6 +185,16 @@ namespace Creaturelib.Generated
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RestoreAllAttackUses")] [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RestoreAllAttackUses")]
internal static extern byte RestoreAllAttackUses(IntPtr p); internal static extern byte RestoreAllAttackUses(IntPtr p);
/// <param name="p">const Creature *</param>
/// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetRealTalentIsSecret")]
internal static extern byte GetRealTalentIsSecret(IntPtr p);
/// <param name="p">const Creature *</param>
/// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetRealTalentIndex")]
internal static extern byte GetRealTalentIndex(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <param name="out">const char * &</param> /// <param name="out">const char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>

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

Binary file not shown.

File diff suppressed because one or more lines are too long