protected override void ReadLine(BinaryReader reader) { DragonNestType.RowData rowData = new DragonNestType.RowData(); base.Read <uint>(reader, ref rowData.DragonNestType, CVSReader.uintParse); this.columnno = 0; base.Read <string>(reader, ref rowData.TypeName, CVSReader.stringParse); this.columnno = 1; base.Read <string>(reader, ref rowData.TypeBg, CVSReader.stringParse); this.columnno = 2; base.Read <string>(reader, ref rowData.TypeIcon, CVSReader.stringParse); this.columnno = 3; this.Table.Add(rowData); this.columnno = -1; }
protected override bool OnLine(string[] Fields) { DragonNestType.RowData rowData = new DragonNestType.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.DragonNestType)) { return(false); } if (!base.Parse(Fields[this.ColMap[1]], ref rowData.TypeName)) { return(false); } if (!base.Parse(Fields[this.ColMap[2]], ref rowData.TypeBg)) { return(false); } if (!base.Parse(Fields[this.ColMap[3]], ref rowData.TypeIcon)) { return(false); } this.Table.Add(rowData); return(true); }