Ejemplo n.º 1
0
 public static CardInstance[] MapToCards(this List<int> cardGuidArray, IIndexable<CardInstance> candidates)
 {
     var cardArray = new CardInstance[cardGuidArray.Count];
     for (int i = 0; i < cardGuidArray.Count; ++i)
     {
         cardArray[i] = candidates.Find(cardGuidArray[i]);
     }
     return cardArray;
 }