Adds AllowedExperienceGain interface to Pokemon
This commit is contained in:
parent
919b486f69
commit
02afdbf479
|
@ -108,6 +108,12 @@ namespace PkmnLibSharp.Battling
|
||||||
set => Creaturelib.Generated.Creature.SetDisplayVariant(Ptr, value?.Ptr ?? IntPtr.Zero);
|
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 byte Level => Creaturelib.Generated.Creature.GetLevel(Ptr);
|
||||||
public uint Experience => Creaturelib.Generated.Creature.GetExperience(Ptr);
|
public uint Experience => Creaturelib.Generated.Creature.GetExperience(Ptr);
|
||||||
public uint UniqueIdentifier => Creaturelib.Generated.Creature.GetUniqueIdentifier(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")]
|
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplayVariant")]
|
||||||
internal static extern void SetDisplayVariant(IntPtr p, IntPtr variant);
|
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="p">Creature *</param>
|
||||||
/// <param name="stat">Statistic</param>
|
/// <param name="stat">Statistic</param>
|
||||||
/// <param name="diffAmount">signed char</param>
|
/// <param name="diffAmount">signed char</param>
|
||||||
|
|
BIN
PkmnLibSharp/Native/Linux/libCreatureLib.so (Stored with Git LFS)
BIN
PkmnLibSharp/Native/Linux/libCreatureLib.so (Stored with Git LFS)
Binary file not shown.
BIN
PkmnLibSharp/Native/Linux/libpkmnLib.so (Stored with Git LFS)
BIN
PkmnLibSharp/Native/Linux/libpkmnLib.so (Stored with Git LFS)
Binary file not shown.
BIN
PkmnLibSharp/Native/Linux/libpkmnlib_ai.so (Stored with Git LFS)
BIN
PkmnLibSharp/Native/Linux/libpkmnlib_ai.so (Stored with Git LFS)
Binary file not shown.
BIN
PkmnLibSharp/Native/Windows/libCreatureLib.dll (Stored with Git LFS)
BIN
PkmnLibSharp/Native/Windows/libCreatureLib.dll (Stored with Git LFS)
Binary file not shown.
BIN
PkmnLibSharp/Native/Windows/libpkmnLib.dll (Stored with Git LFS)
BIN
PkmnLibSharp/Native/Windows/libpkmnLib.dll (Stored with Git LFS)
Binary file not shown.
BIN
PkmnLibSharp/Native/Windows/libpkmnlib_ai.dll (Stored with Git LFS)
BIN
PkmnLibSharp/Native/Windows/libpkmnlib_ai.dll (Stored with Git LFS)
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue