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);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
 void OnCentralServer_QuickMatchResultArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, Game g)
 {
     m_QuickMatchGame = g;
     FireQuickMatchResultArrived(result, msg, this);
 }
Exemplo n.º 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);
        }
Exemplo n.º 7
0
 void OnCentralServer_QuickMatchResultArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, Game g)
 {
     m_QuickMatchGame = g;
     FireQuickMatchResultArrived(result, msg, this);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
     }
 }