private void FireQuickMatchResultArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, Game g)
 {
     if (QuickMatchResultArrivedInvoker != null)
     {
         QuickMatchResultArrivedInvoker(result, msg, sender, g);
     }
 }
 private void FireCompleteMatchListingArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection con, List <Game> games, int totalGames)
 {
     if (CompleteMatchListingArrivedInvoker != null)
     {
         CompleteMatchListingArrivedInvoker(result, msg, con, games, totalGames);
     }
 }
示例#3
0
        private void OnCentralServer_SocketKilled(object sender, string msg)
        {
            LobbyClientCentralServerOutboundConnection con = sender as LobbyClientCentralServerOutboundConnection;

            con.SocketKilled -= new SocketKilledDelegate(OnCentralServer_SocketKilled);
            con.CompleteMatchListingArrived      -= new CompleteGameListingArrivedDelegate(OnCentralServer_CompleteMatchListingArrived);
            con.CentralCreateGameRequestResolved -= new CreateGameRequestResolvedDelegate(OnCentralServer_CreateGameRequestResolved);
            con.JoinGameResolved        -= new JoinGameResultDelegate(OnCentralServer_JoinResult);
            con.QuickMatchResultArrived -= new QuickMatchResultArrivedDelegate(OnCentralServer_QuickMatchResultArrived);
        }
示例#4
0
        protected override ClientCentralServerOutboundConnection OnCentralServerConnectionCreate(bool isBlocking)
        {
            LobbyClientCentralServerOutboundConnection con = new LobbyClientCentralServerOutboundConnection(isBlocking);

            con.SocketKilled += new SocketKilledDelegate(OnCentralServer_SocketKilled);
            con.CompleteMatchListingArrived      += new CompleteGameListingArrivedDelegate(OnCentralServer_CompleteMatchListingArrived);
            con.CentralCreateGameRequestResolved += new CreateGameRequestResolvedDelegate(OnCentralServer_CreateGameRequestResolved);
            con.JoinGameResolved        += new JoinGameResultDelegate(OnCentralServer_JoinResult);
            con.QuickMatchResultArrived += new QuickMatchResultArrivedDelegate(OnCentralServer_QuickMatchResultArrived);
            return(con);
        }
示例#5
0
 void OnCentralServer_QuickMatchResultArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, Game g)
 {
     m_QuickMatchGame = g;
     FireQuickMatchResultArrived(result, msg, this);
 }
示例#6
0
        private void OnCentralServer_CompleteMatchListingArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, List <Game> games, int totalGames)
        {
            m_TotalGamesInLobby = totalGames;
            m_Games.Clear();
            if (result)
            {
                for (int i = 0; i < games.Count; i++)
                {
                    m_Games.Add(games[i] as Game);
                }
            }

            FireCompleteMatchListingArrived(result, msg, this);
        }
示例#7
0
 void OnCentralServer_QuickMatchResultArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, Game g)
 {
     m_QuickMatchGame = g;
     FireQuickMatchResultArrived(result, msg, this);
 }
示例#8
0
        private void OnCentralServer_CompleteMatchListingArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, List<Game> games, int totalGames)
        {
            m_TotalGamesInLobby = totalGames;
            m_Games.Clear();
            if (result)
            {
                for (int i = 0; i < games.Count; i++)
                {
                    m_Games.Add(games[i] as Game);
                }
            }

            FireCompleteMatchListingArrived(result, msg, this);
        }
示例#9
0
 protected override ClientCentralServerOutboundConnection OnCentralServerConnectionCreate(bool isBlocking)
 {
     LobbyClientCentralServerOutboundConnection con = new LobbyClientCentralServerOutboundConnection(isBlocking);
     con.SocketKilled += new SocketKilledDelegate(OnCentralServer_SocketKilled);
     con.CompleteMatchListingArrived += new CompleteGameListingArrivedDelegate(OnCentralServer_CompleteMatchListingArrived);
     con.CentralCreateGameRequestResolved += new CreateGameRequestResolvedDelegate(OnCentralServer_CreateGameRequestResolved);
     con.JoinGameResolved += new JoinGameResultDelegate(OnCentralServer_JoinResult);
     con.QuickMatchResultArrived += new QuickMatchResultArrivedDelegate(OnCentralServer_QuickMatchResultArrived);
     return con;
 }
 private void FireQuickMatchResultArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, Game g)
 {
     if (QuickMatchResultArrivedInvoker != null)
     {
         QuickMatchResultArrivedInvoker(result, msg, sender, g);
     }
 }
 private void FireCompleteMatchListingArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection con, List<Game> games, int totalGames)
 {
     if (CompleteMatchListingArrivedInvoker != null)
     {
         CompleteMatchListingArrivedInvoker(result, msg, con, games, totalGames);
     }
 }