public PokeTradeHub(PokeTradeHubConfig config) { Config = config; var pool = new PokemonPool <T>(config); Ledy = new LedyDistributor <T>(pool); BotSync = new BotSynchronizer(config.Distribution); BotSync.BarrierReleasingActions.Add(() => LogUtil.LogInfo($"{BotSync.Barrier.ParticipantCount} bots released.", "Barrier")); Queues = new TradeQueueManager <T>(this); }
public PokeTradeHub(PokeTradeHubConfig config) { Config = config; var giveawayPoolDatabase = new GiveawayPool(config); GiveawayPoolDatabase = giveawayPoolDatabase; BotSync = new BotSynchronizer(config.Distribution); BotSync.BarrierReleasingActions.Add(() => LogUtil.LogInfo($"{BotSync.Barrier.ParticipantCount} bots released.", "Barrier")); Counts = new BotCompleteCounts(config.Counts); Queues = new TradeQueueManager <T>(this); }