Line data Source code
1 : /**
2 : * The MapBoundsPlacer returns all points on the tilemap that meet the constraint.
3 : */
4 : function MapBoundsPlacer(failFraction = Infinity)
5 : {
6 0 : const mapBounds = g_Map.getBounds();
7 0 : this.rectPlacer = new RectPlacer(new Vector2D(mapBounds.left, mapBounds.top), new Vector2D(mapBounds.right, mapBounds.bottom), failFraction);
8 : }
9 :
10 7 : MapBoundsPlacer.prototype.place = function(constraint)
11 : {
12 0 : return this.rectPlacer.place(constraint);
13 : };
|