namespace MoonTools.ECS.Rev2.Compatibility; public class Manipulator : EntityComponentReader { public Manipulator(World world) : base(world) { } protected EntityId CreateEntity(string tag = "") => World.CreateEntity(tag); 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 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); }