public WorldObject[] QueryBounds(WorldObjectBounds bounds, params string[] ignoreTags) { // Removing ToRectangle() does not give us accurate overlaps. return(QueryCells(bounds).Where(other => bounds.ToRectangle().Intersects(other.Bounds.ToRectangle()) && !ignoreTags.Any(tag => other.Tags.Contains(tag))).ToArray()); }
public WorldObject[] QueryBounds(WorldObjectBounds bounds) { // Removing ToRectangle() does not give us accurate overlaps. return(QueryCells(bounds).Where(other => bounds.ToRectangle().Intersects(other.Bounds.ToRectangle())).ToArray()); }