Пример #1
0
        private void HandleExchangeStartedBidBuyerMessage(IAccount account, ExchangeStartedBidBuyerMessage message)
        {
            _itemTypesInBidHouse.Clear();
            _itemTypesInBidHouse.AddRange(message.BuyerDescriptor.Types);

            _bidHouseDialogIsLoaded = true;
        }
Пример #2
0
        private void HandleExchangeStartedBidBuyerMessage(IAccount account, ExchangeStartedBidBuyerMessage message)
        {
            _itemListInBidHouse.Clear();
            _itemTypesInBidHouse.Clear();
            _itemTypesInBidHouse.AddRange(message.BuyerDescriptor.Types);

            _bidHouseBuyDialogIsLoaded  = true;
            _bidHouseSellDialogIsLoaded = false;

            _bidHouseActionEvent.Set();
        }
Пример #3
0
        public void Update(ExchangeStartedBidBuyerMessage message)
        {
            if (!MercyBotMain.Instance.Server.IsSubscribedToTouch || !MercyBotMain.Instance.Server.HasExtension(ExtensionsEnum.HDV))
            {
                return;
            }

            _account.State     = AccountStates.BUYING;
            MaxItemsPerAccount = message.BuyerDescriptor.MaxItemPerAccount;

            StartedBuying?.Invoke();
        }
Пример #4
0
 public static Task HandleExchangeStartedBidBuyerMessage(Account account, ExchangeStartedBidBuyerMessage message)
 => Task.Run(() => account.Game.Bid.Update(message));