Exemple #1
0
 private void ResetData()
 {
     this.m_uuid                   = 0L;
     this.m_iLogicWorldId          = 0;
     this.m_vipInfo                = new SCPKG_GAME_VIP_NTF();
     this._playerName              = null;
     this._playerHeadUrl           = null;
     this.m_personSign             = null;
     this._playerLevel             = 0;
     this._playerExp               = 0;
     this._playerNeedExp           = 0;
     this._power                   = 0;
     this._pvpLevel                = 0;
     this._playerPvpExp            = 0;
     this._doubleKillCount         = 0;
     this._trippleKillCount        = 0;
     this._quataryKillCount        = 0;
     this._pentaKillCount          = 0;
     this._holyShitCount           = 0;
     this._mvpCnt                  = 0;
     this._loseMvpCount            = 0;
     this._rankGrade               = 0;
     this._rankHistoryHighestGrade = 0;
     this._rankClass               = 0;
     this._rankHistoryHighestClass = 0;
     this.GuildName                = null;
     this.GuildState               = COM_PLAYER_GUILD_STATE.COM_PLAYER_GUILD_STATE_NULL;
     this._5V5TotalCount           = 0;
     this._5V5WinCount             = 0;
     this._3V3TotalCount           = 0;
     this._3V3WinCount             = 0;
     this._2V2TotalCount           = 0;
     this._2V2WinCount             = 0;
     this._1V1TotalCount           = 0;
     this._1V1WinCount             = 0;
     this._vsAiTotalCount          = 0;
     this._vsAiWinCount            = 0;
     this._privilegeType           = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_NONE;
     this._heroCnt                 = 0;
     this._skinCnt                 = 0;
     if (this._mostUsedHeroList == null)
     {
         this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
     }
     else
     {
         this._mostUsedHeroList.Clear();
     }
     this._selectedHonorId = 0;
     this._honorDic.Clear();
     this._haveExtraCoin   = false;
     this._coinExpireHours = 0;
     this._coinWinCount    = 0;
     this._haveExtraExp    = false;
     this._expExpireHours  = 0;
     this._expWinCount     = 0;
 }
Exemple #2
0
    public COM_PRIVILEGE_TYPE GetCurrentLoginPrivilege()
    {
        COM_PRIVILEGE_TYPE com_privilege_type = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_NONE;

        if ((this.m_CurPlatform == ApolloPlatform.Wechat) && this.m_IsWXGameCenter)
        {
            com_privilege_type = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_WXGAMECENTER_LOGIN;
        }
        return(com_privilege_type);
    }
Exemple #3
0
        private void UpdateGameCenterState(CUIFormScript form)
        {
            if (null != form)
            {
                GameObject obj2           = Utility.FindChild(form.gameObject, "WXGameCenterBtn");
                GameObject obj3           = Utility.FindChild(form.gameObject, "PlayerHead/NameGroup/WXGameCenterIcon");
                CRoleInfo  masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

                COM_PRIVILEGE_TYPE privilegeType = (masterRoleInfo != null) ? masterRoleInfo.m_privilegeType : COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_NONE;
                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(obj2, privilegeType, ApolloPlatform.Wechat, false, CSysDynamicBlock.bLobbyEntryBlocked);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(obj3, privilegeType, ApolloPlatform.Wechat, true, false);
            }
        }
Exemple #4
0
 private void ResetData()
 {
     this.m_uuid              = 0L;
     this.m_vipInfo           = new SCPKG_GAME_VIP_NTF();
     this._playerName         = null;
     this._playerHeadUrl      = null;
     this._playerLevel        = 0;
     this._playerExp          = 0;
     this._playerNeedExp      = 0;
     this._power              = 0;
     this._pvpLevel           = 0;
     this._playerPvpExp       = 0;
     this._doubleKillCount    = 0;
     this._trippleKillCount   = 0;
     this._quataryKillCount   = 0;
     this._pentaKillCount     = 0;
     this._holyShitCount      = 0;
     this._mvpCnt             = 0;
     this._loseMvpCount       = 0;
     this._gradeOfRank        = 0;
     this._highestGradeOfRank = 0;
     this.GuildName           = null;
     this.GuildState          = COM_PLAYER_GUILD_STATE.COM_PLAYER_GUILD_STATE_NULL;
     this._5V5TotalCount      = 0;
     this._5V5WinCount        = 0;
     this._3V3TotalCount      = 0;
     this._3V3WinCount        = 0;
     this._2V2TotalCount      = 0;
     this._2V2WinCount        = 0;
     this._1V1TotalCount      = 0;
     this._1V1WinCount        = 0;
     this._vsAiTotalCount     = 0;
     this._vsAiWinCount       = 0;
     this._privilegeType      = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_NONE;
     this._heroCnt            = 0;
     this._skinCnt            = 0;
     if (this._mostUsedHeroList == null)
     {
         this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
     }
     else
     {
         this._mostUsedHeroList.Clear();
     }
 }
Exemple #5
0
    public COM_PRIVILEGE_TYPE GetCurrentLoginPrivilege()
    {
        COM_PRIVILEGE_TYPE com_privilege_type = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_NONE;

        if ((this.CurPlatform == ApolloPlatform.Wechat) && this.m_IsWXGameCenter)
        {
            return(COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_WXGAMECENTER_LOGIN);
        }
        if ((this.CurPlatform == ApolloPlatform.QQ) && this.m_IsQQGameCenter)
        {
            return(COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_QQGAMECENTER_LOGIN);
        }
        if (this.CurPlatform == ApolloPlatform.Guest)
        {
            com_privilege_type = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_IOSVISITOR_LOGIN;
        }
        return(com_privilege_type);
    }
    public COM_PRIVILEGE_TYPE GetCurrentLoginPrivilege()
    {
        COM_PRIVILEGE_TYPE result = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_NONE;

        if (this.CurPlatform == ApolloPlatform.Wechat && this.m_IsWXGameCenter)
        {
            result = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_WXGAMECENTER_LOGIN;
        }
        else if (this.CurPlatform == ApolloPlatform.QQ && this.m_IsQQGameCenter)
        {
            result = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_QQGAMECENTER_LOGIN;
        }
        else if (this.CurPlatform == ApolloPlatform.Guest)
        {
            result = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_IOSVISITOR_LOGIN;
        }
        return(result);
    }
    public COM_PRIVILEGE_TYPE GetCurrentLoginPrivilege()
    {
        COM_PRIVILEGE_TYPE result = 0;

        if (this.CurPlatform == 1 && this.m_IsWXGameCenter)
        {
            result = 1;
        }
        else if (this.CurPlatform == 2 && this.m_IsQQGameCenter)
        {
            result = 2;
        }
        else if (this.CurPlatform == 5)
        {
            result = 3;
        }
        return(result);
    }
 private void ResetData()
 {
     this.isMasterData             = false;
     this.m_uuid                   = 0uL;
     this.m_iLogicWorldId          = 0;
     this.m_vipInfo                = new SCPKG_GAME_VIP_NTF();
     this._playerName              = null;
     this._playerHeadUrl           = null;
     this.m_personSign             = null;
     this._playerLevel             = 0u;
     this._playerExp               = 0u;
     this._playerNeedExp           = 0u;
     this._power                   = 0u;
     this._pvpLevel                = 0u;
     this._playerPvpExp            = 0u;
     this._doubleKillCount         = 0;
     this._trippleKillCount        = 0;
     this._quataryKillCount        = 0;
     this._pentaKillCount          = 0;
     this._holyShitCount           = 0;
     this._mvpCnt                  = 0;
     this._loseMvpCount            = 0;
     this._rankGrade               = 0;
     this._rankHistoryHighestGrade = 0;
     this._rankClass               = 0u;
     this._rankHistoryHighestClass = 0u;
     this.GuildName                = null;
     this.GuildState               = 0;
     this._5V5TotalCount           = 0;
     this._5V5WinCount             = 0;
     this._3V3TotalCount           = 0;
     this._3V3WinCount             = 0;
     this._2V2TotalCount           = 0;
     this._2V2WinCount             = 0;
     this._1V1TotalCount           = 0;
     this._1V1WinCount             = 0;
     this._guildTotalCount         = 0;
     this._guildWinCount           = 0;
     this._vsAiTotalCount          = 0;
     this._vsAiWinCount            = 0;
     this._privilegeType           = 0;
     this._heroCnt                 = 0;
     this._skinCnt                 = 0;
     if (this._mostUsedHeroList == null)
     {
         this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
     }
     else
     {
         this._mostUsedHeroList.Clear();
     }
     this._selectedHonorId = 0;
     this._honorDic.Clear();
     this._haveExtraCoin         = false;
     this._coinExpireHours       = 0;
     this._coinWinCount          = 0u;
     this._haveExtraExp          = false;
     this._expExpireHours        = 0;
     this._expWinCount           = 0u;
     this.pvpExtraDetail         = null;
     this.pvpAbilityDetail       = null;
     this._trophyRewardInfoLevel = 0u;
     this._trophyRank            = 0u;
     Array.Clear(this._selectedTrophies, 0, this._selectedTrophies.Length);
     this._mentorInfo = null;
 }
