Skip to content

Instantly share code, notes, and snippets.

@sofar
Created January 12, 2016 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sofar/b429738f068b06be7ffd to your computer and use it in GitHub Desktop.
Save sofar/b429738f068b06be7ffd to your computer and use it in GitHub Desktop.
+ lua_getfield(L, index, "connects_to");
+ if(lua_istable(L, -1)
+ int table = lua_gettop(L);
+ lua_pushnil(L);
+ int i = 0;
+ while(lua_next(L, table) != 0){
+ f.tiledef[i] = lua_tostring(L, index);
+ lua_pop(L, 1);
+ i++;
+ }
+ }
+ lua_pop(L, 1);
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment