static int GetAirMapData(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LoadMap obj = (LoadMap)ToLua.CheckObject(L, 1, typeof(LoadMap)); int[][] o = obj.GetAirMapData(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }