protected override void ReadLine(BinaryReader reader) { CardsFireProperty.RowData rowData = new CardsFireProperty.RowData(); base.Read <uint>(reader, ref rowData.GroupId, CVSReader.uintParse); this.columnno = 0; base.Read <uint>(reader, ref rowData.FireCounts, CVSReader.uintParse); this.columnno = 1; base.ReadSeqList <uint>(reader, ref rowData.Promote, CVSReader.uintParse); this.columnno = 2; base.Read <uint>(reader, ref rowData.BreakLevel, CVSReader.uintParse); this.columnno = 3; this.Table.Add(rowData); this.columnno = -1; }
protected override bool OnLine(string[] Fields) { CardsFireProperty.RowData rowData = new CardsFireProperty.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.GroupId)) { return(false); } if (!base.Parse(Fields[this.ColMap[1]], ref rowData.FireCounts)) { return(false); } if (!base.Parse <uint>(Fields[this.ColMap[2]], ref rowData.Promote, CVSReader.uintParse, "2U")) { return(false); } if (!base.Parse(Fields[this.ColMap[3]], ref rowData.BreakLevel)) { return(false); } this.Table.Add(rowData); return(true); }