From 1d34defbfb62b96e6de325bd623f95d9163b0931 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 8 Mar 2022 15:22:58 -0800 Subject: [PATCH] renderer initializer --- src/Renderer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Renderer.cs b/src/Renderer.cs index c1559ac..1511bb9 100644 --- a/src/Renderer.cs +++ b/src/Renderer.cs @@ -2,5 +2,10 @@ public abstract class Renderer : EntityComponentReader { + public Renderer(World world) + { + world.AddRenderer(this); + } + public abstract void Draw(TimeSpan delta); }