allow Spawners to read world state
parent
cf75824d67
commit
1a6d015fff
|
@ -1,12 +1,9 @@
|
||||||
namespace MoonTools.ECS
|
namespace MoonTools.ECS
|
||||||
{
|
{
|
||||||
public abstract class Spawner
|
public abstract class Spawner : EntityComponentReader
|
||||||
{
|
{
|
||||||
private World World;
|
public Spawner(World world) : base(world)
|
||||||
|
|
||||||
public Spawner(World world)
|
|
||||||
{
|
{
|
||||||
World = world;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Entity CreateEntity() => World.CreateEntity();
|
protected Entity CreateEntity() => World.CreateEntity();
|
||||||
|
|
Loading…
Reference in New Issue