Пример #1
0
 protected override void ReadLine(BinaryReader reader)
 {
     GuildCamp.RowData rowData = new GuildCamp.RowData();
     base.Read <int>(reader, ref rowData.ID, CVSReader.intParse);
     this.columnno = 0;
     base.Read <string>(reader, ref rowData.Name, CVSReader.stringParse);
     this.columnno = 1;
     base.Read <string>(reader, ref rowData.Pic, CVSReader.stringParse);
     this.columnno = 2;
     base.Read <string>(reader, ref rowData.Description, CVSReader.stringParse);
     this.columnno = 3;
     base.Read <string>(reader, ref rowData.Condition, CVSReader.stringParse);
     this.columnno = 4;
     base.Read <int>(reader, ref rowData.Type, CVSReader.intParse);
     this.columnno = 5;
     base.Read <string>(reader, ref rowData.RankDes, CVSReader.stringParse);
     this.columnno = 6;
     base.Read <long>(reader, ref rowData.KillID, CVSReader.longParse);
     this.columnno = 7;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
Пример #2
0
 protected override bool OnLine(string[] Fields)
 {
     GuildCamp.RowData rowData = new GuildCamp.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.ID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Name))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.Pic))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.Description))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.Condition))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[5]], ref rowData.Type))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[6]], ref rowData.RankDes))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[7]], ref rowData.KillID))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }