18 lines
476 B
C#
18 lines
476 B
C#
using MessagePack;
|
|
|
|
namespace Game.CardWars;
|
|
|
|
/// <summary>
|
|
/// Instance data for a card that has been played to the field.
|
|
/// Cards in hand/deck only have CardDef; this is added when played.
|
|
/// </summary>
|
|
[MessagePackObject]
|
|
public record struct Card
|
|
{
|
|
/// <summary>The rank chosen for this play (one of CardDef.Ranks).</summary>
|
|
[Key(0)] public int Rank;
|
|
|
|
/// <summary>Whether the card is face-down on the field.</summary>
|
|
[Key(1)] public bool FaceDown;
|
|
}
|