Adds AllowedExperienceGain interface to Pokemon

master
Deukhoofd 2 years ago
parent 919b486f69
commit 02afdbf479
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F

@ -108,6 +108,12 @@ namespace PkmnLibSharp.Battling
set => Creaturelib.Generated.Creature.SetDisplayVariant(Ptr, value?.Ptr ?? IntPtr.Zero);
}
public bool AllowedExperienceGain
{
get => Creaturelib.Generated.Creature.AllowedExperienceGain(Ptr) == 1;
set => Creaturelib.Generated.Creature.SetAllowedExperienceGain(Ptr, value.ToNative());
}
public byte Level => Creaturelib.Generated.Creature.GetLevel(Ptr);
public uint Experience => Creaturelib.Generated.Creature.GetExperience(Ptr);
public uint UniqueIdentifier => Creaturelib.Generated.Creature.GetUniqueIdentifier(Ptr);

@ -302,6 +302,17 @@ namespace Creaturelib.Generated
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplayVariant")]
internal static extern void SetDisplayVariant(IntPtr p, IntPtr variant);
/// <param name="p">Creature *</param>
/// <returns>bool</returns>
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AllowedExperienceGain")]
internal static extern byte AllowedExperienceGain(IntPtr p);
/// <param name="p">Creature *</param>
/// <param name="b">bool</param>
/// <returns>void</returns>
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetAllowedExperienceGain")]
internal static extern void SetAllowedExperienceGain(IntPtr p, byte b);
/// <param name="p">Creature *</param>
/// <param name="stat">Statistic</param>
/// <param name="diffAmount">signed char</param>

Binary file not shown.

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save