Пример #1
0
        private void SelectDeckSlotPageResponses(int responseID)
        {
            int    card       = GetPC().GetLocalInt("PAZAAK_CARD_SELECTED");
            int    slot       = Convert.ToInt32(GetResponseByID("SelectDeckSlotPage", responseID).CustomData.ToString());
            NWItem collection = GetPC().GetLocalObject("ACTIVE_COLLECTION");

            PazaakService.AddCardToDeck(card, collection, slot);

            // Rebuild the main page as the collection has changed.
            LoadMainPage();
            ChangePage("MainPage");
        }