allow Spawners to read world state

pull/4/head
cosmonaut 2023-02-10 11:59:40 -08:00
parent cf75824d67
commit 1a6d015fff
1 changed files with 2 additions and 5 deletions

View File

@ -1,12 +1,9 @@
namespace MoonTools.ECS
{
public abstract class Spawner
public abstract class Spawner : EntityComponentReader
{
private World World;
public Spawner(World world)
public Spawner(World world) : base(world)
{
World = world;
}
protected Entity CreateEntity() => World.CreateEntity();