コード例 #1
0
        public override async Task DiscardAsync(RackoCardInformation thisCard)
        {
            var newCard = _model !.OtherPile !.GetCardInfo();

            newCard.WillKeep = thisCard.WillKeep;
            if (thisCard.Deck == newCard.Deck)
            {
                throw new BasicBlankException("Cannot be duplicate for discard.  Rethink");
            }
            if (SingleInfo !.MainHandList.Contains(thisCard) == true)
            {
                thisCard = SingleInfo.MainHandList.GetSpecificItem(thisCard.Deck);
            }