CraftSim

CraftSim

2M Downloads

Request: Expose CraftSim global again (so that other add-ons can use its APIs)

SanjoSolutions opened this issue · 4 comments

commented

Hi, I'm writing an add-on which depends on CraftSim and is accessing its APIs via the global. This global seems to have been removed with 9cefcf0#diff-df0e467622d93952aaeb5348aaab7c0f1958f3839c4a065a0e0deb6e1b91e10c. Can you please make the global available again, so that other add-ons can use the Craft Sim APIs. Thanks.

commented

Hi, sorry I was not aware ^^
you can currently get the global via the debug call CraftSim_DEBUG:RUN()
there is also an API exposed in CraftSimAPI
what functionality are using? If you want I can also enhance the api for it

commented

Ok, thanks for pointing out how to access CraftSim. CraftSim_DEBUG:RUN() works for me.

commented

Ok, thanks for pointing out how to access CraftSim. CraftSim_DEBUG:RUN() works for me.

Take a look at
https://github.com/derfloh205/CraftSim/blob/main/Util%2FAPI_README.md

I think you will really like the recipeData object you get for a recipe via the api

you do not really have to use the interal craftsim modules with it

you can optimize a recipe, craft it, set reagents, retrieve pricing data, optimize gear sets, get prof spec info and stats and much more just with the recipeData object

the stuff mentioned in the api readme is just a fraction of it tho.
However feel free to ask me anytime :)

the whole class can be found here
https://github.com/derfloh205/CraftSim/blob/main/Data%2FClasses%2FRecipeData.lua

commented

oh seh grad dass du auch deutscher bist also können auch deutsch redn ^^ np