public ScenarioQuestViewModel(ScenarioQuestCard questCard)
 {
     _questCard = questCard;
     _cardViewModel = new CardViewModel(questCard.Quest);
 }
 public ScenarioQuestViewModel(ScenarioQuestCard questCard)
 {
     _questCard     = questCard;
     _cardViewModel = new CardViewModel(questCard.Quest);
 }
        private CardViewModel GetCardViewModel(Card card)
        {
            var viewModel = new CardViewModel(card);

            foreach (var keyword in card.Keywords)
                viewModel.KeywordEffects.Add(ParseCardEffect(card, keyword, true));

            viewModel.TextEffects.AddRange(ParseCardEffects(card, card.Text));
            viewModel.TextEffects.AddRange(ParseCardEffects(card, card.OppositeText));

            if (!string.IsNullOrEmpty(card.Shadow))
                viewModel.ShadowEffects.Add(ParseCardEffect(card, card.Shadow, true));

            return viewModel;
        }
Esempio n. 4
0
 public void AddCard(CardViewModel card)
 {
     _cards.Add(card);
 }