Exemplo n.º 1
0
 protected override bool OnLine(string[] Fields)
 {
     PrefixAttributesTable.RowData rowData = new PrefixAttributesTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.EquipID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Slot))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.AttrID))
     {
         return(false);
     }
     if (!base.Parse <uint>(Fields[this.ColMap[3]], ref rowData.AttrRange, CVSReader.uintParse, "3U"))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.Prob))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }
Exemplo n.º 2
0
 protected override void ReadLine(BinaryReader reader)
 {
     PrefixAttributesTable.RowData rowData = new PrefixAttributesTable.RowData();
     base.Read <uint>(reader, ref rowData.EquipID, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <uint>(reader, ref rowData.Slot, CVSReader.uintParse);
     this.columnno = 1;
     base.Read <uint>(reader, ref rowData.AttrID, CVSReader.uintParse);
     this.columnno = 2;
     base.ReadSeqList <uint>(reader, ref rowData.AttrRange, CVSReader.uintParse);
     this.columnno = 3;
     base.Read <uint>(reader, ref rowData.Prob, CVSReader.uintParse);
     this.columnno = 4;
     this.Table.Add(rowData);
     this.columnno = -1;
 }