protected override bool OnLine(string[] Fields) { GuildBuffTable.RowData rowData = new GuildBuffTable.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.id)) { return(false); } if (!base.Parse(Fields[this.ColMap[1]], ref rowData.name)) { return(false); } if (!base.Parse(Fields[this.ColMap[2]], ref rowData.type)) { return(false); } if (!base.Parse(Fields[this.ColMap[3]], ref rowData.param)) { return(false); } if (!base.Parse(Fields[this.ColMap[4]], ref rowData.time)) { return(false); } if (!base.Parse(Fields[this.ColMap[5]], ref rowData.self)) { return(false); } if (!base.Parse(Fields[this.ColMap[6]], ref rowData.itemid)) { return(false); } this.Table.Add(rowData); return(true); }
protected override void ReadLine(BinaryReader reader) { GuildBuffTable.RowData rowData = new GuildBuffTable.RowData(); base.Read <uint>(reader, ref rowData.id, CVSReader.uintParse); this.columnno = 0; base.Read <string>(reader, ref rowData.name, CVSReader.stringParse); this.columnno = 1; base.Read <uint>(reader, ref rowData.type, CVSReader.uintParse); this.columnno = 2; base.ReadArray <uint>(reader, ref rowData.param, CVSReader.uintParse); this.columnno = 3; base.Read <uint>(reader, ref rowData.time, CVSReader.uintParse); this.columnno = 4; base.Read <uint>(reader, ref rowData.self, CVSReader.uintParse); this.columnno = 5; base.Read <uint>(reader, ref rowData.itemid, CVSReader.uintParse); this.columnno = 6; this.Table.Add(rowData); this.columnno = -1; }