Getter for values of actual Pokemon ability.
This commit is contained in:
parent
ce54b8c2c2
commit
c797a4180b
|
@ -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
|
||||||
|
|
|
@ -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)
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