Example #1
0
 public Deck(DeckFile df, Player player)
 {
     Player               = player;
     player.Deck          = this;
     inputDck             = df;
     Player.ProgressMax   = inputDck.CardEntries.Count;
     Player.ProgressValue = 0;
 }
Example #2
0
 public void LoadCards()
 {
     foreach (MainLine l in inputDck.CardEntries)
     {
         MagicCard c = null;
         if (!MagicData.TryLoadCard(l.name, ref c))
         {
             Debug.WriteLine("DCK: {0} => Card not found: {1}", inputDck.Name, l.name);
             continue;
         }
         for (int i = 0; i < l.count; i++)
         {
             AddCard(c, l.code);
         }
         Player.ProgressValue++;
     }
     inputDck = null;
 }