public QuickMatchQueueConfiguration(IMatchmakingHandler matchmakingHandler) { QueueName = Constants.QUICK_MATCHMAKING_QUEUE_NAME; GiveUpAfterSeconds = Constants.GIVE_UP_AFTER_SECONDS; EscapeObject = false; ReturnMemberAttributes = true; MatchmakingHandler = matchmakingHandler; QueueType = QueueTypes.QuickMatch; }
public static MatchmakingQueueConfiguration CreateQueue(QueueTypes type, IMatchmakingHandler matchmakingHandler) { queueConfigurationTypes.Value.TryGetValue(type, out var func); return(func != null?func(matchmakingHandler) : null); }