world no longer triggers renderer draw
parent
0ddc89ddea
commit
26621e66fe
|
@ -6,6 +6,4 @@ public abstract class Renderer : EntityComponentReader
|
|||
{
|
||||
world.AddRenderer(this);
|
||||
}
|
||||
|
||||
public abstract void Draw(TimeSpan delta);
|
||||
}
|
||||
|
|
10
src/World.cs
10
src/World.cs
|
@ -3,7 +3,6 @@
|
|||
public class World
|
||||
{
|
||||
private readonly List<System> Systems = new List<System>();
|
||||
private readonly List<Renderer> Renderers = new List<Renderer>();
|
||||
private readonly EntityStorage EntityStorage = new EntityStorage();
|
||||
private readonly ComponentDepot ComponentDepot = new ComponentDepot();
|
||||
private MessageDepot MessageDepot = new MessageDepot();
|
||||
|
@ -20,7 +19,6 @@ public class World
|
|||
{
|
||||
renderer.RegisterEntityStorage(EntityStorage);
|
||||
renderer.RegisterComponentDepot(ComponentDepot);
|
||||
Renderers.Add(renderer);
|
||||
}
|
||||
|
||||
public Entity CreateEntity()
|
||||
|
@ -47,12 +45,4 @@ public class World
|
|||
|
||||
MessageDepot.Clear();
|
||||
}
|
||||
|
||||
public void Draw(TimeSpan delta)
|
||||
{
|
||||
foreach (var renderer in Renderers)
|
||||
{
|
||||
renderer.Draw(delta);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue