Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 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());
 }