Adds C Interface for CanEvolveFromLevelUp
This commit is contained in:
parent
3d3bff3772
commit
8fc29d925b
|
@ -7,3 +7,9 @@ export MiscLibrary* PkmnLib_MiscLibrary_Construct(PkmnLib::Library::TimeOfDay(*g
|
||||||
}
|
}
|
||||||
|
|
||||||
export void PkmnLib_MiscLibrary_Destruct(MiscLibrary* p) { delete p; }
|
export void PkmnLib_MiscLibrary_Destruct(MiscLibrary* p) { delete p; }
|
||||||
|
|
||||||
|
export u8 PkmnLib_MiscLibrary_CanEvolveFromLevelUp(bool& out, MiscLibrary* p,
|
||||||
|
const PkmnLib::Library::EvolutionData* evoData,
|
||||||
|
const Pokemon* pokemon) {
|
||||||
|
Try(out = p->CanEvolveFromLevelUp(evoData, pokemon))
|
||||||
|
}
|
Loading…
Reference in New Issue