1
0
Fork 0
MoonTools.ECS.Mirror/src/Filter.cs

16 lines
398 B
C#

namespace MoonTools.ECS;
public class Filter
{
internal FilterSignature Signature;
private ComponentDepot ComponentDepot;
internal Filter(ComponentDepot componentDepot, HashSet<Type> included, HashSet<Type> excluded)
{
ComponentDepot = componentDepot;
Signature = new FilterSignature(included, excluded);
}
public IEnumerable<Entity> Entities => ComponentDepot.FilterEntities(this);
}