Exemple #9
0
        public void ConvertRoleInfoData(CRoleInfo roleInfo)
        {
            if (roleInfo == null)
            {
                this.ResetData();
            }
            else
            {
                this.m_uuid              = roleInfo.playerUllUID;
                this.m_vipInfo           = roleInfo.GetNobeInfo();
                this._gender             = roleInfo.m_gender;
                this._privilegeType      = roleInfo.m_privilegeType;
                this._playerName         = roleInfo.Name;
                this._playerHeadUrl      = roleInfo.HeadUrl;
                this._playerLevel        = roleInfo.Level;
                this._playerExp          = roleInfo.Exp;
                this._playerNeedExp      = roleInfo.NeedExp;
                this._power              = roleInfo.BattlePower;
                this._pvpLevel           = roleInfo.PvpLevel;
                this._playerPvpExp       = roleInfo.PvpExp;
                this._gradeOfRank        = roleInfo.m_gradeOfRank;
                this._highestGradeOfRank = roleInfo.m_HighestGradeOfRank;
                this.GuildName           = roleInfo.m_baseGuildInfo.name;
                this.GuildState          = roleInfo.m_baseGuildInfo.guildState;
                for (int i = 0; i < roleInfo.pvpDetail.stKVDetail.dwNum; i++)
                {
                    COMDT_STATISTIC_KEY_VALUE_INFO comdt_statistic_key_value_info = roleInfo.pvpDetail.stKVDetail.astKVDetail[i];
                    switch (((RES_STATISTIC_SETTLE_DATA_TYPE)comdt_statistic_key_value_info.dwKey))
                    {
                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_MVP_CNT:
                        this._mvpCnt = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_LOSE_SOUL:
                        this._loseMvpCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_GODLIKE_CNT:
                        this._holyShitCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_DOUBLE_KILL_CNT:
                        this._doubleKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_TRIPLE_KILL_CNT:
                        this._trippleKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_QUATARY_KILL_CNT:
                        this._quataryKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_PENTA_KILL_CNT:
                        this._pentaKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;
                    }
                }
                this._5V5TotalCount           = (int)roleInfo.pvpDetail.stFiveVsFiveInfo.dwTotalNum;
                this._5V5WinCount             = (int)roleInfo.pvpDetail.stFiveVsFiveInfo.dwWinNum;
                this._3V3TotalCount           = (int)roleInfo.pvpDetail.stThreeVsThreeInfo.dwTotalNum;
                this._3V3WinCount             = (int)roleInfo.pvpDetail.stThreeVsThreeInfo.dwWinNum;
                this._2V2TotalCount           = (int)roleInfo.pvpDetail.stTwoVsTwoInfo.dwTotalNum;
                this._2V2WinCount             = (int)roleInfo.pvpDetail.stTwoVsTwoInfo.dwWinNum;
                this._1V1TotalCount           = (int)roleInfo.pvpDetail.stOneVsOneInfo.dwTotalNum;
                this._1V1WinCount             = (int)roleInfo.pvpDetail.stOneVsOneInfo.dwWinNum;
                this._vsAiTotalCount          = (int)roleInfo.pvpDetail.stVsMachineInfo.dwTotalNum;
                this._vsAiWinCount            = (int)roleInfo.pvpDetail.stVsMachineInfo.dwWinNum;
                this._rankTotalCount          = (int)roleInfo.pvpDetail.stLadderInfo.dwTotalNum;
                this._rankWinCount            = (int)roleInfo.pvpDetail.stLadderInfo.dwWinNum;
                this._entertainmentTotalCount = (int)roleInfo.pvpDetail.stEntertainmentInfo.dwTotalNum;
                this._entertainmentWinCount   = (int)roleInfo.pvpDetail.stEntertainmentInfo.dwWinNum;
                this._heroCnt  = roleInfo.GetHaveHeroCount(false);
                this._skinCnt  = roleInfo.GetHeroSkinCount(false);
                this._isOnLine = true;
                if (this._mostUsedHeroList == null)
                {
                    this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
                }
                else
                {
                    this._mostUsedHeroList.Clear();
                }
                int num2 = (int)Mathf.Min((float)roleInfo.MostUsedHeroDetail.dwHeroNum, (float)roleInfo.MostUsedHeroDetail.astHeroInfoList.Length);
                for (int j = 0; j < num2; j++)
                {
                    this._mostUsedHeroList.Add(roleInfo.MostUsedHeroDetail.astHeroInfoList[j]);
                }
                this.SortMostUsedHeroList();
            }
        }
