Support for Evolution
This commit is contained in:
@@ -427,6 +427,10 @@ namespace PkmnLibSharp.Battling
|
||||
Creaturelib.Generated.Creature.SwapAttack(Ptr, a, b).Assert();
|
||||
}
|
||||
|
||||
public void Evolve(Species species, Forme forme)
|
||||
{
|
||||
Pkmnlib.Generated.Pokemon.Evolve(Ptr, species.Ptr, forme.Ptr).Assert();
|
||||
}
|
||||
|
||||
private Species? _displaySpecies;
|
||||
private Forme? _displayForme;
|
||||
|
||||
@@ -14,9 +14,5 @@ namespace Creaturelib.Generated
|
||||
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastExceptionStacktrace")]
|
||||
internal static extern IntPtr GetLastExceptionStacktrace();
|
||||
|
||||
/// <returns>void</returns>
|
||||
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_RaiseSignal")]
|
||||
internal static extern void RaiseSignal();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,5 +82,11 @@ namespace Creaturelib.Generated
|
||||
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetAtIndex")]
|
||||
internal static extern byte GetAtIndex(IntPtr p, ulong index, ref IntPtr @out);
|
||||
|
||||
/// <param name="p">const SpeciesLibrary *</param>
|
||||
/// <param name="id">unsigned short</param>
|
||||
/// <returns>const CreatureSpecies *</returns>
|
||||
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetById")]
|
||||
internal static extern IntPtr GetById(IntPtr p, ushort id);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,5 +111,12 @@ namespace Pkmnlib.Generated
|
||||
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_ChangeFriendship")]
|
||||
internal static extern void ChangeFriendship(IntPtr p, sbyte amount);
|
||||
|
||||
/// <param name="p">Pokemon *</param>
|
||||
/// <param name="species">const PokemonSpecies *</param>
|
||||
/// <param name="forme">const PokemonForme *</param>
|
||||
/// <returns>unsigned char</returns>
|
||||
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Evolve")]
|
||||
internal static extern byte Evolve(IntPtr p, IntPtr species, IntPtr forme);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
BIN
PkmnLibSharp/Native/libArbutils.so
(Stored with Git LFS)
BIN
PkmnLibSharp/Native/libArbutils.so
(Stored with Git LFS)
Binary file not shown.
BIN
PkmnLibSharp/Native/libCreatureLib.so
(Stored with Git LFS)
BIN
PkmnLibSharp/Native/libCreatureLib.so
(Stored with Git LFS)
Binary file not shown.
BIN
PkmnLibSharp/Native/libpkmnLib.so
(Stored with Git LFS)
BIN
PkmnLibSharp/Native/libpkmnLib.so
(Stored with Git LFS)
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user