From 1ec9b9966cdf98a0af266641c808470fe5fe7bd6 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 31 Oct 2023 15:05:10 -0700 Subject: [PATCH] add Relate to Manipulator --- src/Rev2/Compatibility/Manipulator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Rev2/Compatibility/Manipulator.cs b/src/Rev2/Compatibility/Manipulator.cs index a779b31..2538952 100644 --- a/src/Rev2/Compatibility/Manipulator.cs +++ b/src/Rev2/Compatibility/Manipulator.cs @@ -8,7 +8,8 @@ public class Manipulator : EntityComponentReader protected void Set(in EntityId entity, in TComponent component) where TComponent : unmanaged => World.Set(entity, component); protected void Remove(in EntityId entity) where TComponent : unmanaged => World.Remove(entity); - protected void Unrelate(in EntityId entityA, in EntityId entityB) where TRelationKind : unmanaged => World.Unrelate(entityA, entityB); - protected void UnrelateAll(in EntityId entity) where TRelationKind : unmanaged => World.UnrelateAll(entity); + protected void Relate(in EntityId entityA, in EntityId entityB, in T relation) where T : unmanaged => World.Relate(entityA, entityB, relation); + protected void Unrelate(in EntityId entityA, in EntityId entityB) where T : unmanaged => World.Unrelate(entityA, entityB); + protected void UnrelateAll(in EntityId entity) where T : unmanaged => World.UnrelateAll(entity); protected void Destroy(in EntityId entity) => World.Destroy(entity); }