Example #1
0
 public Table(ScriptState luaState, int index)
 {
     _luaState     = luaState;
     _index        = LuaCore.GetRef(_luaState, index);
     _readTableWay = ReadTableWay.ByName;
     Refresh();
 }
Example #2
0
 public Table(ScriptState luaState, string tableName)
 {
     _luaState     = luaState;
     _index        = LuaCore.GetGlobalRef(_luaState, tableName, ScriptTypes.Table);
     _readTableWay = ReadTableWay.ByName;
     Refresh();
 }