Ejemplo n.º 1
0
        public HeroActionCard GetCardFromLibrary(long cardID)
        {
            List <HeroActionCard> cards   = GetLibrary();
            HeroActionCard        theCard = new HeroActionCard();

            foreach (HeroActionCard card in cards)
            {
                if (card.card_id == cardID)
                {
                    theCard = card;
                }
            }
            return(theCard);
        }
Ejemplo n.º 2
0
 public void DeleteCardFromShop(HeroActionCard card)
 {
     db.Query($"Delete from ShopCards where ShopCardID = {card.ShopCardID}");
 }
Ejemplo n.º 3
0
 public void AddCardToShop(HeroActionCard card)
 {
     db.Query($"insert into ShopCards (card_id) Values ({card.card_id})");
 }
Ejemplo n.º 4
0
 public void AddCardToCollection(long playerID, HeroActionCard card)
 {
     db.Query($"insert into CardCollection (playerID, cardID, card_level) Values ('{playerID}', '{card.card_id}', 1)");
 }