protected override void ReadLine(BinaryReader reader) { GuildBonusTable.RowData rowData = new GuildBonusTable.RowData(); base.Read <uint>(reader, ref rowData.GuildBonusID, CVSReader.uintParse); this.columnno = 0; base.Read <uint>(reader, ref rowData.GuildBonusType, CVSReader.uintParse); this.columnno = 1; base.Read <string>(reader, ref rowData.GuildBonusName, CVSReader.stringParse); this.columnno = 2; base.Read <string>(reader, ref rowData.GuildBonusDesc, CVSReader.stringParse); this.columnno = 3; base.Read <uint>(reader, ref rowData.GuildBonusMaxPeopleNum, CVSReader.uintParse); this.columnno = 4; base.Read(reader, ref rowData.GuildBonusIsRandomAccess); this.columnno = 5; base.Read <uint>(reader, ref rowData.GuildBonusOpenTime, CVSReader.uintParse); this.columnno = 6; base.ReadSeq <uint>(reader, ref rowData.GuildBonusReward, CVSReader.uintParse); this.columnno = 7; base.Read <uint>(reader, ref rowData.GuildBonusVar, CVSReader.uintParse); this.columnno = 8; base.Read(reader, ref rowData.GuildBonusIsManualSend); this.columnno = 9; base.Read <string>(reader, ref rowData.TriggerTime, CVSReader.stringParse); this.columnno = 10; this.Table.Add(rowData); this.columnno = -1; }
protected override bool OnLine(string[] Fields) { GuildBonusTable.RowData rowData = new GuildBonusTable.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.GuildBonusID)) { return(false); } if (!base.Parse(Fields[this.ColMap[1]], ref rowData.GuildBonusType)) { return(false); } if (!base.Parse(Fields[this.ColMap[2]], ref rowData.GuildBonusName)) { return(false); } if (!base.Parse(Fields[this.ColMap[3]], ref rowData.GuildBonusDesc)) { return(false); } if (!base.Parse(Fields[this.ColMap[4]], ref rowData.GuildBonusMaxPeopleNum)) { return(false); } if (!base.Parse(Fields[this.ColMap[5]], ref rowData.GuildBonusIsRandomAccess)) { return(false); } if (!base.Parse(Fields[this.ColMap[6]], ref rowData.GuildBonusOpenTime)) { return(false); } if (!base.Parse <uint>(Fields[this.ColMap[7]], ref rowData.GuildBonusReward, CVSReader.uintParse, "2U")) { return(false); } if (!base.Parse(Fields[this.ColMap[8]], ref rowData.GuildBonusVar)) { return(false); } if (!base.Parse(Fields[this.ColMap[9]], ref rowData.GuildBonusIsManualSend)) { return(false); } if (!base.Parse(Fields[this.ColMap[10]], ref rowData.TriggerTime)) { return(false); } this.Table.Add(rowData); return(true); }