Пример #1
0
        public string GetPathForCard(Dominion.CardShapedObject card)
        {
            string result = null;

            this.mpProgramaticNameToPath.TryGetValue(card.ProgrammaticName.ToLower(), out result);
            return(result);
        }
Пример #2
0
 public static DominionCard Create(Dominion.CardShapedObject card)
 {
     if (card == null)
     {
         throw new Exception("unexpected null");
     }
     return(mpCardNameToCard[card.name]);
 }
Пример #3
0
 private DominionCard(Dominion.CardShapedObject cardShapedObject)
 {
     this.Id        = cardShapedObject.ProgrammaticName;
     this.Name      = cardShapedObject.name;
     this.Expansion = GetExpansionIndex(cardShapedObject.expansion);
     if (cardShapedObject is Dominion.Card card)
     {
         this.IsAttack   = card.isAttack;
         this.IsAction   = card.isAction;
         this.IsReaction = card.isReaction;
         this.IsDuration = card.isDuration;
         this.Coin       = card.DefaultCoinCost;
         this.Potion     = card.potionCost;
     }
     this.isWebCard        = false;
     this.cardShapedObject = cardShapedObject;
 }