NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

pokemon moves #123

Closed f2008305 closed 8 years ago

f2008305 commented 8 years ago

sorry but i did that but the result is empty. the quickmoves and cinematicmoves are empty results (always) i put at start naturally use NicklasW\PkmGoApi\Api\Pokemon\Data\PokemonMetaRegistry; am i missing something else? or is it an error of coding? http://prntscr.com/c7x77z <- screenshot of that array you closed the issues before checking if it was really solved. sorry for reopening a new one.

DrDelay commented 8 years ago

I just checked it again, it works. You should make sure that you are on the latest version.

Edit: But you were right in the first place, it wasn't implemented (thanks for reporting), but it is as of #121.

use NicklasW\PkmGoApi\Api\Pokemon\Data\PokemonMetaRegistry;

$abra = PokemonMetaRegistry::getByPokemonId(\POGOProtos\Enums\PokemonId::ABRA);
dump($abra);
dump($abra->getQuickMoves()->getMovesStrings());

PokemonMoveMetaOutput