public PokeTradeHub(PokeTradeHubConfig config) { Config = config; Pool = new PokemonPool <T>(config); Barrier = new Barrier(0, ReleaseBarrier); BarrierReleasingActions.Add(() => LogUtil.Log(LogLevel.Info, $"{Barrier.ParticipantCount} bots released.", "Barrier")); Counts = new BotCompleteCounts(Config); }
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 LedyDistributor(PokemonPool <T> pool) { Pool = pool; Distribution = Pool.Files; }