From 66aea09e80126cc71c87a9643e9b411117b49c97 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 8 Aug 2020 15:10:15 +0200 Subject: [PATCH] Add C Interface function to get all evolutions. --- CInterface/Library/PokemonSpecies.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CInterface/Library/PokemonSpecies.cpp b/CInterface/Library/PokemonSpecies.cpp index 94ed981..cba6296 100644 --- a/CInterface/Library/PokemonSpecies.cpp +++ b/CInterface/Library/PokemonSpecies.cpp @@ -18,4 +18,8 @@ export size_t PkmnLib_PokemonSpecies_GetEvolutionCount(const PokemonSpecies* p) export uint8_t PkmnLib_PokemonSpecies_GetEvolution(const PokemonSpecies* p, size_t index, const EvolutionData*& out) { Try(out = p->GetEvolutions().At(index).GetRaw()); +} + +export uint8_t PkmnLib_PokemonSpecies_GetEvolutions(const PokemonSpecies* p, const EvolutionData* const*& out) { + Try(out = p->GetEvolutions().RawData()); } \ No newline at end of file