2020-04-29 17:46:24 +00:00
|
|
|
#include "../../src/Battling/Library/MiscLibrary.hpp"
|
|
|
|
#include "../Core.hpp"
|
|
|
|
using namespace PkmnLib::Battling;
|
|
|
|
|
2021-07-02 09:11:46 +00:00
|
|
|
export MiscLibrary* PkmnLib_MiscLibrary_Construct(PkmnLib::Library::TimeOfDay (*getTime)()) {
|
2021-06-27 15:11:37 +00:00
|
|
|
return new MiscLibrary(getTime);
|
|
|
|
}
|
2020-04-29 17:46:24 +00:00
|
|
|
|
|
|
|
export void PkmnLib_MiscLibrary_Destruct(MiscLibrary* p) { delete p; }
|
2021-07-02 09:11:46 +00:00
|
|
|
|
|
|
|
export u8 PkmnLib_MiscLibrary_CanEvolveFromLevelUp(bool& out, MiscLibrary* p,
|
|
|
|
const PkmnLib::Library::EvolutionData* evoData,
|
|
|
|
const Pokemon* pokemon) {
|
|
|
|
Try(out = p->CanEvolveFromLevelUp(evoData, pokemon))
|
|
|
|
}
|