Exemple #10
0
        public void ConvertServerDetailData(CSDT_ACNT_DETAIL_INFO detailInfo)
        {
            this._doubleKillCount  = 0;
            this._trippleKillCount = 0;
            this._quataryKillCount = 0;
            this._pentaKillCount   = 0;
            this._holyShitCount    = 0;
            this._mvpCnt           = 0;
            this._loseMvpCount     = 0;
            if (detailInfo != null)
            {
                this._playerName = StringHelper.UTF8BytesToString(ref detailInfo.szAcntName);
                this.m_uuid      = detailInfo.ullUid;
                this.m_vipInfo   = new SCPKG_GAME_VIP_NTF();
                this.m_vipInfo.stGameVipClient = detailInfo.stGameVip;
                this._playerHeadUrl            = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref detailInfo.szOpenUrl);

                this._playerLevel = detailInfo.dwLevel;
                ResAcntExpInfo dataByKey = GameDataMgr.acntExpDatabin.GetDataByKey(this._playerLevel);
                this._playerNeedExp      = dataByKey.dwNeedExp;
                this._playerExp          = detailInfo.dwExp;
                this._power              = detailInfo.dwPower;
                this._pvpLevel           = detailInfo.dwPvpLevel;
                this._playerPvpExp       = detailInfo.dwPvpExp;
                this._gender             = (COM_SNSGENDER)detailInfo.bGender;
                this._privilegeType      = (COM_PRIVILEGE_TYPE)detailInfo.bPrivilege;
                this._gradeOfRank        = detailInfo.bGradeOfRank;
                this._highestGradeOfRank = detailInfo.bMaxGradeOfRank;
                this.GuildName           = StringHelper.UTF8BytesToString(ref detailInfo.stGuildInfo.szGuildName);
                this.GuildState          = (COM_PLAYER_GUILD_STATE)detailInfo.stGuildInfo.bGuildState;
                this.qqVipMask           = detailInfo.dwQQVIPMask;
                for (int i = 0; i < detailInfo.stStatistic.stKVDetail.dwNum; i++)
                {
                    COMDT_STATISTIC_KEY_VALUE_INFO comdt_statistic_key_value_info = detailInfo.stStatistic.stKVDetail.astKVDetail[i];
                    switch (((RES_STATISTIC_SETTLE_DATA_TYPE)comdt_statistic_key_value_info.dwKey))
                    {
                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_MVP_CNT:
                        this._mvpCnt = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_LOSE_SOUL:
                        this._loseMvpCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_GODLIKE_CNT:
                        this._holyShitCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_DOUBLE_KILL_CNT:
                        this._doubleKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_TRIPLE_KILL_CNT:
                        this._trippleKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_QUATARY_KILL_CNT:
                        this._quataryKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_PENTA_KILL_CNT:
                        this._pentaKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;
                    }
                }
                this._5V5TotalCount           = (int)detailInfo.stStatistic.stFiveVsFiveInfo.dwTotalNum;
                this._5V5WinCount             = (int)detailInfo.stStatistic.stFiveVsFiveInfo.dwWinNum;
                this._3V3TotalCount           = (int)detailInfo.stStatistic.stThreeVsThreeInfo.dwTotalNum;
                this._3V3WinCount             = (int)detailInfo.stStatistic.stThreeVsThreeInfo.dwWinNum;
                this._2V2TotalCount           = (int)detailInfo.stStatistic.stTwoVsTwoInfo.dwTotalNum;
                this._2V2WinCount             = (int)detailInfo.stStatistic.stTwoVsTwoInfo.dwWinNum;
                this._1V1TotalCount           = (int)detailInfo.stStatistic.stOneVsOneInfo.dwTotalNum;
                this._1V1WinCount             = (int)detailInfo.stStatistic.stOneVsOneInfo.dwWinNum;
                this._vsAiTotalCount          = (int)detailInfo.stStatistic.stVsMachineInfo.dwTotalNum;
                this._vsAiWinCount            = (int)detailInfo.stStatistic.stVsMachineInfo.dwWinNum;
                this._rankTotalCount          = (int)detailInfo.stStatistic.stLadderInfo.dwTotalNum;
                this._rankWinCount            = (int)detailInfo.stStatistic.stLadderInfo.dwWinNum;
                this._entertainmentTotalCount = (int)detailInfo.stStatistic.stEntertainmentInfo.dwTotalNum;
                this._entertainmentWinCount   = (int)detailInfo.stStatistic.stEntertainmentInfo.dwWinNum;
                this._heroCnt  = (int)detailInfo.stMostUsedHero.dwTotalHeroNum;
                this._skinCnt  = (int)detailInfo.stMostUsedHero.dwTotalSkinNum;
                this._isOnLine = detailInfo.bIsOnline != 0;
                if (this._mostUsedHeroList == null)
                {
                    this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
                }
                else
                {
                    this._mostUsedHeroList.Clear();
                }
                int num2 = (int)Mathf.Min((float)detailInfo.stMostUsedHero.dwHeroNum, (float)detailInfo.stMostUsedHero.astHeroInfoList.Length);
                for (int j = 0; j < num2; j++)
                {
                    this._mostUsedHeroList.Add(detailInfo.stMostUsedHero.astHeroInfoList[j]);
                }
                this.SortMostUsedHeroList();
            }
        }
        private void RefreshOneWinCntElement(GameObject element, int index)
        {
            CSDT_RANKING_LIST_SUCC listInfo = this.m_UnionRankInfo[(int)this.m_CurSelRankType].listInfo;

            if (element != null && listInfo != null && index < listInfo.astItemDetail.Length && (long)index < (long)((ulong)listInfo.dwItemNum))
            {
                RankingItemHelper component = element.GetComponent <RankingItemHelper>();
                string            text      = string.Empty;
                uint dwRankScore            = listInfo.astItemDetail[index].dwRankScore;
                COMDT_RANKING_LIST_ITEM_EXTRA_PLAYER rankItemDetailInfo = this.GetRankItemDetailInfo(this.m_CurSelRankType, index);
                text = StringHelper.UTF8BytesToString(ref rankItemDetailInfo.szPlayerName);
                uint   dwPvpLevel = rankItemDetailInfo.dwPvpLevel;
                string serverUrl  = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref rankItemDetailInfo.szHeadUrl);

                uint dwCurLevel               = rankItemDetailInfo.stGameVip.dwCurLevel;
                uint dwHeadIconId             = rankItemDetailInfo.stGameVip.dwHeadIconId;
                COM_PRIVILEGE_TYPE bPrivilege = rankItemDetailInfo.bPrivilege;
                uint dwVipLevel               = rankItemDetailInfo.dwVipLevel;
                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, bPrivilege, 1, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, bPrivilege, 2, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, bPrivilege, 5, true, false);

                CUnionBattleRankSystem.SetGameObjChildText(element, "NameGroup/PlayerName", text);
                CUnionBattleRankSystem.SetGameObjChildText(element, "PlayerLv", string.Format("Lv.{0}", Math.Max(1u, dwPvpLevel)));
                element.transform.FindChild("Value").gameObject.CustomSetActive(true);
                CUnionBattleRankSystem.SetGameObjChildText(element, "Value", dwRankScore.ToString(CultureInfo.get_InvariantCulture()));
                uint rankNumber = (uint)(index + 1);
                CUnionBattleRankSystem.RankNobSet(rankNumber, component);
                if (!CSysDynamicBlock.bSocialBlocked)
                {
                    if (rankItemDetailInfo.ullUid == Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().playerUllUID)
                    {
                        MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());

                        MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.VipIcon.GetComponent <Image>(), (int)Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().GetNobeInfo().stGameVipClient.dwCurLevel, false);

                        MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component.HeadIconFrame.GetComponent <Image>(), (int)Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().GetNobeInfo().stGameVipClient.dwHeadIconId);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 1, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 2, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 5, true, false);

                        RankingView.SetHostUrlHeadIcon(component.HeadIcon);
                    }
                    else
                    {
                        MonoSingleton <NobeSys> .GetInstance().SetOtherQQVipHead(component.QqVip.GetComponent <Image>(), (int)dwVipLevel);

                        MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.VipIcon.GetComponent <Image>(), (int)dwCurLevel, false);

                        MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component.HeadIconFrame.GetComponent <Image>(), (int)dwHeadIconId);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, bPrivilege, 1, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, bPrivilege, 2, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, bPrivilege, 5, true, false);

                        RankingView.SetUrlHeadIcon(component.HeadIcon, serverUrl);
                    }
                }
            }
        }
