Skip to content

UbeJelly/PokeDotTest

Repository files navigation

This is a test example repo for PokeDot

Testing

  1. Just copy the Resources folder, PokeDotClient.gd, and PokeDotClient.tscn into the new Godot project directory.
  2. The request_completed signal must be emitted first in order to get the data, but here getting the data returns empty values as it is called in ready() and as such not completed yet. So in order to get the values after completing the request:
image
  1. Call the method first e.g. get_ability(1)
  2. Wait till it's request is completed - await pokeapi.request_completed
  3. Then you can access its (PokeDotClient) child node Ability.gd, and call its get_data(): pokeapi.ability.get_data()
  4. The values can now be used as needed:
image

Note

The actual PokeDot repo has its PokeDotClient.gd call get_pokemon_pagination() when ready(), so if not needed (most likely) disable or remove it first. It's there by default so anyone could test it right away if it works.

About

This is a test example repo for PokeDot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors