Example #1
0
 public bool Matches(Entity entity)
 {
     return((_allOfIndices == null || entity.HasComponents(_allOfIndices)) &&
            (_anyOfIndices == null || entity.HasAnyComponent(_anyOfIndices)) &&
            (_noneOfIndices == null || !entity.HasAnyComponent(_noneOfIndices)) &&
            (_filter == null || _filter(entity)));
 }
Example #2
0
        public bool Matches(Entity entity)
        {
            var matchesAllOf  = _allOfIndices == null || entity.HasComponents(_allOfIndices);
            var matchesAnyOf  = _anyOfIndices == null || entity.HasAnyComponent(_anyOfIndices);
            var matchesNoneOf = _noneOfIndices == null || !entity.HasAnyComponent(_noneOfIndices);

            return(matchesAllOf && matchesAnyOf && matchesNoneOf);
        }
Example #3
0
 public override bool Matches(Entity entity)
 {
     return(entity.HasAnyComponent(indices));
 }
Example #4
0
		public override bool Matches(Entity entity)
		{
			return entity.HasAnyComponent(indices);
		}