2020-08-11 19:46:22 +00:00
|
|
|
#include "../../src/Library/Species/SpeciesLibrary.hpp"
|
|
|
|
#include "../Core.hpp"
|
|
|
|
using namespace PkmnLib::Library;
|
|
|
|
|
2020-08-12 15:13:03 +00:00
|
|
|
export const PokemonSpecies* PkmnLib_SpeciesLibrary_FindPreEvolution(const SpeciesLibrary* p,
|
2020-08-11 19:46:22 +00:00
|
|
|
const PokemonSpecies* species) {
|
2020-12-12 13:25:27 +00:00
|
|
|
auto v = p->FindPreEvolution(species);
|
|
|
|
if (!v.has_value())
|
|
|
|
return nullptr;
|
|
|
|
return v.value().GetRaw();
|
2020-08-11 19:46:22 +00:00
|
|
|
}
|