protected override void ReadLine(BinaryReader reader) { GuildGoblinTable.RowData rowData = new GuildGoblinTable.RowData(); base.Read <int>(reader, ref rowData.Level, CVSReader.intParse); this.columnno = 0; base.Read <int>(reader, ref rowData.UpgradeNum, CVSReader.intParse); this.columnno = 1; base.Read <float>(reader, ref rowData.HpAddPer, CVSReader.floatParse); this.columnno = 2; base.Read <float>(reader, ref rowData.AttackAddPer, CVSReader.floatParse); this.columnno = 3; base.Read <int>(reader, ref rowData.Contribute, CVSReader.intParse); this.columnno = 4; base.Read <int>(reader, ref rowData.BigGoblinContribute, CVSReader.intParse); this.columnno = 5; base.ReadSeq <int>(reader, ref rowData.BonusContent, CVSReader.intParse); this.columnno = 6; base.ReadSeqList <int>(reader, ref rowData.DragonCoinFindBack, CVSReader.intParse); this.columnno = 7; base.ReadSeqList <int>(reader, ref rowData.GoldCoinFindBack, CVSReader.intParse); this.columnno = 8; base.ReadSeqList <uint>(reader, ref rowData.guildreward, CVSReader.uintParse); this.columnno = 9; this.Table.Add(rowData); this.columnno = -1; }
protected override bool OnLine(string[] Fields) { GuildGoblinTable.RowData rowData = new GuildGoblinTable.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.Level)) { return(false); } if (!base.Parse(Fields[this.ColMap[1]], ref rowData.UpgradeNum)) { return(false); } if (!base.Parse(Fields[this.ColMap[2]], ref rowData.HpAddPer)) { return(false); } if (!base.Parse(Fields[this.ColMap[3]], ref rowData.AttackAddPer)) { return(false); } if (!base.Parse(Fields[this.ColMap[4]], ref rowData.Contribute)) { return(false); } if (!base.Parse(Fields[this.ColMap[5]], ref rowData.BigGoblinContribute)) { return(false); } if (!base.Parse <int>(Fields[this.ColMap[6]], ref rowData.BonusContent, CVSReader.intParse, "2I")) { return(false); } if (!base.Parse <int>(Fields[this.ColMap[7]], ref rowData.DragonCoinFindBack, CVSReader.intParse, "2I")) { return(false); } if (!base.Parse <int>(Fields[this.ColMap[8]], ref rowData.GoldCoinFindBack, CVSReader.intParse, "2I")) { return(false); } if (!base.Parse <uint>(Fields[this.ColMap[9]], ref rowData.guildreward, CVSReader.uintParse, "2U")) { return(false); } this.Table.Add(rowData); return(true); }