Exemple #1
0
        /// <summary>
        /// Fired by Listener (Host) when a client joins the conversation
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void listener_OnJoined(object sender, JoinedEventArgs e)
        {
            InitializeGame(Strategy);

            logAndDisplay("Client Joined. ID: " + e.opponentID);

            LogNetworkDelay();
            LogSessionStart();
            currentGame.start(e.opponentID);
        }
Exemple #2
0
        /// <summary>
        /// Fired by client when the Listener (Host) acknowledges a 
        /// request to join the conversation
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void client_OnJoined(object sender, JoinedEventArgs e)
        {
            InitializeGame(Strategy);

            logAndDisplay("Host Joined. ID: " + e.opponentID);

            LogSessionStart();
            currentGame.SetOpponent(e.opponentID);
        }