@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
@@ -27,17 +27,11 @@
27
27
  declare namespace net.runelite.client.plugins.mta.telekinetic {
28
28
  export class TelekineticRoom extends MTARoom {
29
29
  resetRoom(): void;
30
- onWallObjectSpawned(
31
- event: net.runelite.api.events.WallObjectSpawned,
32
- ): void;
33
- onGameStateChanged(
34
- event: net.runelite.api.events.GameStateChanged,
35
- ): void;
30
+ onWallObjectSpawned(event: net.runelite.api.events.WallObjectSpawned): void;
31
+ onGameStateChanged(event: net.runelite.api.events.GameStateChanged): void;
36
32
  // Game objects are nulled when loading new scenes, thus never trigger their respective
37
33
  // ObjectDespawned events.
38
- onGroundObjectSpawned(
39
- event: net.runelite.api.events.GroundObjectSpawned,
40
- ): void;
34
+ onGroundObjectSpawned(event: net.runelite.api.events.GroundObjectSpawned): void;
41
35
  onGameTick(event: net.runelite.api.events.GameTick): void;
42
36
  //Prevent unnecessary updating when the guardian has not moved
43
37
  onNpcSpawned(event: net.runelite.api.events.NpcSpawned): void;
@@ -53,34 +47,19 @@ declare namespace net.runelite.client.plugins.mta.telekinetic {
53
47
  area: net.runelite.api.coords.WorldArea,
54
48
  worldPoint: net.runelite.api.coords.WorldPoint,
55
49
  ): net.runelite.api.coords.WorldPoint;
56
- private renderWorldPoint(
57
- graphics: Graphics2D,
58
- worldPoint: net.runelite.api.coords.WorldPoint,
59
- ): void;
60
- private renderLocalPoint(
61
- graphics: Graphics2D,
62
- local: net.runelite.api.coords.LocalPoint,
63
- ): void;
50
+ private renderWorldPoint(graphics: Graphics2D, worldPoint: net.runelite.api.coords.WorldPoint): void;
51
+ private renderLocalPoint(graphics: Graphics2D, local: net.runelite.api.coords.LocalPoint): void;
64
52
  private build(): Stack<Direction>;
65
53
  private getGuardianDestination(): net.runelite.api.coords.LocalPoint;
66
- private build(
67
- start: net.runelite.api.coords.WorldPoint,
68
- ): Stack<Direction>;
69
- private build(
70
- edges: Record<WorldPoint, WorldPoint>,
71
- finish: net.runelite.api.coords.WorldPoint,
72
- ): Stack<Direction>;
73
- private neighbours(
74
- point: net.runelite.api.coords.LocalPoint,
75
- ): net.runelite.api.coords.LocalPoint[];
54
+ private build(start: net.runelite.api.coords.WorldPoint): Stack<Direction>;
55
+ private build(edges: Record<WorldPoint, WorldPoint>, finish: net.runelite.api.coords.WorldPoint): Stack<Direction>;
56
+ private neighbours(point: net.runelite.api.coords.LocalPoint): net.runelite.api.coords.LocalPoint[];
76
57
  private neighbour(
77
58
  point: net.runelite.api.coords.LocalPoint,
78
59
  direction: net.runelite.api.coords.Direction,
79
60
  ): net.runelite.api.coords.LocalPoint;
80
- private getBounds(walls: WallObject[]): Rectangle;
61
+ private getBounds(walls: WallObject[]): java.awt.Rectangle;
81
62
  private getPosition(): net.runelite.api.coords.Direction;
82
- private getIndicatorLine(
83
- direction: net.runelite.api.coords.Direction,
84
- ): net.runelite.api.coords.WorldArea;
63
+ private getIndicatorLine(direction: net.runelite.api.coords.Direction): net.runelite.api.coords.WorldArea;
85
64
  }
86
65
  }
