namespace MoonTools.ECS.Rev2.Compatibility; public class Manipulator : EntityComponentReader { public Manipulator(World world) : base(world) { } 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 Destroy(in EntityId entity) => World.Destroy(entity); }