Пример #1
0
        private uint RegisterNewClient()
        {
            var player   = _gameServer.AddNewPlayer();
            var clientId = _gameMessenger.RegisterClient(player.Id, this);

            _gameServer.SendGameState(player.Id);
            return(clientId);
        }