18 lines
468 B
C#
18 lines
468 B
C#
using MessagePack;
|
|
|
|
namespace Game.CardWars;
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[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;
|
|
}
|