protected override bool OnLine(string[] Fields) { ActivityChestTable.RowData rowData = new ActivityChestTable.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.chest)) { return(false); } if (!base.Parse <uint>(Fields[this.ColMap[1]], ref rowData.level, CVSReader.uintParse, "2U")) { return(false); } if (!base.Parse(Fields[this.ColMap[2]], ref rowData.dropid)) { return(false); } if (!base.Parse(Fields[this.ColMap[3]], ref rowData.dropdesc)) { return(false); } if (!base.Parse <uint>(Fields[this.ColMap[4]], ref rowData.viewabledrop, CVSReader.uintParse, "2U")) { return(false); } this.Table.Add(rowData); return(true); }
protected override void ReadLine(BinaryReader reader) { ActivityChestTable.RowData rowData = new ActivityChestTable.RowData(); base.Read <uint>(reader, ref rowData.chest, CVSReader.uintParse); this.columnno = 0; base.ReadSeq <uint>(reader, ref rowData.level, CVSReader.uintParse); this.columnno = 1; base.ReadArray <uint>(reader, ref rowData.dropid, CVSReader.uintParse); this.columnno = 2; base.Read <string>(reader, ref rowData.dropdesc, CVSReader.stringParse); this.columnno = 3; base.ReadSeqList <uint>(reader, ref rowData.viewabledrop, CVSReader.uintParse); this.columnno = 4; this.Table.Add(rowData); this.columnno = -1; }