Example #1
0
        private void HandleClientJoinGame(ClientJoinGameSessionMessage message)
        {
            var clientToConnectSession = _clientManager.GetClientById(message.ClientId);

            if (clientToConnectSession == null)
            {
                return;
            }

            if (!_sessionPool.JoinSession(clientToConnectSession, message.SessionId))
            {
                Tracer.PrintWarning(string.Format("Could not connect client {0} to Session {1}", message.ClientId, message.SessionId));
            }
        }