I have a script that does map generation for 2D game. It's called several times, once for each map it has to generate.
I passed a pointer to a map being generated as userdata into script context, but I don't know how to access it in a global function called from script. Am I missing something in docs?