Hi,
We are creating Android plugin and we have the following problem. We create the table in Java with the following procedure:
luaState.newTable(0, hashtable.size()); int luaTableStackIndex = luaState.getTop(); for (Map.Entry\<String, Integer\> entry : hashtable.entrySet()) { luaState.pushString(entry.getKey()); luaState.pushNumber(entry.getValue()); luaState.setTable(luaTableStackIndex); }
local pluginName = require "plugin.pluginName"
Now we would like to expose/reference this table in Lua in something like
local table = pluginName.table
Is it possible to do that? Or is it possible only to return a table with function call like
local table = pluginName.table()
Thank you for help!