Add Godot API wrapper repo link to README.md#1526
Open
UbeJelly wants to merge 1 commit into
Open
Conversation
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Change description
I added my Godot API wrapper, PokeDot repository's link to the Wrappers section in README.
I believe there's no API wrapper for Godot yet so I made one, and maybe some people may find it useful.
TESTS:
As for testing I don't know how I'll test it on workflows, but it is easy to test with under a new Godot 4 project.
I also haven't checked it below as I'm not sure if this example counts..
The main class PokeDotClient is an HTTPRequest node, and it handles the requests for pokeapi's v2 API.
So to use it:
The first output comes from PokeDotClient's
get_pokemon_pagination()when it is ready. Just remove it if not needed.The 2nd and 3rd outputs come from the Ability and Berry classes under Resources directory.
Note that to make a lot of requests, you have to wait for a request to complete first. So
awaittherequest_completedsignal emitted byPokeDotClient:await this_instanced_PokeDotClient.request_completedThat's all! Feel free to give some feedback with this project ^^
Here's a repo to quickly clone and run it on Godot 4: https://github.com/UbeJelly/PokeDotTest
AI coding assistance disclosure
I don't use AI in any of my works, so this codebase too didn't have any AI assistance.
Contributor check list