Exemplo n.º 1
0
        private void OnGetGreatMatch(CSPkg msg)
        {
            this.OBExpertList.Clear();
            int num = 0;

            while ((long)num < (long)((ulong)msg.stPkgData.get_stGetGreatMatchRsp().dwCount))
            {
                int num2 = 0;
                while ((long)num2 < (long)((ulong)msg.stPkgData.get_stGetGreatMatchRsp().astList[num].dwLabelNum))
                {
                    COBSystem.stOBExpert stOBExpert = default(COBSystem.stOBExpert);
                    stOBExpert.desk       = msg.stPkgData.get_stGetGreatMatchRsp().astList[num].stDesk;
                    stOBExpert.startTime  = msg.stPkgData.get_stGetGreatMatchRsp().astList[num].dwStartTime;
                    stOBExpert.observeNum = msg.stPkgData.get_stGetGreatMatchRsp().astList[num].dwObserveNum;
                    stOBExpert.heroLabel  = msg.stPkgData.get_stGetGreatMatchRsp().astList[num].astLabel[num2];
                    this.OBExpertList.Add(stOBExpert);
                    num2++;
                }
                num++;
            }
            this.OBExpertList.Sort(new Comparison <COBSystem.stOBExpert>(this.SortByObserveNum));
            this.UpdateView();
        }
Exemplo n.º 2
0
 private int SortByObserveNum(COBSystem.stOBExpert left, COBSystem.stOBExpert right)
 {
     return((int)(right.observeNum - left.observeNum));
 }
Exemplo n.º 3
0
 private void UpdateElement(GameObject element, COBSystem.stOBExpert OBExpert)
 {
     this.UpdateElement(element, Utility.UTF8Convert(OBExpert.heroLabel.szRoleName), Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(Utility.UTF8Convert(OBExpert.heroLabel.szHealUrl)), (byte)OBExpert.heroLabel.dwGrade, OBExpert.heroLabel.dwClass, OBExpert.heroLabel.dwHeroID, COBSystem.enOBTab.Expert, (int)OBExpert.observeNum, this.curStatus, 0L, 0, 0u, string.Empty);
 }