示例#1
0
 /// <summary>
 /// master连接成功回调处理
 /// </summary>
 /// <param name="cType"></param>
 public override void OnConnected(MobaConnectedType cType)
 {
     if (cType != MobaConnectedType.ExceptionOnConnect)
     {
         this.ConnectFlag = true;
         MobaMessageManagerTools.EndWaiting_manual("ConnectMasterServer");
         MobaMessageManager.ExecuteMsg(MobaMessageManager.GetMessage((ClientMsg)20003, cType, 0f));
     }
 }
示例#2
0
 public override void OnConnected(MobaConnectedType cType)
 {
     if (cType != MobaConnectedType.ExceptionOnConnect)
     {
         this.ConnectFlag = true;
         if (cType == MobaConnectedType.Original)
         {
             this._client.IsReconnect = true;
         }
         else if (cType != MobaConnectedType.Multi || NetWorkHelper.Instance.client.IsReconnect)
         {
         }
         MobaMessageManager.ExecuteMsg(MobaMessageManager.GetMessage((ClientMsg)20009, cType, 0f));
     }
 }
 public override void OnConnected(MobaConnectedType cType)
 {
     if (cType != MobaConnectedType.ExceptionOnConnect)
     {
         this.ConnectFlag = true;
         MobaMessageManagerTools.EndWaiting_manual("ConnectLobby");
         int hashCode = this._serverId.GetHashCode();
         SendMsgManager.Instance.SendLobbyMsg(PvpCode.C2L_FakeLoginLobby, new object[]
         {
             this._userName,
             this._userId,
             hashCode
         });
     }
 }
示例#4
0
 public override void OnConnected(MobaConnectedType cType)
 {
     if (!base.HasBegun)
     {
         ClientLogger.Error("OnConnected received when end");
         return;
     }
     if (cType == MobaConnectedType.ExceptionOnConnect)
     {
         PvpServer.LockScreen(true);
         this.ConfirmReconnect();
     }
     else
     {
         this.ConnectFlag = true;
         MobaMessageManager.ExecuteMsg(MobaMessageManager.GetMessage((ClientMsg)20007, cType, 0f));
     }
     MobaMessageManager.ExecuteMsg(MobaMessageManager.GetMessage((ClientMsg)20001, new PeerConnectedMessage(MobaPeerType.C2PvpServer, cType), 0f));
 }
示例#5
0
 public virtual void OnConnected(MobaConnectedType cType)
 {
 }
        protected void Connected_game(MobaMessage msg)
        {
            MobaConnectedType mobaConnectedType = (MobaConnectedType)((int)msg.Param);

            this.OnConnected_game(msg);
        }
示例#7
0
 public PeerConnectedMessage(MobaPeerType pType, MobaConnectedType cType)
 {
     this.PeerType      = pType;
     this.ConnectedType = cType;
 }