using System.ComponentModel.DataAnnotations; namespace DCGEngine.Database.Models; /// /// A card within the system. /// public abstract class CardEntry : BaseEntity { /// /// The name of this card used internally, to separate it from any localization key stored. /// [Required(AllowEmptyStrings = false)] public virtual string Name { get; set; } = string.Empty; /// /// The offensive power of this card. /// public virtual int? Attack { get; set; } /// /// The defensive power of this card. /// public virtual int? Defense { get; set; } /// /// How much of the primary resource (ie mana, energy) does this card cost to play in a match. /// public virtual int? PrimaryResourceCost { get; set; } }