Ejemplo n.º 1
0
        //----------------------------------------  更新数据  ----------------------------------------------//

        //

        public void UpdateMyArenaInfo(HeroesPanelMsg_19_0 heroesPanelMsg_19_0)
        {
            _myArenaVo.rank = heroesPanelMsg_19_0.pos;
            _myArenaVo.challengeRemainTimes = heroesPanelMsg_19_0.restTimes;
            _myArenaVo.cd = heroesPanelMsg_19_0.cd;
            this.ChallengeCDTime(_myArenaVo.cd);                // 只用于小红点

            _myArenaVo.win      = heroesPanelMsg_19_0.win;
            _myArenaVo.bestRank = heroesPanelMsg_19_0.best;
            _myArenaVo.buyTimes = heroesPanelMsg_19_0.buyTimes;
            this.GetAwardByRank(_myArenaVo.rank, out _myArenaVo.awardDiamBind);
            Log.info(this, "更新竞技场信息");
            DataUpdate(UPDATE_ARENA);
        }
Ejemplo n.º 2
0
        //服务器返回竞技场信息
        private void Fun_19_0(INetData data)
        {
            Log.info(this, "服务器返回19_0竞技场信息给客户端");
            HeroesPanelMsg_19_0 heroesPanelMsg_19_0 = new HeroesPanelMsg_19_0();

            heroesPanelMsg_19_0.read(data.GetMemoryStream());
            if (heroesPanelMsg_19_0.code == 0)
            {
                Singleton <ArenaMode> .Instance.UpdateMyArenaInfo(heroesPanelMsg_19_0);
            }
            else
            {
                ErrorCodeManager.ShowError(heroesPanelMsg_19_0.code);
                return;
            }
        }