add CreateEntity to Manipulator
parent
5ba5c2f5cd
commit
63a5643763
|
@ -4,6 +4,7 @@ public class Manipulator : EntityComponentReader
|
||||||
{
|
{
|
||||||
public Manipulator(World world) : base(world) { }
|
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 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);
|
protected void Remove<TComponent>(in EntityId entity) where TComponent : unmanaged => World.Remove<TComponent>(entity);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue