示例#1
0
 public static void Read(string fileName)
 {
     Data.Clear();
     JumpCSV.CsvSpreadSheet sheet = new JumpCSV.CsvSpreadSheet(fileName, true);
     for (int i = 0; (i < sheet.Records.Count); i = (i + 1))
     {
         HeroRecord record = new HeroRecord();
         record.Name    = CsvValueConverter.ReadValueString(sheet, i, "Name");
         record._ID     = CsvValueConverter.ReadValueDicValue(sheet, i, "_VALUE");
         record._VALUE  = CsvValueConverter.ReadValueDicValue(sheet, i, "_VALUE");
         record.NameKey = CsvValueConverter.ReadValueCsvLoc(sheet, i, "NameKey");
         record.DesKey  = CsvValueConverter.ReadValueCsvLoc(sheet, i, "DesKey");
         int keyValue = sheet.GetRecord(i).KeyValue;
         Data.Add(keyValue, record);;
     }
 }
 public static void Read(string fileName)
 {
     Data.Clear();
     RecordIdValue.Clear();
     IdRecordValue.Clear();
     Init();
     Init2();
     JumpCSV.CsvSpreadSheet sheet = new JumpCSV.CsvSpreadSheet(fileName, true);
     for (int i = 0; (i < sheet.Records.Count); i = (i + 1))
     {
         LocalizationRecord record = new LocalizationRecord();
         record._ID    = CsvValueConverter.ReadValueDicValue(sheet, i, "_VALUE");
         record.text   = CsvValueConverter.ReadValueString(sheet, i, "text");
         record._VALUE = CsvValueConverter.ReadValueDicValue(sheet, i, "_VALUE");
         int keyValue = sheet.GetRecord(i).KeyValue;
         Data.Add(keyValue, record);;
     }
 }