using MessagePack; namespace Game.CardWars; /// /// Static card definition — name, possible ranks, effect, and kind. /// Cards in the deck/hand only have CardDef. When played to the field, /// they also get a Card component with the chosen rank. /// [MessagePackObject] public record struct CardDef { [Key(0)] public string Name; [Key(1)] public int[] Ranks; [Key(2)] public CardEffect Effect; [Key(3)] public CardKind Kind; }