15 lines
340 B
C#
15 lines
340 B
C#
|
|
using MessagePack;
|
||
|
|
using OECS;
|
||
|
|
|
||
|
|
namespace Blackjack;
|
||
|
|
|
||
|
|
/// <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; }
|
||
|
|
}
|