PkmnLib/CInterface/Library/SpeciesLibrary.cpp

11 lines
433 B
C++
Raw Normal View History

#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,
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();
}