protected override bool OnLine(string[] Fields) { SceneFxTable.RowData rowData = new SceneFxTable.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.unityscene)) { return(false); } if (!base.Parse(Fields[this.ColMap[1]], ref rowData.name)) { return(false); } if (!base.Parse(Fields[this.ColMap[2]], ref rowData.position)) { return(false); } if (!base.Parse(Fields[this.ColMap[3]], ref rowData.rotation)) { return(false); } if (!base.Parse(Fields[this.ColMap[4]], ref rowData.scale)) { return(false); } this.Table.Add(rowData); return(true); }
protected override void ReadLine(BinaryReader reader) { SceneFxTable.RowData rowData = new SceneFxTable.RowData(); base.Read <string>(reader, ref rowData.unityscene, CVSReader.stringParse); this.columnno = 0; base.Read <string>(reader, ref rowData.name, CVSReader.stringParse); this.columnno = 1; base.ReadArray <float>(reader, ref rowData.position, CVSReader.floatParse); this.columnno = 2; base.ReadArray <float>(reader, ref rowData.rotation, CVSReader.floatParse); this.columnno = 3; base.ReadArray <float>(reader, ref rowData.scale, CVSReader.floatParse); this.columnno = 4; this.Table.Add(rowData); this.columnno = -1; }