示例#1
0
        //------------------------------------create deck for the player form the Database----------------------------------------
        private List <Card> CreateDeck(string user)
        {
            List <Card>   deck  = new List <Card>();
            List <string> cards = new List <string>();

            cards = Database.selectCardIdInDeck(user);
            foreach (string card in cards)
            {
                deck.Add(CreateCard(card));
            }
            return(deck);
        }