Пример #1
0
        private void CreateMatchmakingHandler(bool isQuickPlay)
        {
            if (singlePlayerMatchmakingHandler != null)
            {
                return;
            }

            var queueConfiguration = new MatchmakingQueueConfiguration
            {
                GiveUpAfterSeconds  = Constants.GIVE_UP_AFTER_SECONDS,
                QuickPlayQueueName  = Constants.QUICK_MATCHMAKING_QUEUE_NAME,
                MatchLobbyQueueName = Constants.LOBBY_MATCHMAKING_QUEUE_NAME,
                IsQuickPlay         = isQuickPlay
            };

            singlePlayerMatchmakingHandler = new MatchmakingHandler(ApplicationModel.CurrentPlayer, queueConfiguration);
        }
 public MatchmakingHandler(PlayerInfo player, MatchmakingQueueConfiguration queueConfiguration) : base(player)
 {
     QueueConfiguration = queueConfiguration;
 }