Example #1
0
 protected override bool OnLine(string[] Fields)
 {
     ActivityListTable.RowData rowData = new ActivityListTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.SysID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Tittle))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.TagNames))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.Icon))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.FairMode))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[5]], ref rowData.HadShop))
     {
         return(false);
     }
     if (!base.Parse <uint>(Fields[this.ColMap[6]], ref rowData.DropItems, CVSReader.uintParse, "2U"))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[7]], ref rowData.Describe))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[8]], ref rowData.SortIndex))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }
Example #2
0
 protected override void ReadLine(BinaryReader reader)
 {
     ActivityListTable.RowData rowData = new ActivityListTable.RowData();
     base.Read <uint>(reader, ref rowData.SysID, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <string>(reader, ref rowData.Tittle, CVSReader.stringParse);
     this.columnno = 1;
     base.ReadArray <string>(reader, ref rowData.TagNames, CVSReader.stringParse);
     this.columnno = 2;
     base.Read <string>(reader, ref rowData.Icon, CVSReader.stringParse);
     this.columnno = 3;
     base.Read(reader, ref rowData.FairMode);
     this.columnno = 4;
     base.Read(reader, ref rowData.HadShop);
     this.columnno = 5;
     base.ReadSeqList <uint>(reader, ref rowData.DropItems, CVSReader.uintParse);
     this.columnno = 6;
     base.Read <string>(reader, ref rowData.Describe, CVSReader.stringParse);
     this.columnno = 7;
     base.Read <uint>(reader, ref rowData.SortIndex, CVSReader.uintParse);
     this.columnno = 8;
     this.Table.Add(rowData);
     this.columnno = -1;
 }