Example #1
0
        public void RevealDeckCard(string cardId, int turn)
        {
            var cardEntity = Deck.FirstOrDefault(ce => ce.Unknown);

            if (cardEntity != null)
            {
                cardEntity.CardId = cardId;
                cardEntity.Turn   = turn;
            }
        }
        public void RevealDeckCard(string cardId, int turn, bool created = false)
        {
            var cardEntity = Deck.FirstOrDefault(ce => ce.Unknown);

            if (cardEntity != null)
            {
                cardEntity.CardId = cardId;
                cardEntity.Turn   = turn;
                if (created)
                {
                    cardEntity.Created = true;
                }
            }
        }