@deafwave/osrs-botmaker-types 0.4.3 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/dist/src/types/java/Shape.d.ts +1 -1
  2. package/dist/src/types/runelite/net/runelite/api/geometry/Shapes.d.ts +14 -15
  3. package/dist/src/types/runelite/net/runelite/api/geometry/SimplePolygon.d.ts +35 -36
  4. package/dist/src/types/runelite/net/runelite/api/widgets/Widget.d.ts +2 -7
  5. package/dist/src/types/runelite/net/runelite/api/widgets/WidgetItem.d.ts +38 -39
  6. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/clues/hotcold/HotColdLocation.d.ts +1253 -565
  7. package/dist/src/types/runelite/net/runelite/client/plugins/mta/telekinetic/TelekineticRoom.d.ts +10 -31
  8. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayBounds.d.ts +6 -7
  9. package/dist/src/types/runelite/net/runelite/client/ui/overlay/WidgetOverlay.d.ts +1 -1
  10. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ImageComponent.d.ts +1 -1
  11. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LayoutableRenderableEntity.d.ts +1 -1
  12. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LineComponent.d.ts +1 -1
  13. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/PanelComponent.d.ts +1 -1
  14. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressBarComponent.d.ts +1 -1
  15. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TitleComponent.d.ts +1 -1
  16. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TooltipComponent.d.ts +1 -1
  17. package/dist/src/types/sox/api/bot/index.d.ts +84 -96
  18. package/package.json +1 -1
  19. package/dist/src/types/java/Rectangle.d.ts +0 -13
@@ -1,7 +1,7 @@
1
1
  /// <reference path="./Rectangle.d.ts" />
