/// <summary> /// Create a card of color. /// </summary> /// <param name="color">The color of the card. (The color enum 'none' is not valid in this scenerio)</param> public ColorettoCard(ColorettoCardColors color) : this() { CardType = ColorettoCardTypes.Color; Color = color; ValidateCard(); }
/// <summary> /// Create a card of type and color. /// </summary> /// <param name="type">The type of card. (The Unknown type will cause an ArgumentException)</param> /// <param name="color">For cards of color type this will be the color of the card. For non-color type cards use the 'none' value.</param> public ColorettoCard(ColorettoCardTypes type, ColorettoCardColors color) : this() { CardType = type; Color = color; ValidateCard(); }