DragonECS-Graphs/src/Common/RelationTargets.cs
2023-06-22 11:01:43 +08:00

15 lines
483 B
C#

namespace DCFApixels.DragonECS
{
public readonly struct RelationTargets
{
public static readonly RelationTargets Empty = new RelationTargets();
public readonly int entity;
public readonly int otherEntity;
public RelationTargets(int entity, int otherEntity)
{
this.entity = entity;
this.otherEntity = otherEntity;
}
public override string ToString() => $"rel({entity}, {otherEntity})";
}
}