Exemple #12
0
        public void ConvertServerDetailData(CSDT_ACNT_DETAIL_INFO detailInfo)
        {
            this.ResetData();
            this._doubleKillCount  = 0;
            this._trippleKillCount = 0;
            this._quataryKillCount = 0;
            this._pentaKillCount   = 0;
            this._holyShitCount    = 0;
            this._mvpCnt           = 0;
            this._loseMvpCount     = 0;
            if (detailInfo != null)
            {
                this._playerName               = StringHelper.UTF8BytesToString(ref detailInfo.szAcntName);
                this.m_personSign              = StringHelper.UTF8BytesToString(ref detailInfo.szSignatureInfo);
                this.m_uuid                    = detailInfo.ullUid;
                this.m_iLogicWorldId           = detailInfo.iLogicWorldId;
                this.m_vipInfo                 = new SCPKG_GAME_VIP_NTF();
                this.m_vipInfo.stGameVipClient = detailInfo.stGameVip;
                this._playerHeadUrl            = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref detailInfo.szOpenUrl);

                this._playerLevel = detailInfo.dwLevel;
                ResAcntExpInfo dataByKey = GameDataMgr.acntExpDatabin.GetDataByKey(this._playerLevel);
                this._playerNeedExp           = dataByKey.dwNeedExp;
                this._playerExp               = detailInfo.dwExp;
                this.creditScore              = detailInfo.dwCreditValue;
                this._power                   = detailInfo.dwPower;
                this._pvpLevel                = detailInfo.dwPvpLevel;
                this._playerPvpExp            = detailInfo.dwPvpExp;
                this._gender                  = (COM_SNSGENDER)detailInfo.bGender;
                this._privilegeType           = (COM_PRIVILEGE_TYPE)detailInfo.bPrivilege;
                this._rankGrade               = detailInfo.bGradeOfRank;
                this._rankHistoryHighestGrade = detailInfo.bMaxGradeOfRank;
                this._rankClass               = detailInfo.dwCurClassOfRank;
                this._rankHistoryHighestClass = detailInfo.stRankInfo.dwTopClassOfRank;
                this.GuildName                = StringHelper.UTF8BytesToString(ref detailInfo.stGuildInfo.szGuildName);
                this.GuildState               = (COM_PLAYER_GUILD_STATE)detailInfo.stGuildInfo.bGuildState;
                this.qqVipMask                = detailInfo.dwQQVIPMask;
                for (int i = 0; i < detailInfo.stStatistic.stKVDetail.dwNum; i++)
                {
                    COMDT_STATISTIC_KEY_VALUE_INFO comdt_statistic_key_value_info = detailInfo.stStatistic.stKVDetail.astKVDetail[i];
                    switch (((RES_STATISTIC_SETTLE_DATA_TYPE)comdt_statistic_key_value_info.dwKey))
                    {
                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_MVP_CNT:
                        this._mvpCnt = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_LOSE_SOUL:
                        this._loseMvpCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_GODLIKE_CNT:
                        this._holyShitCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_DOUBLE_KILL_CNT:
                        this._doubleKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_TRIPLE_KILL_CNT:
                        this._trippleKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_QUATARY_KILL_CNT:
                        this._quataryKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_PENTA_KILL_CNT:
                        this._pentaKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;
                    }
                }
                this._5V5TotalCount           = (int)detailInfo.stStatistic.stFiveVsFiveInfo.dwTotalNum;
                this._5V5WinCount             = (int)detailInfo.stStatistic.stFiveVsFiveInfo.dwWinNum;
                this._3V3TotalCount           = (int)detailInfo.stStatistic.stThreeVsThreeInfo.dwTotalNum;
                this._3V3WinCount             = (int)detailInfo.stStatistic.stThreeVsThreeInfo.dwWinNum;
                this._2V2TotalCount           = (int)detailInfo.stStatistic.stTwoVsTwoInfo.dwTotalNum;
                this._2V2WinCount             = (int)detailInfo.stStatistic.stTwoVsTwoInfo.dwWinNum;
                this._1V1TotalCount           = (int)detailInfo.stStatistic.stOneVsOneInfo.dwTotalNum;
                this._1V1WinCount             = (int)detailInfo.stStatistic.stOneVsOneInfo.dwWinNum;
                this._vsAiTotalCount          = (int)detailInfo.stStatistic.stVsMachineInfo.dwTotalNum;
                this._vsAiWinCount            = (int)detailInfo.stStatistic.stVsMachineInfo.dwWinNum;
                this._rankTotalCount          = (int)detailInfo.stStatistic.stLadderInfo.dwTotalNum;
                this._rankWinCount            = (int)detailInfo.stStatistic.stLadderInfo.dwWinNum;
                this._entertainmentTotalCount = (int)detailInfo.stStatistic.stEntertainmentInfo.dwTotalNum;
                this._entertainmentWinCount   = (int)detailInfo.stStatistic.stEntertainmentInfo.dwWinNum;
                this._heroCnt  = (int)detailInfo.stMostUsedHero.dwTotalHeroNum;
                this._skinCnt  = (int)detailInfo.stMostUsedHero.dwTotalSkinNum;
                this._isOnLine = detailInfo.bIsOnline != 0;
                if (this._mostUsedHeroList == null)
                {
                    this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
                }
                else
                {
                    this._mostUsedHeroList.Clear();
                }
                int num2 = (int)Mathf.Min((float)detailInfo.stMostUsedHero.dwHeroNum, (float)detailInfo.stMostUsedHero.astHeroInfoList.Length);
                for (int j = 0; j < num2; j++)
                {
                    this._mostUsedHeroList.Add(detailInfo.stMostUsedHero.astHeroInfoList[j]);
                }
                this.SortMostUsedHeroList();
                if ((detailInfo.stHonorInfo == null) || (detailInfo.stHonorInfo.bHonorCnt < 6))
                {
                    Singleton <CRoleInfoManager> .instance.InsertHonorOnDuplicateUpdate(ref this._honorDic, 1, 0);

                    Singleton <CRoleInfoManager> .instance.InsertHonorOnDuplicateUpdate(ref this._honorDic, 2, 0);

                    Singleton <CRoleInfoManager> .instance.InsertHonorOnDuplicateUpdate(ref this._honorDic, 6, 0);

                    Singleton <CRoleInfoManager> .instance.InsertHonorOnDuplicateUpdate(ref this._honorDic, 4, 0);

                    Singleton <CRoleInfoManager> .instance.InsertHonorOnDuplicateUpdate(ref this._honorDic, 5, 0);

                    Singleton <CRoleInfoManager> .instance.InsertHonorOnDuplicateUpdate(ref this._honorDic, 3, 0);
                }
                if (detailInfo.stHonorInfo != null)
                {
                    for (int k = 0; k < detailInfo.stHonorInfo.bHonorCnt; k++)
                    {
                        COMDT_HONORINFO comdt_honorinfo = detailInfo.stHonorInfo.astHonorInfo[k];
                        switch (comdt_honorinfo.iHonorID)
                        {
                        case 1:
                        case 2:
                        case 3:
                        case 4:
                        case 5:
                        case 6:
                            Singleton <CRoleInfoManager> .instance.InsertHonorOnDuplicateUpdate(ref this._honorDic, comdt_honorinfo.iHonorID, comdt_honorinfo.iHonorPoint);

                            break;
                        }
                    }
                    COMDT_HONORINFO comdt_honorinfo2 = new COMDT_HONORINFO();
                    if (this._honorDic.TryGetValue(detailInfo.stHonorInfo.iCurUseHonorID, out comdt_honorinfo2))
                    {
                        if (comdt_honorinfo2.iHonorLevel > 0)
                        {
                            this._selectedHonorId = detailInfo.stHonorInfo.iCurUseHonorID;
                        }
                        else
                        {
                            this._selectedHonorId = 0;
                        }
                    }
                }
                this._geiLiDuiYou   = (int)detailInfo.stLikeNum.dwTeammateNum;
                this._keJingDuiShou = (int)detailInfo.stLikeNum.dwOpponentNum;
                this._haveExtraCoin = false;
                this._haveExtraExp  = false;
            }
        }
