예제 #1
0
파일: Deck.cs 프로젝트: duelqiuqiu/DevBot
 private void AddCard(CardData card)
 {
     if (card.IsExtraCard())
         ExtraCards.Add(card);
     else
         Cards.Add(card);
 }
예제 #2
0
        private static void InitCards(SQLiteDataReader reader)
        {
            while (reader.Read())
            {
                int id = reader.GetInt32(0);
                CardData card = new CardData(id)
                {
                    AliasId = reader.GetInt32(1),
                    Type = reader.GetInt32(2),
                    Level = reader.GetInt32(3),
                    Race = reader.GetInt32(4),
                    Attribute = reader.GetInt32(5),
                    Atk = reader.GetInt32(6),
                    Def = reader.GetInt32(7),
                    Name = reader.GetString(8),
                    Description = reader.GetString(9)
                };
                m_cards.Add(id, card);

            }
        }