コード例 #1
0
 public void CreateAndDrawSpell(Card fromCard, CreateSpell ability)
 {
     setUpCard(fromCard);
     sendActionToQueue(() => {
         hideMoveFromEnemyAndDisplay(fromCard, ability);
         boardDef.drawSpecifiedSpell(fromCard, ability, this);
         finalizeCardInteraction(fromCard, ability, fromCard);
     });
 }
コード例 #2
0
        public void drawSpecifiedSpell(Card card, CreateSpell spell, BoardFunctionality boardFunc)
        {
            Card newCard = boardFunc.cardBuilder.cardConstruct(boardFunc.cardConstructor, spell.identifier);

            boardFunc.library = boardFunc.cardConstructor.tempStorage;
            newCard.setSupplementalTextures(boardFunc.library);
            boardFunc.friendlySide.Deck.cardsInContainer.Insert(0, newCard);
            boardFunc.friendlySide.Deck.loadCardImage(boardFunc.library, newCard);
            boardFunc.DrawCard(boardFunc.friendlySide);
        }