From b19d8441b128ea1a4a3d34062e2fe6a2aa7d4518 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sat, 5 Mar 2022 22:13:44 -0800 Subject: [PATCH] FilterBuilder property --- src/System.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/System.cs b/src/System.cs index 3f6f5db..2610411 100644 --- a/src/System.cs +++ b/src/System.cs @@ -4,6 +4,8 @@ public abstract class System : EntityComponentReader { public abstract void Update(TimeSpan delta); + public FilterBuilder FilterBuilder => new FilterBuilder(ComponentDepot); + public System(World world) { world.AddSystem(this); @@ -14,11 +16,6 @@ public abstract class System : EntityComponentReader return EntityStorage.Create(); } - protected FilterBuilder CreateFilterBuilder() - { - return new FilterBuilder(ComponentDepot); - } - protected void Set(in Entity entity, in TComponent component) where TComponent : struct { ComponentDepot.Set(entity.ID, component);