Пример #1
0
 public void EndReplay()
 {
     this._state  = ReplayController.State.None;
     this._inGame = false;
     Task.Clear(ref this._dispatchTask);
     PvpUtils.GoHome();
 }
Пример #2
0
        private void OnBattleEnd(MobaMessage msg)
        {
            P2CBattleEndInfo probufMsg = msg.GetProbufMsg <P2CBattleEndInfo>();
            PvpTeamInfo      teamInfo  = probufMsg.teamInfo;

            Singleton <PvpManager> .Instance.RoomInfo.WinTeam      = new TeamType?(PvpProtocolTools.GroupToTeam((int)probufMsg.winGroup));
            Singleton <PvpManager> .Instance.RoomInfo.BattleResult = teamInfo;
            this.OnAfterBattleEnd(probufMsg);
            AutoTestController.InvokeTestLogic(AutoTestTag.LeavePvp, delegate
            {
                PvpUtils.GoHome();
            }, 1f);
        }
Пример #3
0
 protected override void OnEnter()
 {
     base.OnEnter();
     PvpMatchMgr.Instance.QuitMatch(false);
     if (!NetWorkHelper.Instance.GateReconnection.Available)
     {
         NetWorkHelper.Instance.GateReconnection.Begin();
     }
     NetWorkHelper.Instance.DisconnectLobbyServer();
     NetWorkHelper.Instance.DisconnectPvpServer();
     ArenaModeView.ShowMatchingState(false);
     CtrlManager.CloseWindow(WindowID.PvpSelectHeroView);
     CtrlManager.CloseWindow(WindowID.PvpWaitView);
     PvpUtils.GoHome();
     Singleton <PvpManager> .Instance.IsContinuedBattle = false;
     Singleton <MenuView> .Instance.UpdateFreeActive();
 }
Пример #4
0
        private void L2C_LoginLobby(MobaMessage msg)
        {
            OperationResponse operationResponse = msg.Param as OperationResponse;
            byte b = (byte)operationResponse.Parameters[0];

            PvpManager.IsDirectLinkLobby = true;
            if (b == 0)
            {
                Singleton <PvpManager> .Instance.SendLobbyMsg(LobbyCode.C2L_JoinQueue, new object[]
                {
                    0,
                    Singleton <PvpManager> .Instance.BattleId
                });
            }
            else
            {
                PvpUtils.ShowNetworkError((int)b);
            }
        }