0

So,is Passing a multidimensional array from C++ to Lua actually possible?

Or should I just make it a normal array,pass it to Lua and convert it there to a 2d array again?

And if its possible lets say I've got this

function AI(Array)
-- can I just call it like this?
   num= Array[1][2];
Mud
  • 28,277
  • 11
  • 59
  • 92
Makenshi
  • 993
  • 3
  • 15
  • 28

2 Answers2

0

May be something like a binding library would be of help
http://sourceforge.net/projects/luabind/

FUD
  • 5,114
  • 7
  • 39
  • 61
0

well it seems like at least as far as i saw you cant do this so the best option is just to send it like a unidimensional array and then convert it back in LUA

Makenshi
  • 993
  • 3
  • 15
  • 28