/// <summary> /// 查找值 /// </summary> /// <param name="value"></param> /// <param name="start"></param> /// <returns></returns> public CsvTableCoords FindValue(string value, CsvTableCoords start) { var coords = new CsvTableCoords(-1, -1); var startRow = Mathf.Clamp(start.row, 0, m_RawDataList.Count); var firstRow = m_RawDataList[startRow]; for (var i = start.column; i < firstRow.Count; i++) { if (firstRow[i] == value) { coords.Set(startRow, i); return(coords); } } startRow++; for (var i = startRow; i < m_RawDataList.Count; i++) { var rowData = m_RawDataList[i]; for (var j = 0; j < rowData.Count; j++) { if (rowData[j] == value) { coords.Set(i, j); return(coords); } } } return(coords); }
// Token: 0x0600237C RID: 9084 RVA: 0x000ADB8C File Offset: 0x000ABD8C public CsvTableCoords FindValue(string value, CsvTableCoords start) { CsvTableCoords result = new CsvTableCoords(-1, -1); int num = Mathf.Clamp(start.row, 0, this.m_RawDataList.Count); List <string> list = this.m_RawDataList[num]; for (int i = start.column; i < list.Count; i++) { if (list[i] == value) { result.Set(num, i); return(result); } } num++; for (int j = num; j < this.m_RawDataList.Count; j++) { List <string> list2 = this.m_RawDataList[j]; for (int k = 0; k < list2.Count; k++) { if (list2[k] == value) { result.Set(j, k); return(result); } } } return(result); }