Beispiel #1
0
        internal Duelist ToEntity()
        {
            var hand = Hand.Select(c => c.ToValueObject()).ToList();
            var deck = Deck.Restore(DeckCards.Select(c => c.ToValueObject()).ToList());

            return(Duelist.Restore(Id, Health, Mana, ManaSlots, deck, hand));
        }