8 _indices = mergeIndices(_allOfIndices, _anyOfIndices, _noneOfIndices);
14 public int[] allOfIndices {
get {
return _allOfIndices; } }
15 public int[] anyOfIndices {
get {
return _anyOfIndices; } }
16 public int[] noneOfIndices {
get {
return _noneOfIndices; } }
18 public string[] componentNames {
get;
set; }
29 _anyOfIndices = distinctIndices(indices);
31 _isHashCached =
false;
40 _noneOfIndices = distinctIndices(indices);
42 _isHashCached =
false;
47 return NoneOf(mergeIndices(matchers));
50 public bool Matches(TEntity entity) {
51 return (_allOfIndices == null || entity.HasComponents(_allOfIndices))
52 && (_anyOfIndices == null || entity.HasAnyComponent(_anyOfIndices))
53 && (_noneOfIndices == null || !entity.HasAnyComponent(_noneOfIndices));