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);