15 lines
373 B
C#
15 lines
373 B
C#
using MessagePack;
|
|
using OECS;
|
|
|
|
namespace Game.CardWars;
|
|
|
|
/// <summary>
|
|
/// Relationship from a card entity to the player who holds it in hand.
|
|
/// Added to the card: Source=card, Target=player.
|
|
/// </summary>
|
|
[MessagePackObject]
|
|
public record struct HeldBy : IRelationship
|
|
{
|
|
[Key(0)] public Entity Source { get; set; }
|
|
[Key(1)] public Entity Target { get; set; }
|
|
} |