Example #1
0
 private void InitPerformanceTest()
 {
     for (int i = 0; i < this.MessageRef.astCampInfo.Length; i++)
     {
         CSDT_CAMPINFO          csdt_campinfo = this.MessageRef.astCampInfo[i];
         COMDT_HERO_COMMON_INFO stCommonInfo  = csdt_campinfo.astCampPlayerInfo[0].stPlayerInfo.astChoiceHero[0].stBaseInfo.stCommonInfo;
         uint   dwHeroID = stCommonInfo.dwHeroID;
         ushort wSkinID  = stCommonInfo.wSkinID;
         for (int j = 0; j < csdt_campinfo.dwPlayerNum; j++)
         {
             CSDT_CAMPPLAYERINFO csdt_campplayerinfo = csdt_campinfo.astCampPlayerInfo[j];
             if (csdt_campplayerinfo != null)
             {
                 for (int k = 0; k < csdt_campplayerinfo.stPlayerInfo.astChoiceHero.Length; k++)
                 {
                     COMDT_CHOICEHERO comdt_choicehero = csdt_campplayerinfo.stPlayerInfo.astChoiceHero[k];
                     if (comdt_choicehero != null)
                     {
                         comdt_choicehero.stBaseInfo.stCommonInfo.dwHeroID = dwHeroID;
                         comdt_choicehero.stBaseInfo.stCommonInfo.wSkinID  = wSkinID;
                     }
                 }
             }
         }
     }
 }
 private void InitPerformanceTest()
 {
     for (int i = 0; i < this.MessageRef.astCampInfo.Length; i++)
     {
         CSDT_CAMPINFO          cSDT_CAMPINFO = this.MessageRef.astCampInfo[i];
         COMDT_HERO_COMMON_INFO stCommonInfo  = cSDT_CAMPINFO.astCampPlayerInfo[0].stPlayerInfo.astChoiceHero[0].stBaseInfo.stCommonInfo;
         uint   dwHeroID = stCommonInfo.dwHeroID;
         ushort wSkinID  = stCommonInfo.wSkinID;
         int    num      = 0;
         while ((long)num < (long)((ulong)cSDT_CAMPINFO.dwPlayerNum))
         {
             CSDT_CAMPPLAYERINFO cSDT_CAMPPLAYERINFO = cSDT_CAMPINFO.astCampPlayerInfo[num];
             if (cSDT_CAMPPLAYERINFO != null)
             {
                 for (int j = 0; j < cSDT_CAMPPLAYERINFO.stPlayerInfo.astChoiceHero.Length; j++)
                 {
                     COMDT_CHOICEHERO cOMDT_CHOICEHERO = cSDT_CAMPPLAYERINFO.stPlayerInfo.astChoiceHero[j];
                     if (cOMDT_CHOICEHERO != null)
                     {
                         cOMDT_CHOICEHERO.stBaseInfo.stCommonInfo.dwHeroID = dwHeroID;
                         cOMDT_CHOICEHERO.stBaseInfo.stCommonInfo.wSkinID  = wSkinID;
                     }
                 }
             }
             num++;
         }
     }
 }