Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how i can use this in my iOS app? #24

Open
chr1s78 opened this issue Aug 4, 2022 · 3 comments
Open

how i can use this in my iOS app? #24

chr1s78 opened this issue Aug 4, 2022 · 3 comments

Comments

@chr1s78
Copy link

chr1s78 commented Aug 4, 2022

now i download the *.json file and read it in iOS app, i wonder if there is other way to fetch the info such as armors、skills and so on?

@wwylele
Copy link
Owner

wwylele commented Aug 4, 2022

Hi, which iOS app are you talking about? The mhrice project maintained here doesn't include an iOS app. Or are you developing your own app based on the json file?

@wwylele
Copy link
Owner

wwylele commented Aug 4, 2022

The json file unfortunately doesn't have a stable, documented schema yet. You can find its layout by reading the Pedia type in the code. Unfortunately I have to use the "code as documentation" excuse here. You can check the gen_pedia_ex to learn how to preprocess the json file, and then each gen_... file in the same folder to see how to convert the data into readable format.

@chr1s78
Copy link
Author

chr1s78 commented Aug 5, 2022

yes, i develop my own app base on this json, thank you for the reply.
The json file is great, but hard to decode in swift :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants