Exemplo n.º 1
0
        //请求排行榜数据
        //public void CLIENT2LOBBY_GET_RANKING_LIST_REQ()
        //{
        //    GetRankingListReq req = new GetRankingListReq();
        //    ProtocolProxy.instance.SendProtocol(req);
        //}
        //请求挑战
        public void CLIENT2LOBBY_RANK_ARENA_CHANLLENGE_REQ(PvpFighterInfo fighter)
        {
            RankArenaChallengeReq req = new RankArenaChallengeReq();

            req.opponentId     = (int)fighter.id;
            req.opponentRankNo = fighter.rank;
            ProtocolProxy.instance.SendProtocol(req);
        }
Exemplo n.º 2
0
        //pvp竞技场比赛
        public static void SendArenaChanllengReq()
        {
            //			if (PvpProxy.instance.PvpInfo.remainChallengeTimes == 0)
            //			{
            //				CommonErrorTipsView.Open(Localization.Get("ui.pvp_formation_view.notEnoughChallengeTimes"));
            //				return;
            //			}
            PvpFighterInfo challengeFighter = PvpProxy.instance.ChallengeFighter;

            PvpController.instance.CLIENT2LOBBY_RANK_ARENA_CHANLLENGE_REQ(challengeFighter);
        }
Exemplo n.º 3
0
 public void ClickReadyFightBtnHandler()
 {
     if (_isReadyFight)
     {
         if (PvpProxy.instance.PvpInfo.remainChallengeTimes == 0)
         {
             CommonErrorTipsView.Open(Localization.Get("ui.pvp_formation_view.notEnoughChallengeTimes"));
             return;
         }
         PvpFighterInfo challengeFighter = PvpProxy.instance.ChallengeFighter;
         PvpController.instance.CLIENT2LOBBY_RANK_ARENA_CHANLLENGE_REQ(challengeFighter);
     }
 }
Exemplo n.º 4
0
 public void SetPvpFighterInfo(PvpFighterInfo info)
 {
     pvpFighterInfo = info;
     Refresh();
 }