Exemple #13
0
        public static void UpdateOneGodElement(GameObject objElement, int viewIndex, CSDT_RANKING_LIST_SUCC curRankingList)
        {
            if ((curRankingList != null) && (objElement != null))
            {
                RankingItemHelper component = objElement.GetComponent <RankingItemHelper>();
                if (component != null)
                {
                    CSDT_RANKING_LIST_ITEM_INFO csdt_ranking_list_item_info = curRankingList.astItemDetail[viewIndex];
                    if (csdt_ranking_list_item_info != null)
                    {
                        string             text          = string.Empty;
                        uint               dwPvpLevel    = 1;
                        string             serverUrl     = null;
                        ulong              ullUid        = 0L;
                        uint               logicWorldId  = 0;
                        uint               dwCurLevel    = 0;
                        uint               dwHeadIconId  = 0;
                        uint               dwVipLevel    = 0;
                        COM_PRIVILEGE_TYPE privilegeType = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_NONE;
                        COMDT_RANKING_LIST_ITEM_EXTRA_PLAYER stAcntInfo = csdt_ranking_list_item_info.stExtraInfo.stDetailInfo.stMasterHero.stAcntInfo;
                        if (stAcntInfo != null)
                        {
                            text       = StringHelper.UTF8BytesToString(ref stAcntInfo.szPlayerName);
                            dwPvpLevel = stAcntInfo.dwPvpLevel;
                            serverUrl  = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref stAcntInfo.szHeadUrl);

                            ullUid        = stAcntInfo.ullUid;
                            logicWorldId  = (uint)stAcntInfo.iLogicWorldId;
                            dwCurLevel    = stAcntInfo.stGameVip.dwCurLevel;
                            dwHeadIconId  = stAcntInfo.stGameVip.dwHeadIconId;
                            privilegeType = (COM_PRIVILEGE_TYPE)stAcntInfo.bPrivilege;
                            dwVipLevel    = stAcntInfo.dwVipLevel;
                        }
                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, privilegeType, ApolloPlatform.Wechat, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, privilegeType, ApolloPlatform.QQ, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, privilegeType, ApolloPlatform.Guest, true, false);

                        SetGameObjChildText(objElement, "NameGroup/PlayerName", text);
                        SetGameObjChildText(objElement, "PlayerLv", string.Format("Lv.{0}", Math.Max(1, dwPvpLevel)));
                        SetUrlHeadIcon(component.HeadIcon, serverUrl);
                        SetPlatChannel(objElement, logicWorldId);
                        component.LadderGo.CustomSetActive(false);
                        objElement.transform.FindChild("Value").gameObject.CustomSetActive(true);
                        objElement.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
                        component.FindBtn.CustomSetActive(true);
                        component.FindBtn.GetComponent <CUIEventScript>().m_onClickEventParams.tag = viewIndex;
                        Utility.FindChild(component.FindBtn, "Select").CustomSetActive(false);
                        uint     num7 = (csdt_ranking_list_item_info.stExtraInfo.stDetailInfo.stMasterHero.dwWinCnt * 100) / csdt_ranking_list_item_info.stExtraInfo.stDetailInfo.stMasterHero.dwGameCnt;
                        string[] args = new string[] { num7.ToString(), csdt_ranking_list_item_info.stExtraInfo.stDetailInfo.stMasterHero.dwWinCnt.ToString() };
                        SetGameObjChildText(objElement, "ValueType", Singleton <CTextManager> .GetInstance().GetText("ranking_ItemHeroMasterName", args));
                        SetGameObjChildText(objElement, "Value", string.Empty);
                        uint rankNumber = (uint)(viewIndex + 1);
                        RankingNumSet(rankNumber, component);
                        component.AddFriend.CustomSetActive(false);
                        component.SendCoin.CustomSetActive(false);
                        component.Online.CustomSetActive(false);
                        if (dwVipLevel == 0xdf1f9)
                        {
                            MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());
                        }
                        else
                        {
                            MonoSingleton <NobeSys> .GetInstance().SetOtherQQVipHead(component.QqVip.GetComponent <Image>(), (int)dwVipLevel);
                        }
                        MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.VipIcon.GetComponent <Image>(), (int)dwCurLevel, false);

                        MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component.HeadIconFrame.GetComponent <Image>(), (int)dwHeadIconId);
                    }
                }
            }
        }
