コード例 #1
0
 internal CardReference(CardReference cardRef, bool runUpdateAbilities = true)
 {
     this.card = cardRef.card;
     this.cardID = cardRef.cardID;
     this.old = cardRef;
     if (runUpdateAbilities)
     UpdateAbilities();
 }
コード例 #2
0
 public TestDeck(MagicCard card)
 {
     this.card = card;
 }
コード例 #3
0
 public static DeckCardReference MakeReference(MagicCard card)
 {
     return new DeckCardReference(card);
 }
コード例 #4
0
 internal CardReference(MagicCard card, CardID id)
 {
     this.card = card;
     this.cardID = id;
     UpdateAbilities();
 }
コード例 #5
0
 // this is where new IDs are born
 internal DeckCardReference(MagicCard card)
     : base(card, new CardID())
 {
 }