oecs-sharp/Game.CardWars/Components/HeldBy.cs

14 lines
325 B
C#
Raw Normal View History

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 Target { get; set; }
}