using System; namespace XUtliPoolLib { public class NpcFeelingAttr : CVSReader { public NpcFeelingAttr.RowData[] Table = null; public class RowData { public uint npcId; public uint level; public uint needExp; public SeqListRef Attr; public string RelicsDesc; } protected override void ReadLine(XBinaryReader reader) { NpcFeelingAttr.RowData rowData = new NpcFeelingAttr.RowData(); base.Read(reader, ref rowData.npcId, CVSReader.uintParse); this.columnno = 0; base.Read(reader, ref rowData.level, CVSReader.uintParse); this.columnno = 1; base.Read(reader, ref rowData.needExp, CVSReader.uintParse); this.columnno = 2; rowData.Attr.Read(reader, this.m_DataHandler); this.columnno = 3; base.Read(reader, ref rowData.RelicsDesc, CVSReader.stringParse); this.columnno = 4; this.Table[this.lineno] = rowData; this.columnno = -1; } protected override void OnClear(int lineCount) { bool flag = lineCount > 0; if (flag) { this.Table = new NpcFeelingAttr.RowData[lineCount]; } else { this.Table = null; } } } }