public ReadOnlyCard(ICard card)
{
type = card.Type;
place = card.Place;
rank = card.Rank;
suit = card.Suit;
owner = card.Owner;
suitColor = card.SuitColor;
if (card is Card) Id = (card as Card).Id;
else Id = -1;
if (card.Attributes == null)
{
attributes = new Dictionary<CardAttribute, int>();
}
else
{
attributes = new Dictionary<CardAttribute, int>(card.Attributes);
}
}