Example #1
0
        public void ReadRow(DataStreamReader dataR, int[] filedIndex)
        {
          //var schemeNames = dataR.GetSchemeName();
          int col = 0;
          while(true)
          {
            col = dataR.MoreFieldOnRow();
            if (col == -1)
            {
              break;
            }
            switch (filedIndex[col])
            { 
            
                case 0:
                    m_Id = dataR.ReadInt();
                    break;
                case 1:
                    m_Process = dataR.ReadString();
                    break;
                default:
                    //TableHelper.CacheNewField(dataR, schemeNames[col], m_DataCacheNoGenerate);
                    break;
            }
          }

        }
Example #2
0
        public void ReadRow(DataStreamReader dataR, int[] filedIndex)
        {
          var schemeNames = dataR.GetSchemeName();
          int col = 0;
          while(true)
          {
            col = dataR.MoreFieldOnRow();
            if (col == -1)
            {
              break;
            }
            switch (filedIndex[col])
            { 
            
                case 0:
                    m_Id = dataR.ReadString();
                    break;
                case 1:
                    m_ItemName = dataR.ReadString();
                    break;
                case 2:
                    m_ItemDes = dataR.ReadString();
                    break;
                case 3:
                    m_Rare = dataR.ReadInt();
                    break;
                case 4:
                    m_ItemLevel = dataR.ReadInt();
                    break;
                case 5:
                    m_Type = dataR.ReadInt();
                    break;
                case 6:
                    m_StackNum = dataR.ReadInt();
                    break;
                case 7:
                    m_NumMax = dataR.ReadInt();
                    break;
                case 8:
                    m_UsedType = dataR.ReadInt();
                    break;
                case 9:
                    m_FlowID = dataR.ReadString();
                    break;
                default:
                    TableHelper.CacheNewField(dataR, schemeNames[col], m_DataCacheNoGenerate);
                    break;
            }
          }

        }
Example #3
0
        public void ReadRow(DataStreamReader dataR, int[] filedIndex)
        {
          //var schemeNames = dataR.GetSchemeName();
          int col = 0;
          while(true)
          {
            col = dataR.MoreFieldOnRow();
            if (col == -1)
            {
              break;
            }
            switch (filedIndex[col])
            { 
            
                case 0:
                    m_Id = dataR.ReadInt();
                    break;
                case 1:
                    m_Group = dataR.ReadInt();
                    break;
                case 2:
                    m_RewardGold = dataR.ReadInt();
                    break;
                case 3:
                    m_Describe = dataR.ReadString();
                    break;
                case 4:
                    m_Condition1 = dataR.ReadInt();
                    break;
                case 5:
                    m_Title = dataR.ReadInt();
                    break;
                case 6:
                    m_Condition2 = dataR.ReadInt();
                    break;
                default:
                    //TableHelper.CacheNewField(dataR, schemeNames[col], m_DataCacheNoGenerate);
                    break;
            }
          }

        }