Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public LedyDistributor(PokemonPool <T> pool)
 {
     Pool         = pool;
     Distribution = Pool.Files;
 }