From 26c9e5090526e34e8e825b5177c7241717bd03e0 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Sun, 2 Apr 2023 22:36:08 +0800 Subject: [PATCH] add simple filter method --- src/EcsWorld.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EcsWorld.cs b/src/EcsWorld.cs index cb5e07a..d6742ba 100644 --- a/src/EcsWorld.cs +++ b/src/EcsWorld.cs @@ -25,6 +25,7 @@ namespace DCFApixels.DragonECS #region Methods public EcsPool GetPool() where T : struct; public EcsPool UncheckedGetPool() where T : struct; + public EcsFilter Entities() where TComponent : struct; public EcsFilter Filter() where TInc : struct, IInc; public EcsFilter Filter() where TInc : struct, IInc where TExc : struct, IExc; public ent NewEntity(); @@ -172,6 +173,7 @@ namespace DCFApixels.DragonECS #endregion #region GetFilter + public EcsFilter Entities() where TComponent : struct => Filter, Exc>(); public EcsFilter Filter() where TInc : struct, IInc => Filter(); public EcsFilter Filter() where TInc : struct, IInc where TExc : struct, IExc {