@@ -25,11 +25,10 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.ui.overlay {
28
- export class OverlayBounds
29
- {
30
- translated(x: number, y: number): OverlayBounds;
31
- forPosition(overlayPosition: OverlayPosition): Rectangle;
32
- fromBounds(bounds: Rectangle): OverlayPosition;
33
- getBounds(): Collection<Rectangle>;
28
+ export class OverlayBounds {
29
+ translated(x: number, y: number): OverlayBounds;
30
+ forPosition(overlayPosition: OverlayPosition): java.awt.Rectangle;
31
+ fromBounds(bounds: Rectangle): OverlayPosition;
32
+ getBounds(): Collection<Rectangle>;
33
+ }
34
34
  }
35
- }
@@ -81,7 +81,7 @@ declare namespace net.runelite.client.ui.overlay {
81
81
  * Gets the parent bounds for overlay dragging.
82
82
  * @returns The parent bounds as a rectangle.
83
83
  */
84
- getParentBounds(): Rectangle;
84
+ getParentBounds(): java.awt.Rectangle;
85
85
 
86
86
  /**
87
87
  * Revalidates the overlay.
@@ -6,7 +6,7 @@ declare namespace net.runelite.client.ui.overlay.components {
6
6
  constructor();
7
7
  constructor(image: BufferedImage);
8
8
 
9
- getBounds(): Rectangle;
9
+ getBounds(): java.awt.Rectangle;
10
10
  render(graphics: Graphics2D): java.awt.Dimension;
11
11
  setPreferredLocation(preferredLocation: net.runelite.api.Point): void;
12
12
  setPreferredSize(dimension: java.awt.Dimension): void;
@@ -2,7 +2,7 @@
2
2
  /// <reference path="../../../../../java/index.d.ts" />
3
3
  declare namespace net.runelite.client.ui.overlay.components {
4
4
  export class LayoutableRenderableEntity extends RenderableEntity {
5
- getBounds(): Rectangle;
5
+ getBounds(): java.awt.Rectangle;
6
6
  setPreferredLocation(position: java.awt.Point): void;
7
7
  setPreferredSize(dimension: java.awt.Dimension): void;
8
8
  }
@@ -17,7 +17,7 @@ declare namespace net.runelite.client.ui.overlay.components {
17
17
 
18
18
  export class LineComponent {
19
19
  builder(): LineComponentBuilder;
20
- getBounds(): Rectangle;
20
+ getBounds(): java.awt.Rectangle;
21
21
  render(graphics: Graphics2D): java.awt.Dimension;
22
22
  setLeft(left: string): void;
23
23
  setLeftColor(leftColor: java.awt.Color): void;
@@ -28,7 +28,7 @@ declare namespace net.runelite.client.ui.overlay.components {
28
28
  export class PanelComponent implements LayoutableRenderableEntity {
29
29
  render(graphics: java.awt.Graphics2D): java.awt.Dimension;
30
30
  getBackgroundColor(): java.awt.Color;
31
- getBounds(): Rectangle;
31
+ getBounds(): java.awt.Rectangle;
32
32
  getChildren(): List<net.runelite.client.ui.overlay.components.LayoutableRenderableEntity>;
33
33
  getPreferredSize(): java.awt.Dimension;
34
34
  render(graphics: java.awt.Graphics2D): java.awt.Dimension;
@@ -9,7 +9,7 @@ declare namespace net.runelite.client.ui.overlay.components {
9
9
  TEXT_ONLY: string;
10
10
  };
11
11
 
12
- getBounds(): Rectangle;
12
+ getBounds(): java.awt.Rectangle;
13
13
  render(graphics: Graphics2D): java.awt.Dimension;
14
14
  setBackgroundColor(backgroundColor: java.awt.Color): void;
15
15
  setCenterLabel(centerLabel: string): void;
@@ -13,7 +13,7 @@ declare namespace net.runelite.client.ui.overlay.components {
13
13
 
14
14
  export class TitleComponent {
15
15
  builder(): TitleComponentBuilder;
16
- getBounds(): Rectangle;
16
+ getBounds(): java.awt.Rectangle;
17
17
  build(): TitleComponent;
18
18
  setColor(color: java.awt.Color): void;
19
19
  setPreferredLocation(preferredLocation: net.runelite.api.Point): void;
@@ -3,7 +3,7 @@
3
3
  /// <reference path="../../../../../java/index.d.ts" />
4
4
  declare namespace net.runelite.client.ui.overlay.components {
5
5
  export class TooltipComponent {
6
- getBounds(): Rectangle;
6
+ getBounds(): java.awt.Rectangle;
7
7
  render(graphics: Graphics2D): java.awt.Dimension;
8
8
  setBackgroundColor(backgroundColor: java.awt.Color): void;
9
9
  setModIcons(modIcons: net.runelite.api.IndexedSprite[]): void;
@@ -26,103 +26,91 @@
26
26
  /// <reference path="./widgets.d.ts" />
27
27
 
28
28
  declare namespace bot {
29
- // Core methods are accessed directly on the bot object
30
- interface SoxBotApi extends bot {
29
+ // Core methods are accessed directly on the bot object
30
+ interface SoxBotApi extends bot {
31
+ // Namespaces
32
+ attackStyle: bot.attackStyle;
33
+ bank: bot.bank;
34
+ bmCache: bot.bmCache;
35
+ bmGlobalCache: bot.bmGlobalCache;
36
+ breakHandler: bot.breakHandler;
37
+ counters: bot.counters;
38
+ equipment: bot.equipment;
39
+ events: bot.events;
40
+ grandExchange: bot.grandExchange;
41
+ graphicsObjects: bot.graphicsObjects;
42
+ inventory: bot.inventory;
43
+ magic: bot.magic;
44
+ net: bot.net;
45
+ notifier: bot.notifier;
46
+ npcs: bot.npcs;
47
+ objects: bot.objects;
48
+ players: bot.players;
49
+ plugins: bot.plugins;
50
+ prayer: bot.prayer;
51
+ projectiles: bot.projectiles;
52
+ task: bot.task;
53
+ tileItems: bot.tileItems;
54
+ variables: bot.variables;
55
+ walking: bot.walking;
56
+ widgets: bot.widgets;
31
57
 
32
- // Namespaces
33
- attackStyle: bot.attackStyle;
34
- bank: bot.bank;
35
- bmCache: bot.bmCache;
36
- bmGlobalCache: bot.bmGlobalCache;
37
- breakHandler: bot.breakHandler;
38
- counters: bot.counters;
39
- equipment: bot.equipment;
40
- events: bot.events;
41
- grandExchange: bot.grandExchange;
42
- graphicsObjects: bot.graphicsObjects;
43
- inventory: bot.inventory;
44
- magic: bot.magic;
45
- net: bot.net;
46
- notifier: bot.notifier;
47
- npcs: bot.npcs;
48
- objects: bot.objects;
49
- players: bot.players;
50
- plugins: bot.plugins;
51
- prayer: bot.prayer;
52
- projectiles: bot.projectiles;
53
- task: bot.task;
54
- tileItems: bot.tileItems;
55
- variables: bot.variables;
56
- walking: bot.walking;
57
- widgets: bot.widgets;
58
+ // Direct methods
59
+ /**
60
+ * Performs a menu action.
61
+ * @param p0 The first parameter for the menu action
62
+ * @param p1 The second parameter for the menu action
63
+ * @param action The menu action to perform
64
+ * @param identifier The identifier for the menu action
65
+ * @param itemId The item ID for the menu action
66
+ * @param option The option for the menu action
67
+ * @param target The target for the menu action
68
+ * @param bounds The bounds for the menu action
69
+ */
70
+ menuAction(
71
+ p0: number,
72
+ p1: number,
73
+ action: MenuAction,
74
+ identifier: number,
75
+ itemId: number,
76
+ option: string,
77
+ target: string,
78
+ bounds?: Rectangle,
79
+ ): void;
80
+ /**
81
+ * Clears the game chat.
82
+ */
83
+ clearGameChat: () => void;
84
+ /**
85
+ * Checks if the local player is idle.
86
+ * @returns True if the local player is idle, false otherwise.
87
+ */
88
+ localPlayerIdle: () => boolean;
89
+ /**
90
+ * Checks if the local player is moving.
91
+ * @returns True if the local player is moving, false otherwise.
92
+ */
93
+ localPlayerMoving: () => boolean;
94
+ /**
95
+ * Prints a message to the game chat.
96
+ * @param message The message to print.
97
+ */
98
+ printGameMessage: (message: string) => void;
99
+ /**
100
+ * Prints a message to the log.
101
+ * @param message The message to print.
102
+ */
103
+ printLogMessage: (message: string) => void;
58
104
 
59
- // Direct methods
60
- /**
61
- * Performs a menu action.
62
- * @param p0 The first parameter for the menu action
63
- * @param p1 The second parameter for the menu action
64
- * @param action The menu action to perform
65
- * @param identifier The identifier for the menu action
66
- * @param itemId The item ID for the menu action
67
- * @param option The option for the menu action
68
- * @param target The target for the menu action
69
- * @param bounds The bounds for the menu action
70
- */
71
- menuAction: {
72
- (
73
- p0: number,
74
- p1: number,
75
- action: net.runelite.api.MenuAction,
76
- identifier: number,
77
- itemId: number,
78
- option: string,
79
- target: string
80
- ): void;
81
- (
82
- p0: number,
83
- p1: number,
84
- action: net.runelite.api.MenuAction,
85
- identifier: number,
86
- itemId: number,
87
- option: string,
88
- target: string,
89
- bounds: java.awt.Rectangle
90
- ): void;
91
- };
92
- /**
93
- * Clears the game chat.
94
- */
95
- clearGameChat: () => void;
96
- /**
97
- * Checks if the local player is idle.
98
- * @returns True if the local player is idle, false otherwise.
99
- */
100
- localPlayerIdle: () => boolean;
101
- /**
102
- * Checks if the local player is moving.
103
- * @returns True if the local player is moving, false otherwise.
104
- */
105
- localPlayerMoving: () => boolean;
106
- /**
107
- * Prints a message to the game chat.
108
- * @param message The message to print.
109
- */
110
- printGameMessage: (message: string) => void;
111
- /**
112
- * Prints a message to the log.
113
- * @param message The message to print.
114
- */
115
- printLogMessage: (message: string) => void;
105
+ /**
106
+ * Runs a client script.
107
+ * @param ints The integer parameters for the script.
108
+ */
109
+ runClientScript: (ints: number[]) => void;
116
110
 
117
- /**
118
- * Runs a client script.
119
- * @param ints The integer parameters for the script.
120
- */
121
- runClientScript: (ints: number[]) => void;
122
-
123
- /**
124
- * Terminates the bot.
125
- */
126
- terminate: () => void;
127
- }
111
+ /**
112
+ * Terminates the bot.
113
+ */
114
+ terminate: () => void;
115
+ }
128
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-types",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "author": {
5
5
  "name": "Chandler Ferry",
6
6
  "url": "https://github.com/ChandlerFerry"
@@ -1,13 +0,0 @@
1
- interface Rectangle {
2
- // Properties
3
- x: number;
4
- y: number;
5
- width: number;
6
- height: number;
7
-
8
- // Methods
9
- contains(x: number, y: number): boolean;
10
- contains(x: number, y: number, width: number, height: number): boolean;
11
- intersects(rect: Rectangle): boolean;
12
- union(rect: Rectangle): Rectangle;
13
- }