protected override void ReadLine(BinaryReader reader) { PetBubble.RowData rowData = new PetBubble.RowData(); base.Read <uint>(reader, ref rowData.id, CVSReader.uintParse); this.columnno = 0; base.Read <uint>(reader, ref rowData.ActionID, CVSReader.uintParse); this.columnno = 1; base.Read <string>(reader, ref rowData.ActionFile, CVSReader.stringParse); this.columnno = 2; base.Read <string>(reader, ref rowData.Condition, CVSReader.stringParse); this.columnno = 3; base.ReadArray <string>(reader, ref rowData.Bubble, CVSReader.stringParse); this.columnno = 4; base.Read <float>(reader, ref rowData.BubbleTime, CVSReader.floatParse); this.columnno = 5; base.Read <uint>(reader, ref rowData.Weights, CVSReader.uintParse); this.columnno = 6; base.Read <string>(reader, ref rowData.SEFile, CVSReader.stringParse); this.columnno = 7; this.Table.Add(rowData); this.columnno = -1; }
protected override bool OnLine(string[] Fields) { PetBubble.RowData rowData = new PetBubble.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.id)) { return(false); } if (!base.Parse(Fields[this.ColMap[1]], ref rowData.ActionID)) { return(false); } if (!base.Parse(Fields[this.ColMap[2]], ref rowData.ActionFile)) { return(false); } if (!base.Parse(Fields[this.ColMap[3]], ref rowData.Condition)) { return(false); } if (!base.Parse(Fields[this.ColMap[4]], ref rowData.Bubble)) { return(false); } if (!base.Parse(Fields[this.ColMap[5]], ref rowData.BubbleTime)) { return(false); } if (!base.Parse(Fields[this.ColMap[6]], ref rowData.Weights)) { return(false); } if (!base.Parse(Fields[this.ColMap[7]], ref rowData.SEFile)) { return(false); } this.Table.Add(rowData); return(true); }