2
2
  interface Shape {
3
3
  // Methods to get the bounding box of the shape
4
- getBounds(): Rectangle; // Assuming a Rectangle interface is defined
4
+ getBounds(): java.awt.Rectangle; // Assuming a Rectangle interface is defined
5
5
  getBounds2D(): Rectangle2D; // Assuming a Rectangle2D interface is defined
6
6
 
7
7
  // Methods to test if a point or rectangle lies inside the boundary of the shape
@@ -25,19 +25,18 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.api.geometry {
28
- export class Shapes<T extends Shape> implements Shape
29
- {
30
- getBounds(): Rectangle;
31
- getBounds2D(): Rectangle2D;
32
- contains(x: number, y: number): boolean;
33
- contains(p: Point2D): boolean;
34
- intersects(x: number, y: number, w: number, h: number): boolean;
35
- intersects(r: Rectangle2D): boolean;
36
- contains(x: number, y: number, w: number, h: number): boolean;
37
- contains(r: Rectangle2D): boolean;
38
- getPathIterator(at: AffineTransform): PathIterator;
39
- getPathIterator(at: AffineTransform, flatness: number): PathIterator;
40
- /** TBD-1 */
41
- // export class ShapeIterator implements PathIterator
28
+ export class Shapes<T extends Shape> implements Shape {
29
+ getBounds(): java.awt.Rectangle;
30
+ getBounds2D(): Rectangle2D;
31
+ contains(x: number, y: number): boolean;
32
+ contains(p: Point2D): boolean;
33
+ intersects(x: number, y: number, w: number, h: number): boolean;
34
+ intersects(r: Rectangle2D): boolean;
35
+ contains(x: number, y: number, w: number, h: number): boolean;
36
+ contains(r: Rectangle2D): boolean;
37
+ getPathIterator(at: AffineTransform): PathIterator;
38
+ getPathIterator(at: AffineTransform, flatness: number): PathIterator;
39
+ /** TBD-1 */
40
+ // export class ShapeIterator implements PathIterator
41
+ }
42
42
  }
43
- }
@@ -25,44 +25,43 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.api.geometry {
28
- /**
29
- * A simple list of vertices that can be append or prepended to
30
- */
31
- export class SimplePolygon implements Shape
32
- {
33
- pushLeft(xCoord: number, yCoord: number): void;
34
- popLeft(): void;
35
- private expandLeft(grow: number): void;
36
- pushRight(xCoord: number, yCoord: number): void;
37
- popRight(): void;
38
- private expandRight(grow: number): void;
39
- getX(index: number): number;
40
- getY(index: number): number;
41
- size(): number;
42
- toRuneLitePointList(): Array<Ponumber>;
43
- copyTo(xDest: number[], yDest: number[], offset: number): void;
44
- appendTo(other: SimplePolygon): void;
45
- reverse(): void;
46
28
  /**
47
- * Clips the polygon with the passed convex polygon
29
+ * A simple list of vertices that can be append or prepended to
48
30
  */
49
- intersectWithConvex(convex: SimplePolygon): void;
31
+ export class SimplePolygon implements Shape {
32
+ pushLeft(xCoord: number, yCoord: number): void;
33
+ popLeft(): void;
34
+ private expandLeft(grow: number): void;
35
+ pushRight(xCoord: number, yCoord: number): void;
36
+ popRight(): void;
37
+ private expandRight(grow: number): void;
38
+ getX(index: number): number;
39
+ getY(index: number): number;
40
+ size(): number;
41
+ toRuneLitePointList(): Array<Ponumber>;
42
+ copyTo(xDest: number[], yDest: number[], offset: number): void;
43
+ appendTo(other: SimplePolygon): void;
44
+ reverse(): void;
45
+ /**
46
+ * Clips the polygon with the passed convex polygon
47
+ */
48
+ intersectWithConvex(convex: SimplePolygon): void;
50
49
  // Sutherland-Hodgman
51
- getBounds(): Rectangle;
52
- getBounds2D(): Rectangle2D;
53
- contains(cx: number, cy: number): boolean;
54
- private crossings(cx: number, cy: number, swap: boolean): number;
55
- contains(p: Point2D): boolean;
56
- intersects(x0: number, y0: number, w: number, h: number): boolean;
50
+ getBounds(): java.awt.Rectangle;
51
+ getBounds2D(): Rectangle2D;
52
+ contains(cx: number, cy: number): boolean;
53
+ private crossings(cx: number, cy: number, swap: boolean): number;
54
+ contains(p: Point2D): boolean;
55
+ intersects(x0: number, y0: number, w: number, h: number): boolean;
57
56
  // this is horribly inefficient, but I don't think it will be called anywhere
58
- intersects(r: Rectangle2D): boolean;
59
- contains(x: number, y: number, w: number, h: number): boolean;
60
- contains(r: Rectangle2D): boolean;
61
- getPathIterator(at: AffineTransform): PathIterator;
62
- getPathIterator(at: AffineTransform, flatness: number): PathIterator;
63
- /** TBD-1 */
64
- // export class SimpleIterator implements PathIterator
65
- /** TBD-1 */
66
- // export class TransformIterator extends SimpleIterator
57
+ intersects(r: Rectangle2D): boolean;
58
+ contains(x: number, y: number, w: number, h: number): boolean;
59
+ contains(r: Rectangle2D): boolean;
60
+ getPathIterator(at: AffineTransform): PathIterator;
61
+ getPathIterator(at: AffineTransform, flatness: number): PathIterator;
62
+ /** TBD-1 */
63
+ // export class SimpleIterator implements PathIterator
64
+ /** TBD-1 */
65
+ // export class TransformIterator extends SimpleIterator
66
+ }
67
67
  }
68
- }
@@ -395,7 +395,7 @@ declare namespace net.runelite.api.widgets {
395
395
  *
396
396
  * @return the occupied area of the widget
397
397
  */
398
- getBounds(): Rectangle;
398
+ getBounds(): java.awt.Rectangle;
399
399
  /**
400
400
  * Gets the item ID displayed by the widget.
401
401
  *
@@ -514,12 +514,7 @@ declare namespace net.runelite.api.widgets {
514
514
  */
515
515
  setOriginalWidth(originalWidth: number): Widget;
516
516
  setSize(width: number, height: number): Widget;
517
- setSize(
518
- width: number,
519
- height: number,
520
- widthMode: number,
521
- heightMode: number,
522
- ): Widget;
517
+ setSize(width: number, height: number, widthMode: number, heightMode: number): Widget;
523
518
  /**
524
519
  * Gets the menu options available on the widget as a sparse array.
525
520
  */
@@ -25,45 +25,44 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.api.widgets {
28
- /**
29
- * An item that is being represented in a {@link Widget}.
30
- */
31
- export class WidgetItem
32
- {
33
- /**
34
- * The ID of the item represented.
35
- *
36
- * @see net.runelite.api.ItemID
37
- */
38
- /**
39
- * The quantity of the represented item.
40
- */
41
- /**
42
- * The area where the widget is drawn on the canvas.
43
- */
44
- /**
45
- * The widget which contains this item.
46
- */
47
- /**
48
- * The canvas bounds for the widget, if it is being dragged.
49
- */
50
- /**
51
- * Get the area where the widget item is drawn on the canvas, accounting for drag
52
- * @return
53
- */
54
- getCanvasBounds(): Rectangle;
55
- /**
56
- * Get the area where the widget item is drawn on the canvas
57
- * @param dragging whether the returned area should account for widget drag
58
- * @return
59
- */
60
- getCanvasBounds(dragging: boolean): Rectangle;
61
28
  /**
62
- * Gets the upper-left coordinate of where the widget is being drawn
63
- * on the canvas, accounting for drag.
64
- *
65
- * @return the upper-left coordinate of where this widget is drawn
29
+ * An item that is being represented in a {@link Widget}.
66
30
  */
67
- getCanvasLocation(): Point;
31
+ export class WidgetItem {
32
+ /**
33
+ * The ID of the item represented.
34
+ *
35
+ * @see net.runelite.api.ItemID
36
+ */
37
+ /**
38
+ * The quantity of the represented item.
39
+ */
40
+ /**
41
+ * The area where the widget is drawn on the canvas.
42
+ */
43
+ /**
44
+ * The widget which contains this item.
45
+ */
46
+ /**
47
+ * The canvas bounds for the widget, if it is being dragged.
48
+ */
49
+ /**
50
+ * Get the area where the widget item is drawn on the canvas, accounting for drag
51
+ * @return
52
+ */
53
+ getCanvasBounds(): java.awt.Rectangle;
54
+ /**
55
+ * Get the area where the widget item is drawn on the canvas
56
+ * @param dragging whether the returned area should account for widget drag
57
+ * @return
58
+ */
59
+ getCanvasBounds(dragging: boolean): java.awt.Rectangle;
60
+ /**
61
+ * Gets the upper-left coordinate of where the widget is being drawn
62
+ * on the canvas, accounting for drag.
63
+ *
64
+ * @return the upper-left coordinate of where this widget is drawn
65
+ */
66
+ getCanvasLocation(): Point;
67
+ }
68
68
  }
69
- }