Exemple #14
0
        public static void UpdateOneGodElement(GameObject objElement, int viewIndex, CSDT_RANKING_LIST_SUCC curRankingList)
        {
            if (curRankingList == null)
            {
                return;
            }
            if (objElement == null)
            {
                return;
            }
            RankingItemHelper component = objElement.GetComponent <RankingItemHelper>();

            if (component == null)
            {
                return;
            }
            CSDT_RANKING_LIST_ITEM_INFO cSDT_RANKING_LIST_ITEM_INFO = curRankingList.astItemDetail[viewIndex];

            if (cSDT_RANKING_LIST_ITEM_INFO == null)
            {
                return;
            }
            string             text          = string.Empty;
            uint               num           = 1u;
            string             serverUrl     = null;
            uint               logicWorldId  = 0u;
            uint               level         = 0u;
            uint               headIdx       = 0u;
            uint               num2          = 0u;
            COM_PRIVILEGE_TYPE privilegeType = 0;
            COMDT_RANKING_LIST_ITEM_EXTRA_PLAYER stAcntInfo = cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().stAcntInfo;

            if (stAcntInfo != null)
            {
                text      = StringHelper.UTF8BytesToString(ref stAcntInfo.szPlayerName);
                num       = stAcntInfo.dwPvpLevel;
                serverUrl = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref stAcntInfo.szHeadUrl);

                ulong ullUid = stAcntInfo.ullUid;
                logicWorldId  = (uint)stAcntInfo.iLogicWorldId;
                level         = stAcntInfo.stGameVip.dwCurLevel;
                headIdx       = stAcntInfo.stGameVip.dwHeadIconId;
                privilegeType = stAcntInfo.bPrivilege;
                num2          = stAcntInfo.dwVipLevel;
            }
            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, privilegeType, 1, true, false);

            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, privilegeType, 2, true, false);

            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, privilegeType, 5, true, false);

            RankingView.SetGameObjChildText(objElement, "NameGroup/PlayerName", text);
            RankingView.SetGameObjChildText(objElement, "PlayerLv", string.Format("Lv.{0}", Math.Max(1u, num)));
            RankingView.SetUrlHeadIcon(component.HeadIcon, serverUrl);
            RankingView.SetPlatChannel(objElement, logicWorldId);
            component.LadderGo.CustomSetActive(false);
            objElement.transform.FindChild("Value").gameObject.CustomSetActive(true);
            objElement.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
            component.FindBtn.CustomSetActive(true);
            component.FindBtn.GetComponent <CUIEventScript>().m_onClickEventParams.tag = viewIndex;
            Utility.FindChild(component.FindBtn, "Select").CustomSetActive(false);
            float num3 = CPlayerProfile.Divide(cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwWinCnt * 100u, cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwGameCnt);

            if (RankingView.RANK_GOD_WIN_CNT == 0u)
            {
                RankingView.RANK_GOD_WIN_CNT = GameDataMgr.globalInfoDatabin.GetDataByKey(226u).dwConfValue;
            }
            if (cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwWinCnt >= RankingView.RANK_GOD_WIN_CNT)
            {
                RankingView.SetGameObjChildText(objElement, "ValueType", Singleton <CTextManager> .GetInstance().GetText("ranking_ItemHeroMasterName", new string[]
                {
                    num3.ToString("F2"),
                    cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwWinCnt.ToString()
                }));
            }
            else
            {
                RankingView.SetGameObjChildText(objElement, "ValueType", Singleton <CTextManager> .GetInstance().GetText("ranking_ItemHeroMasterNameLess100", new string[]
                {
                    cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwWinCnt.ToString()
                }));
            }
            RankingView.SetGameObjChildText(objElement, "Value", string.Empty);
            uint rankNumber = (uint)(viewIndex + 1);

            RankingView.RankingNumSet(rankNumber, component);
            component.AddFriend.CustomSetActive(false);
            component.SendCoin.CustomSetActive(false);
            component.Online.CustomSetActive(false);
            if (num2 == 913913u)
            {
                MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());
            }
            else
            {
                MonoSingleton <NobeSys> .GetInstance().SetOtherQQVipHead(component.QqVip.GetComponent <Image>(), (int)num2);
            }
            MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.VipIcon.GetComponent <Image>(), (int)level, false);

            MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component.HeadIconFrame.GetComponent <Image>(), (int)headIdx);
        }
        public void ConvertRoleInfoData(CRoleInfo roleInfo)
        {
            if (roleInfo == null)
            {
                this.ResetData();
                return;
            }
            this.ResetData();
            this.isMasterData    = (roleInfo == Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo());
            this.m_uuid          = roleInfo.playerUllUID;
            this.m_iLogicWorldId = MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID;

            this.m_vipInfo                = roleInfo.GetNobeInfo();
            this._gender                  = roleInfo.m_gender;
            this._privilegeType           = roleInfo.m_privilegeType;
            this._playerName              = roleInfo.Name;
            this.m_personSign             = roleInfo.PersonSign;
            this._playerHeadUrl           = roleInfo.HeadUrl;
            this._playerLevel             = roleInfo.Level;
            this._playerExp               = roleInfo.Exp;
            this._playerNeedExp           = roleInfo.NeedExp;
            this._power                   = roleInfo.BattlePower;
            this._pvpLevel                = roleInfo.PvpLevel;
            this._playerPvpExp            = roleInfo.PvpExp;
            this._rankGrade               = roleInfo.m_rankGrade;
            this._rankHistoryHighestGrade = roleInfo.m_rankHistoryHighestGrade;
            this._rankClass               = roleInfo.m_rankClass;
            this._rankHistoryHighestClass = roleInfo.m_rankHistoryHighestClass;
            this.GuildName                = roleInfo.m_baseGuildInfo.name;
            this.GuildState               = roleInfo.m_baseGuildInfo.guildState;
            this.creditScore              = roleInfo.creditScore;
            this.sumDelCreditValue        = roleInfo.sumDelCreditValue;
            this.mostDelCreditType        = roleInfo.mostDelCreditType;
            int num = 0;

            while ((long)num < (long)((ulong)roleInfo.pvpDetail.stKVDetail.dwNum))
            {
                COMDT_STATISTIC_KEY_VALUE_INFO cOMDT_STATISTIC_KEY_VALUE_INFO = roleInfo.pvpDetail.stKVDetail.astKVDetail[num];
                RES_STATISTIC_SETTLE_DATA_TYPE dwKey = cOMDT_STATISTIC_KEY_VALUE_INFO.dwKey;
                switch (dwKey)
                {
                case 13:
                    this._mvpCnt = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                case 14:
                    this._loseMvpCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                case 15:
                    this._holyShitCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                case 16:
                    this._doubleKillCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                case 17:
                    this._trippleKillCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                default:
                    if (dwKey != 27)
                    {
                        if (dwKey == 28)
                        {
                            this._pentaKillCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                        }
                    }
                    else
                    {
                        this._quataryKillCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    }
                    break;
                }
                num++;
            }
            this._5V5TotalCount           = (int)roleInfo.pvpDetail.stFiveVsFiveInfo.dwTotalNum;
            this._5V5WinCount             = (int)roleInfo.pvpDetail.stFiveVsFiveInfo.dwWinNum;
            this._3V3TotalCount           = (int)roleInfo.pvpDetail.stThreeVsThreeInfo.dwTotalNum;
            this._3V3WinCount             = (int)roleInfo.pvpDetail.stThreeVsThreeInfo.dwWinNum;
            this._2V2TotalCount           = (int)roleInfo.pvpDetail.stTwoVsTwoInfo.dwTotalNum;
            this._2V2WinCount             = (int)roleInfo.pvpDetail.stTwoVsTwoInfo.dwWinNum;
            this._1V1TotalCount           = (int)roleInfo.pvpDetail.stOneVsOneInfo.dwTotalNum;
            this._1V1WinCount             = (int)roleInfo.pvpDetail.stOneVsOneInfo.dwWinNum;
            this._guildTotalCount         = (int)roleInfo.pvpDetail.stGuildMatch.dwTotalNum;
            this._guildWinCount           = (int)roleInfo.pvpDetail.stGuildMatch.dwWinNum;
            this._vsAiTotalCount          = (int)roleInfo.pvpDetail.stVsMachineInfo.dwTotalNum;
            this._vsAiWinCount            = (int)roleInfo.pvpDetail.stVsMachineInfo.dwWinNum;
            this._rankTotalCount          = (int)roleInfo.pvpDetail.stLadderInfo.dwTotalNum;
            this._rankWinCount            = (int)roleInfo.pvpDetail.stLadderInfo.dwWinNum;
            this._entertainmentTotalCount = (int)roleInfo.pvpDetail.stEntertainmentInfo.dwTotalNum;
            this._entertainmentWinCount   = (int)roleInfo.pvpDetail.stEntertainmentInfo.dwWinNum;
            this._heroCnt  = roleInfo.GetHaveHeroCount(false);
            this._skinCnt  = roleInfo.GetHeroSkinCount(false);
            this._isOnLine = true;
            if (this._mostUsedHeroList == null)
            {
                this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
            }
            else
            {
                this._mostUsedHeroList.Clear();
            }
            int num2 = (int)Mathf.Min(roleInfo.MostUsedHeroDetail.dwHeroNum, (float)roleInfo.MostUsedHeroDetail.astHeroInfoList.Length);

            for (int i = 0; i < num2; i++)
            {
                this._mostUsedHeroList.Add(roleInfo.MostUsedHeroDetail.astHeroInfoList[i]);
            }
            this.SortMostUsedHeroList();
            this._selectedHonorId = roleInfo.selectedHonorID;
            Dictionary <int, COMDT_HONORINFO> .Enumerator enumerator = roleInfo.honorDic.GetEnumerator();
            while (enumerator.MoveNext())
            {
                KeyValuePair <int, COMDT_HONORINFO> current = enumerator.get_Current();
                int key = current.get_Key();
                Dictionary <int, COMDT_HONORINFO>   arg_47A_0 = this._honorDic;
                KeyValuePair <int, COMDT_HONORINFO> current2  = enumerator.get_Current();
                if (!arg_47A_0.ContainsKey(current2.get_Key()))
                {
                    Dictionary <int, COMDT_HONORINFO> arg_49C_0 = this._honorDic;
                    int arg_49C_1 = key;
                    KeyValuePair <int, COMDT_HONORINFO> current3 = enumerator.get_Current();
                    arg_49C_0.Add(arg_49C_1, current3.get_Value());
                }
            }
            this._geiLiDuiYou   = roleInfo.GeiLiDuiYou;
            this._keJingDuiShou = roleInfo.KeJingDuiShou;
            this._haveExtraCoin = roleInfo.HaveExtraCoin();
            if (this._haveExtraCoin)
            {
                this._coinExpireHours = roleInfo.GetCoinExpireHours();
                this._coinWinCount    = roleInfo.GetCoinWinCount();
            }
            this._haveExtraExp = roleInfo.HaveExtraExp();
            if (this._haveExtraExp)
            {
                this._expExpireHours = roleInfo.GetExpExpireHours();
                this._expWinCount    = roleInfo.GetExpWinCount();
            }
            this.pvpExtraDetail   = roleInfo.pvpDetail.stMultiExtraDetail;
            this.pvpAbilityDetail = roleInfo.pvpDetail.stRadarDetail;
            CAchieveInfo2 achieveInfo = CAchieveInfo2.GetAchieveInfo(roleInfo.logicWorldID, roleInfo.playerUllUID, false);

            if (achieveInfo != null)
            {
                if (achieveInfo.LastDoneTrophyRewardInfo != null)
                {
                    this._trophyRewardInfoLevel = achieveInfo.LastDoneTrophyRewardInfo.Cfg.dwTrophyLvl;
                }
                else
                {
                    DebugHelper.Assert(false, "cheieveInfo.LastDoneTrophyRewardInfo is null,wordID{0},uid{1}", new object[]
                    {
                        roleInfo.logicWorldID,
                        roleInfo.playerUllUID
                    });
                }
                this._trophyRank = achieveInfo.GetWorldRank();
                if (achieveInfo.SelectedTrophies != null)
                {
                    Array.Copy(achieveInfo.SelectedTrophies, this._selectedTrophies, achieveInfo.SelectedTrophies.Length);
                }
                else
                {
                    DebugHelper.Assert(false, "cheieveInfo.SelectedTrophies is null,wordID{0},uid{1}", new object[]
                    {
                        roleInfo.logicWorldID,
                        roleInfo.playerUllUID
                    });
                }
                this._mentorInfo = Utility.DeepCopyByReflection <COMDT_ACNT_MASTER_INFO>(roleInfo.m_mentorInfo);
            }
            else
            {
                DebugHelper.Assert(false, "cheieveInfo is null,wordID{0},uid{1}", new object[]
                {
                    roleInfo.logicWorldID,
                    roleInfo.playerUllUID
                });
            }
        }
        public void ConvertServerDetailData(CSDT_ACNT_DETAIL_INFO detailInfo)
        {
            this.isMasterData = false;
            this.ResetData();
            this._doubleKillCount  = 0;
            this._trippleKillCount = 0;
            this._quataryKillCount = 0;
            this._pentaKillCount   = 0;
            this._holyShitCount    = 0;
            this._mvpCnt           = 0;
            this._loseMvpCount     = 0;
            if (detailInfo == null)
            {
                return;
            }
            this._playerName               = StringHelper.UTF8BytesToString(ref detailInfo.szAcntName);
            this.m_personSign              = StringHelper.UTF8BytesToString(ref detailInfo.szSignatureInfo);
            this.m_uuid                    = detailInfo.ullUid;
            this.m_iLogicWorldId           = detailInfo.iLogicWorldId;
            this.m_vipInfo                 = new SCPKG_GAME_VIP_NTF();
            this.m_vipInfo.stGameVipClient = detailInfo.stGameVip;
            this._playerHeadUrl            = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref detailInfo.szOpenUrl);

            this._playerLevel = detailInfo.dwLevel;
            ResAcntExpInfo dataByKey = GameDataMgr.acntExpDatabin.GetDataByKey(this._playerLevel);

            this._playerNeedExp           = dataByKey.dwNeedExp;
            this._playerExp               = detailInfo.dwExp;
            this.creditScore              = detailInfo.dwCreditValue;
            this.sumDelCreditValue        = detailInfo.iSumDelCreditValue * -1;
            this.mostDelCreditType        = detailInfo.dwMostDelCreditType;
            this._power                   = detailInfo.dwPower;
            this._pvpLevel                = detailInfo.dwPvpLevel;
            this._playerPvpExp            = detailInfo.dwPvpExp;
            this._gender                  = detailInfo.bGender;
            this._privilegeType           = detailInfo.bPrivilege;
            this._rankGrade               = detailInfo.bGradeOfRank;
            this._rankHistoryHighestGrade = detailInfo.bMaxGradeOfRank;
            this._rankClass               = detailInfo.dwCurClassOfRank;
            this._rankHistoryHighestClass = detailInfo.stRankInfo.dwTopClassOfRank;
            this.GuildName                = StringHelper.UTF8BytesToString(ref detailInfo.stGuildInfo.szGuildName);
            this.GuildState               = detailInfo.stGuildInfo.bGuildState;
            this.qqVipMask                = detailInfo.dwQQVIPMask;
            int num = 0;

            while ((long)num < (long)((ulong)detailInfo.stStatistic.stKVDetail.dwNum))
            {
                COMDT_STATISTIC_KEY_VALUE_INFO cOMDT_STATISTIC_KEY_VALUE_INFO = detailInfo.stStatistic.stKVDetail.astKVDetail[num];
                RES_STATISTIC_SETTLE_DATA_TYPE dwKey = cOMDT_STATISTIC_KEY_VALUE_INFO.dwKey;
                switch (dwKey)
                {
                case 13:
                    this._mvpCnt = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                case 14:
                    this._loseMvpCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                case 15:
                    this._holyShitCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                case 16:
                    this._doubleKillCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                case 17:
                    this._trippleKillCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    break;

                default:
                    if (dwKey != 27)
                    {
                        if (dwKey == 28)
                        {
                            this._pentaKillCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                        }
                    }
                    else
                    {
                        this._quataryKillCount = (int)cOMDT_STATISTIC_KEY_VALUE_INFO.dwValue;
                    }
                    break;
                }
                num++;
            }
            this._5V5TotalCount           = (int)detailInfo.stStatistic.stFiveVsFiveInfo.dwTotalNum;
            this._5V5WinCount             = (int)detailInfo.stStatistic.stFiveVsFiveInfo.dwWinNum;
            this._3V3TotalCount           = (int)detailInfo.stStatistic.stThreeVsThreeInfo.dwTotalNum;
            this._3V3WinCount             = (int)detailInfo.stStatistic.stThreeVsThreeInfo.dwWinNum;
            this._2V2TotalCount           = (int)detailInfo.stStatistic.stTwoVsTwoInfo.dwTotalNum;
            this._2V2WinCount             = (int)detailInfo.stStatistic.stTwoVsTwoInfo.dwWinNum;
            this._1V1TotalCount           = (int)detailInfo.stStatistic.stOneVsOneInfo.dwTotalNum;
            this._1V1WinCount             = (int)detailInfo.stStatistic.stOneVsOneInfo.dwWinNum;
            this._guildTotalCount         = (int)detailInfo.stStatistic.stGuildMatch.dwTotalNum;
            this._guildWinCount           = (int)detailInfo.stStatistic.stGuildMatch.dwWinNum;
            this._vsAiTotalCount          = (int)detailInfo.stStatistic.stVsMachineInfo.dwTotalNum;
            this._vsAiWinCount            = (int)detailInfo.stStatistic.stVsMachineInfo.dwWinNum;
            this._rankTotalCount          = (int)detailInfo.stStatistic.stLadderInfo.dwTotalNum;
            this._rankWinCount            = (int)detailInfo.stStatistic.stLadderInfo.dwWinNum;
            this._entertainmentTotalCount = (int)detailInfo.stStatistic.stEntertainmentInfo.dwTotalNum;
            this._entertainmentWinCount   = (int)detailInfo.stStatistic.stEntertainmentInfo.dwWinNum;
            this._heroCnt  = (int)detailInfo.stMostUsedHero.dwTotalHeroNum;
            this._skinCnt  = (int)detailInfo.stMostUsedHero.dwTotalSkinNum;
            this._isOnLine = (detailInfo.bIsOnline != 0);
            if (this._mostUsedHeroList == null)
            {
                this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
            }
            else
            {
                this._mostUsedHeroList.Clear();
            }
            int num2 = (int)Mathf.Min(detailInfo.stMostUsedHero.dwHeroNum, (float)detailInfo.stMostUsedHero.astHeroInfoList.Length);

            for (int i = 0; i < num2; i++)
            {
                this._mostUsedHeroList.Add(detailInfo.stMostUsedHero.astHeroInfoList[i]);
            }
            this.SortMostUsedHeroList();
            if (detailInfo.stHonorInfo == null || detailInfo.stHonorInfo.bHonorCnt < 6)
            {
                Singleton <CRoleInfoManager> .get_instance().InsertHonorOnDuplicateUpdate(ref this._honorDic, 1, 0);

                Singleton <CRoleInfoManager> .get_instance().InsertHonorOnDuplicateUpdate(ref this._honorDic, 2, 0);

                Singleton <CRoleInfoManager> .get_instance().InsertHonorOnDuplicateUpdate(ref this._honorDic, 6, 0);

                Singleton <CRoleInfoManager> .get_instance().InsertHonorOnDuplicateUpdate(ref this._honorDic, 4, 0);

                Singleton <CRoleInfoManager> .get_instance().InsertHonorOnDuplicateUpdate(ref this._honorDic, 5, 0);

                Singleton <CRoleInfoManager> .get_instance().InsertHonorOnDuplicateUpdate(ref this._honorDic, 3, 0);
            }
            if (detailInfo.stHonorInfo != null)
            {
                for (int j = 0; j < (int)detailInfo.stHonorInfo.bHonorCnt; j++)
                {
                    COMDT_HONORINFO cOMDT_HONORINFO = detailInfo.stHonorInfo.astHonorInfo[j];
                    switch (cOMDT_HONORINFO.iHonorID)
                    {
                    case 1:
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                    case 6:
                        Singleton <CRoleInfoManager> .get_instance().InsertHonorOnDuplicateUpdate(ref this._honorDic, cOMDT_HONORINFO.iHonorID, cOMDT_HONORINFO.iHonorPoint);

                        break;
                    }
                }
                COMDT_HONORINFO cOMDT_HONORINFO2 = new COMDT_HONORINFO();
                if (this._honorDic.TryGetValue(detailInfo.stHonorInfo.iCurUseHonorID, ref cOMDT_HONORINFO2))
                {
                    if (cOMDT_HONORINFO2.iHonorLevel > 0)
                    {
                        this._selectedHonorId = detailInfo.stHonorInfo.iCurUseHonorID;
                    }
                    else
                    {
                        this._selectedHonorId = 0;
                    }
                }
            }
            this._geiLiDuiYou     = (int)detailInfo.stLikeNum.dwTeammateNum;
            this._keJingDuiShou   = (int)detailInfo.stLikeNum.dwOpponentNum;
            this._haveExtraCoin   = false;
            this._haveExtraExp    = false;
            this.pvpExtraDetail   = detailInfo.stStatistic.stMultiExtraDetail;
            this.pvpAbilityDetail = detailInfo.stStatistic.stRadarDetail;
            CAchieveInfo2 achieveInfo = CAchieveInfo2.GetAchieveInfo(detailInfo.iLogicWorldId, detailInfo.ullUid, false);

            achieveInfo.OnServerAchieveInfo(detailInfo.astShowAchievement, detailInfo.dwAchieveMentScore);
            this._trophyRewardInfoLevel = achieveInfo.LastDoneTrophyRewardInfo.Cfg.dwTrophyLvl;
            this._trophyRank            = achieveInfo.GetWorldRank();
            Array.Copy(achieveInfo.SelectedTrophies, this._selectedTrophies, achieveInfo.SelectedTrophies.Length);
            this._mentorInfo = Utility.DeepCopyByReflection <COMDT_ACNT_MASTER_INFO>(detailInfo.stAcntMasterInfo);
        }
