Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        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);
        }