Esempio n. 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.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;
            }
          }

        }