Exemple #17
0
        public void ConvertRoleInfoData(CRoleInfo roleInfo)
        {
            if (roleInfo == null)
            {
                this.ResetData();
            }
            else
            {
                this.ResetData();
                this.m_uuid          = roleInfo.playerUllUID;
                this.m_iLogicWorldId = MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID;

                this.m_vipInfo                = roleInfo.GetNobeInfo();
                this._gender                  = roleInfo.m_gender;
                this._privilegeType           = roleInfo.m_privilegeType;
                this._playerName              = roleInfo.Name;
                this.m_personSign             = roleInfo.PersonSign;
                this._playerHeadUrl           = roleInfo.HeadUrl;
                this._playerLevel             = roleInfo.Level;
                this._playerExp               = roleInfo.Exp;
                this._playerNeedExp           = roleInfo.NeedExp;
                this._power                   = roleInfo.BattlePower;
                this._pvpLevel                = roleInfo.PvpLevel;
                this._playerPvpExp            = roleInfo.PvpExp;
                this._rankGrade               = roleInfo.m_rankGrade;
                this._rankHistoryHighestGrade = roleInfo.m_rankHistoryHighestGrade;
                this._rankClass               = roleInfo.m_rankClass;
                this._rankHistoryHighestClass = roleInfo.m_rankHistoryHighestClass;
                this.GuildName                = roleInfo.m_baseGuildInfo.name;
                this.GuildState               = roleInfo.m_baseGuildInfo.guildState;
                this.creditScore              = roleInfo.creditScore;
                for (int i = 0; i < roleInfo.pvpDetail.stKVDetail.dwNum; i++)
                {
                    COMDT_STATISTIC_KEY_VALUE_INFO comdt_statistic_key_value_info = roleInfo.pvpDetail.stKVDetail.astKVDetail[i];
                    switch (((RES_STATISTIC_SETTLE_DATA_TYPE)comdt_statistic_key_value_info.dwKey))
                    {
                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_MVP_CNT:
                        this._mvpCnt = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_LOSE_SOUL:
                        this._loseMvpCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_GODLIKE_CNT:
                        this._holyShitCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_DOUBLE_KILL_CNT:
                        this._doubleKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_TRIPLE_KILL_CNT:
                        this._trippleKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_QUATARY_KILL_CNT:
                        this._quataryKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;

                    case RES_STATISTIC_SETTLE_DATA_TYPE.RES_STATISTIC_SETTLE_DATA_TYPE_PENTA_KILL_CNT:
                        this._pentaKillCount = (int)comdt_statistic_key_value_info.dwValue;
                        break;
                    }
                }
                this._5V5TotalCount           = (int)roleInfo.pvpDetail.stFiveVsFiveInfo.dwTotalNum;
                this._5V5WinCount             = (int)roleInfo.pvpDetail.stFiveVsFiveInfo.dwWinNum;
                this._3V3TotalCount           = (int)roleInfo.pvpDetail.stThreeVsThreeInfo.dwTotalNum;
                this._3V3WinCount             = (int)roleInfo.pvpDetail.stThreeVsThreeInfo.dwWinNum;
                this._2V2TotalCount           = (int)roleInfo.pvpDetail.stTwoVsTwoInfo.dwTotalNum;
                this._2V2WinCount             = (int)roleInfo.pvpDetail.stTwoVsTwoInfo.dwWinNum;
                this._1V1TotalCount           = (int)roleInfo.pvpDetail.stOneVsOneInfo.dwTotalNum;
                this._1V1WinCount             = (int)roleInfo.pvpDetail.stOneVsOneInfo.dwWinNum;
                this._vsAiTotalCount          = (int)roleInfo.pvpDetail.stVsMachineInfo.dwTotalNum;
                this._vsAiWinCount            = (int)roleInfo.pvpDetail.stVsMachineInfo.dwWinNum;
                this._rankTotalCount          = (int)roleInfo.pvpDetail.stLadderInfo.dwTotalNum;
                this._rankWinCount            = (int)roleInfo.pvpDetail.stLadderInfo.dwWinNum;
                this._entertainmentTotalCount = (int)roleInfo.pvpDetail.stEntertainmentInfo.dwTotalNum;
                this._entertainmentWinCount   = (int)roleInfo.pvpDetail.stEntertainmentInfo.dwWinNum;
                this._heroCnt  = roleInfo.GetHaveHeroCount(false);
                this._skinCnt  = roleInfo.GetHeroSkinCount(false);
                this._isOnLine = true;
                if (this._mostUsedHeroList == null)
                {
                    this._mostUsedHeroList = new ListView <COMDT_MOST_USED_HERO_INFO>();
                }
                else
                {
                    this._mostUsedHeroList.Clear();
                }
                int num2 = (int)Mathf.Min((float)roleInfo.MostUsedHeroDetail.dwHeroNum, (float)roleInfo.MostUsedHeroDetail.astHeroInfoList.Length);
                for (int j = 0; j < num2; j++)
                {
                    this._mostUsedHeroList.Add(roleInfo.MostUsedHeroDetail.astHeroInfoList[j]);
                }
                this.SortMostUsedHeroList();
                this._selectedHonorId = roleInfo.selectedHonorID;
                Dictionary <int, COMDT_HONORINFO> .Enumerator enumerator = roleInfo.honorDic.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    KeyValuePair <int, COMDT_HONORINFO> current = enumerator.Current;
                    int key = current.Key;
                    KeyValuePair <int, COMDT_HONORINFO> pair2 = enumerator.Current;
                    if (!this._honorDic.ContainsKey(pair2.Key))
                    {
                        KeyValuePair <int, COMDT_HONORINFO> pair3 = enumerator.Current;
                        this._honorDic.Add(key, pair3.Value);
                    }
                }
                this._geiLiDuiYou   = roleInfo.GeiLiDuiYou;
                this._keJingDuiShou = roleInfo.KeJingDuiShou;
                this._haveExtraCoin = roleInfo.HaveExtraCoin();
                if (this._haveExtraCoin)
                {
                    this._coinExpireHours = roleInfo.GetCoinExpireHours();
                    this._coinWinCount    = roleInfo.GetCoinWinCount();
                }
                this._haveExtraExp = roleInfo.HaveExtraExp();
                if (this._haveExtraExp)
                {
                    this._expExpireHours = roleInfo.GetExpExpireHours();
                    this._expWinCount    = roleInfo.GetExpWinCount();
                }
            }
        }