Пример #1
0
        /// <summary>
        /// Запрос на вход в комнату
        /// </summary>
        /// <param name="id"></param>
        /// <param name="clientConnection"></param>
        public void ClientEnter(int id, ClientConnection clientConnection)
        {
            Instance instanse = instances.Keys.Where(x => x.id == id).FirstOrDefault();

            if (instanse == null)
            {
                return;
            }
            instanse.AddClient(clientConnection);
        }