oecs-sharp/Game.Blackjack/Components/Card.cs

14 lines
253 B
C#
Raw Permalink Normal View History

2026-07-18 23:26:56 +08:00
using MessagePack;
namespace Game.Blackjack;
2026-07-18 23:26:56 +08:00
/// <summary>
/// A playing card with a suit and rank.
/// One entity per card.
/// </summary>
[MessagePackObject]
public record struct Card
2026-07-18 23:26:56 +08:00
{
[Key(0)] public Suit Suit;
[Key(1)] public Rank Rank;
}