add CreateEntity to Manipulator

rev2
cosmonaut 2023-10-31 15:02:56 -07:00
parent 5ba5c2f5cd
commit 63a5643763
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ public class Manipulator : EntityComponentReader
{
public Manipulator(World world) : base(world) { }
protected EntityId CreateEntity(string tag = "") => World.CreateEntity(tag);
protected void Set<TComponent>(in EntityId entity, in TComponent component) where TComponent : unmanaged => World.Set<TComponent>(entity, component);
protected void Remove<TComponent>(in EntityId entity) where TComponent : unmanaged => World.Remove<TComponent>(entity);