mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add simple filter method
This commit is contained in:
parent
a1dadc033b
commit
26c9e50905
@ -25,6 +25,7 @@ namespace DCFApixels.DragonECS
|
||||
#region Methods
|
||||
public EcsPool<T> GetPool<T>() where T : struct;
|
||||
public EcsPool<T> UncheckedGetPool<T>() where T : struct;
|
||||
public EcsFilter Entities<TComponent>() where TComponent : struct;
|
||||
public EcsFilter Filter<TInc>() where TInc : struct, IInc;
|
||||
public EcsFilter Filter<TInc, TExc>() where TInc : struct, IInc where TExc : struct, IExc;
|
||||
public ent NewEntity();
|
||||
@ -172,6 +173,7 @@ namespace DCFApixels.DragonECS
|
||||
#endregion
|
||||
|
||||
#region GetFilter
|
||||
public EcsFilter Entities<TComponent>() where TComponent : struct => Filter<Inc<TComponent>, Exc>();
|
||||
public EcsFilter Filter<TInc>() where TInc : struct, IInc => Filter<TInc, Exc>();
|
||||
public EcsFilter Filter<TInc, TExc>() where TInc : struct, IInc where TExc : struct, IExc
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user