DragonECS-Graphs/src/Common/RelationTargets.cs

15 lines
483 B
C#
Raw Normal View History

2023-06-22 11:01:43 +08:00
namespace DCFApixels.DragonECS
2023-06-22 03:54:20 +08:00
{
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;
}
2023-06-22 11:01:43 +08:00
public override string ToString() => $"rel({entity}, {otherEntity})";
2023-06-22 03:54:20 +08:00
}
}