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

15 lines
345 B
C#
Raw Normal View History

2026-07-18 23:26:56 +08:00
using MessagePack;
using OECS;
namespace Game.Blackjack;
2026-07-18 23:26:56 +08:00
/// <summary>
/// Relationship from a hand entity to a card entity,
/// representing that the hand holds this card.
/// </summary>
[MessagePackObject]
public struct Holds : IRelationship
{
[Key(0)] public Entity Source { get; set; }
[Key(1)] public Entity Target { get; set; }
}