コード例 #1
0
ファイル: BidHouse.cs プロジェクト: snakeddp/cookiebot
        private void HandleExchangeStartedBidSellerMessage(IAccount account, ExchangeStartedBidSellerMessage message)
        {
            _bidHouseBuyDialogIsLoaded  = false;
            _bidHouseSellDialogIsLoaded = true;

            _bidHouseActionEvent.Set();
        }
コード例 #2
0
ファイル: BidGame.cs プロジェクト: Kuh4ku/Mercybot
        public void Update(ExchangeStartedBidSellerMessage message)
        {
            if (!MercyBotMain.Instance.Server.IsSubscribedToTouch || !MercyBotMain.Instance.Server.HasExtension(ExtensionsEnum.HDV))
            {
                return;
            }

            _account.State     = AccountStates.SELLING;
            MaxItemsPerAccount = message.SellerDescriptor.MaxItemPerAccount;
            ObjectsInSale      = message.ObjectsInfos;

            StartedSelling?.Invoke();
        }
コード例 #3
0
 public static Task HandleExchangeStartedBidSellerMessage(Account account, ExchangeStartedBidSellerMessage message)
 => Task.Run(() => account.Game.Bid.Update(message));