@deafwave/osrs-botmaker-types 0.5.3 → 0.5.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.
- package/README.md +1 -0
- package/dist/src/types/java/swing/JList.d.ts +2 -2
- package/dist/src/types/sox/api/bot/index.d.ts +0 -1
- package/dist/src/types/sox/api/bot/magic.d.ts +1 -4
- package/dist/src/types/sox/api/bot/task.d.ts +6 -0
- package/dist/src/types/sox/api/bot/widgets.d.ts +9 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare namespace javax.swing {
|
|
2
|
-
export class JList {
|
|
3
|
-
constructor(items: string[]);
|
|
2
|
+
export class JList extends javax.swing.JComponent {
|
|
3
|
+
constructor(items: string[] | javax.swing.DefaultListModel);
|
|
4
4
|
getSelectedValue(): string;
|
|
5
5
|
getSelectedValuesList(): string[];
|
|
6
6
|
setSelectionMode(mode: number): void;
|
|
@@ -72,10 +72,7 @@ declare namespace bot {
|
|
|
72
72
|
* @param spellName The name of the spell to cast
|
|
73
73
|
* @param actionIndex Action index for the spell
|
|
74
74
|
*/
|
|
75
|
-
cast:
|
|
76
|
-
(spellName: SpellName): void;
|
|
77
|
-
(spellName: SpellName, actionIndex: number): void;
|
|
78
|
-
};
|
|
75
|
+
cast: (spellName: SpellName, actionIndex?: number) => void;
|
|
79
76
|
|
|
80
77
|
/**
|
|
81
78
|
* Casts a magic spell on an inventory item by its ID
|
|
@@ -15,6 +15,12 @@ declare namespace bot {
|
|
|
15
15
|
* Stops the execution of the bot task.
|
|
16
16
|
*/
|
|
17
17
|
stop: () => void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Sleep for a specified duration.
|
|
21
|
+
* @param duration - The duration to sleep in milliseconds.
|
|
22
|
+
*/
|
|
23
|
+
sleep: (duration: number) => void;
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
/**
|
|
@@ -19,10 +19,15 @@ declare namespace bot {
|
|
|
19
19
|
* @param p0 The first parameter for the interaction
|
|
20
20
|
* @param p1 The second parameter for the interaction (optional)
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
|
|
23
|
+
interactSpecifiedWidget: (
|
|
24
|
+
packedWidgetId: number,
|
|
25
|
+
identifier: number,
|
|
26
|
+
opcode: number,
|
|
27
|
+
p0: number,
|
|
28
|
+
p1?: number
|
|
29
|
+
) => void;
|
|
30
|
+
|
|
26
31
|
/**
|
|
27
32
|
* Interacts with a widget by matching its text content
|
|
28
33
|
* @param text The text to search for in widgets
|