@bettergi/types 0.0.11 → 0.0.13

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 (73) hide show
  1. package/README.md +8 -0
  2. package/csharp/BetterGenshinImpact/Core/Recognition/OcrEngineTypes.d.ts +13 -7
  3. package/csharp/BetterGenshinImpact/Core/Recognition/RecognitionObject.d.ts +151 -142
  4. package/csharp/BetterGenshinImpact/Core/Recognition/RecognitionTypes.d.ts +20 -14
  5. package/csharp/BetterGenshinImpact/Core/Script/Dependence/Model/RealtimeTimer.d.ts +20 -14
  6. package/csharp/BetterGenshinImpact/Core/Script/Dependence/Model/SoloTask.d.ts +12 -7
  7. package/csharp/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainParam.d.ts +72 -0
  8. package/csharp/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainTask.d.ts +40 -0
  9. package/csharp/BetterGenshinImpact/GameTask/AutoFight/AutoFightParam.d.ts +113 -0
  10. package/csharp/BetterGenshinImpact/GameTask/AutoFight/AutoFightTask.d.ts +40 -0
  11. package/csharp/BetterGenshinImpact/GameTask/ISoloTask.d.ts +13 -0
  12. package/csharp/BetterGenshinImpact/GameTask/Model/Area/Converter/INodeConverter.d.ts +8 -2
  13. package/csharp/BetterGenshinImpact/GameTask/Model/Area/ImageRegion.d.ts +65 -52
  14. package/csharp/BetterGenshinImpact/GameTask/Model/Area/Region.d.ts +190 -136
  15. package/csharp/BetterGenshinImpact/GameTask/Model/BaseTaskParam.d.ts +13 -0
  16. package/csharp/BetterGenshinImpact/View/Drawable/DrawContent.d.ts +45 -0
  17. package/csharp/BetterGenshinImpact/View/Drawable/LineDrawable.d.ts +17 -9
  18. package/csharp/BetterGenshinImpact/View/Drawable/RectDrawable.d.ts +20 -10
  19. package/csharp/Microsoft/Extensions/Localization/IStringLocalizer.d.ts +16 -0
  20. package/csharp/Microsoft/Extensions/Localization/LocalizedString.d.ts +26 -0
  21. package/csharp/SixLabors/ImageSharp/Image.d.ts +9 -0
  22. package/csharp/System/Collections/DictionaryEntry.d.ts +14 -0
  23. package/csharp/System/Collections/Generic/Dictionary.d.ts +193 -34
  24. package/csharp/System/Collections/Generic/ICollection.d.ts +15 -9
  25. package/csharp/System/Collections/Generic/IDictionary.d.ts +11 -22
  26. package/csharp/System/Collections/Generic/IEnumerable.d.ts +10 -3
  27. package/csharp/System/Collections/Generic/IEnumerator.d.ts +10 -5
  28. package/csharp/System/Collections/Generic/IEqualityComparer.d.ts +9 -3
  29. package/csharp/System/Collections/Generic/IList.d.ts +16 -7
  30. package/csharp/System/Collections/Generic/IReadOnlyCollection.d.ts +9 -3
  31. package/csharp/System/Collections/Generic/IReadOnlyDictionary.d.ts +15 -10
  32. package/csharp/System/Collections/Generic/IReadOnlyList.d.ts +9 -3
  33. package/csharp/System/Collections/Generic/KeyValuePair.d.ts +15 -8
  34. package/csharp/System/Collections/Generic/List.d.ts +149 -77
  35. package/csharp/System/Collections/ICollection.d.ts +17 -0
  36. package/csharp/System/Collections/IDictionary.d.ts +29 -0
  37. package/csharp/System/Collections/IDictionaryEnumerator.d.ts +14 -0
  38. package/csharp/System/Collections/IEnumerable.d.ts +9 -0
  39. package/csharp/System/Collections/IEnumerator.d.ts +13 -0
  40. package/csharp/System/Collections/IList.d.ts +30 -0
  41. package/csharp/System/DateTimeOffset.d.ts +8 -0
  42. package/csharp/System/Drawing/Bitmap.d.ts +8 -2
  43. package/csharp/System/Drawing/Color.d.ts +341 -2
  44. package/csharp/System/Drawing/Image.d.ts +8 -2
  45. package/csharp/System/Drawing/KnownColor.d.ts +357 -0
  46. package/csharp/System/Drawing/Pen.d.ts +8 -2
  47. package/csharp/System/Globalization/CultureInfo.d.ts +9 -0
  48. package/csharp/System/IAsyncDisposable.d.ts +10 -0
  49. package/csharp/System/IDisposable.d.ts +9 -0
  50. package/csharp/System/IEquatable.d.ts +8 -0
  51. package/csharp/System/Runtime/Serialization/IDeserializationCallback.d.ts +9 -0
  52. package/csharp/System/Runtime/Serialization/ISerializable.d.ts +9 -0
  53. package/csharp/System/Threading/CancellationToken.d.ts +58 -0
  54. package/csharp/System/Threading/CancellationTokenRegistration.d.ts +27 -0
  55. package/csharp/System/Threading/CancellationTokenSource.d.ts +51 -0
  56. package/csharp/System/Threading/ITimer.d.ts +12 -0
  57. package/csharp/System/Threading/Tasks/ValueTask.d.ts +12 -0
  58. package/csharp/System/Threading/WaitHandle.d.ts +8 -0
  59. package/csharp/System/TimeProvider.d.ts +31 -0
  60. package/csharp/System/TimeSpan.d.ts +8 -0
  61. package/csharp/System/Windows/Media/Matrix.d.ts +80 -0
  62. package/csharp/System/Windows/Point.d.ts +39 -5
  63. package/csharp/System/Windows/Vector.d.ts +51 -0
  64. package/modules/dispatcher.d.ts +54 -3
  65. package/modules/file.d.ts +3 -3
  66. package/modules/genshin.d.ts +18 -1
  67. package/modules/globalMethod.d.ts +9 -5
  68. package/modules/http.d.ts +23 -21
  69. package/package.json +1 -1
  70. package/csharp/Vanara/PInvoke/POINT.d.ts +0 -23
  71. package/csharp/Vanara/PInvoke/RECT.d.ts +0 -37
  72. package/csharp/Vanara/PInvoke/SIZE.d.ts +0 -19
  73. package/enums/wood.d.ts +0 -27
package/README.md CHANGED
@@ -2,10 +2,18 @@
2
2
 
3
3
  ## 安装
4
4
 
5
+ ### 使用 npm
6
+
5
7
  ```shell
6
8
  npm install --save-dev @bettergi/types
7
9
  ```
8
10
 
11
+ ### 使用 pnpm
12
+
13
+ ```shell
14
+ pnpm install --save-dev @bettergi/types
15
+ ```
16
+
9
17
  ## 用法
10
18
 
11
19
  在 TypeScript 项目的 `tsconfig.json` 配置文件中添加类型引用。
@@ -1,10 +1,16 @@
1
- export enum OcrEngineTypes {
2
- /** [飞桨](https://github.com/PaddlePaddle/PaddleOCR) */
3
- Paddle,
1
+ declare global {
2
+ namespace BetterGenshinImpact.Core.Recognition {
3
+ enum OcrEngineTypes {
4
+ /** [飞桨](https://github.com/PaddlePaddle/PaddleOCR) */
5
+ Paddle,
4
6
 
5
- /** [又一个原神圣遗物导出器](https://github.com/wormtql/yas) */
6
- YasModel,
7
+ /** [又一个原神圣遗物导出器](https://github.com/wormtql/yas) */
8
+ YasModel,
7
9
 
8
- /** [又一个原神拾取器](https://github.com/Alex-Beng/Yap) */
9
- YapModel
10
+ /** [又一个原神拾取器](https://github.com/Alex-Beng/Yap) */
11
+ YapModel
12
+ }
13
+ }
10
14
  }
15
+
16
+ export {};
@@ -5,149 +5,158 @@ import {
5
5
  Scalar,
6
6
  TemplateMatchModes
7
7
  } from "mirada/dist/src/types/opencv";
8
- import { Dictionary } from "../../../System/Collections/Generic/Dictionary";
9
- import { List } from "../../../System/Collections/Generic/List";
10
- import { Color } from "../../../System/Drawing/Color";
11
- import { Pen } from "../../../System/Drawing/Pen";
12
- import { OcrEngineTypes } from "./OcrEngineTypes";
13
- import { RecognitionTypes } from "./RecognitionTypes";
14
-
15
- export interface RecognitionObject {
16
- /** 匹配类型 */
17
- recognitionType: RecognitionTypes;
18
-
19
- /** 感兴趣的区域 */
20
- regionOfInterest: Rect;
21
-
22
- /** 识别对象名称 */
23
- name: string | null;
24
-
25
- /** 模板匹配的对象(彩色) */
26
- templateImageMat: Mat | null;
27
-
28
- /** 模板匹配的对象(灰色) */
29
- templateImageGreyMat: Mat | null;
30
-
31
- /**
32
- * 模板匹配阈值
33
- * @default 0.8
34
- */
35
- threshold: number;
36
-
37
- /**
38
- * 是否使用3通道匹配
39
- * @default false
40
- */
41
- use3Channels: boolean;
42
-
43
- /**
44
- * [模板匹配算法](https://docs.opencv.org/4.x/df/dfb/group__imgproc__object.html)
45
- * @default CCoeffNormed
46
- */
47
- templateMatchMode: TemplateMatchModes;
48
-
49
- /**
50
- * 匹配模板遮罩(图片中不需要匹配的颜色)
51
- * @default false
52
- */
53
- useMask: boolean;
54
-
55
- /**
56
- * 模板遮罩颜色(图片中不需要匹配的颜色)不需要匹配的颜色
57
- * @requires `useMask` 为 true
58
- * @default 绿色
59
- */
60
- maskColor: Color;
61
-
62
- maskMat: Mat | null;
63
-
64
- /**
65
- * 匹配成功时,是否在屏幕上绘制矩形框
66
- * @requires `name` 不为空
67
- * @default false
68
- */
69
- drawOnWindow: boolean;
70
-
71
- /**
72
- * 绘制的矩形框的颜色及线条宽度
73
- * @default 红色 2px
74
- */
75
- drawOnWindowPen: Pen;
76
-
77
- /**
78
- * 一个模板匹配多个结果的时候最大匹配数量
79
- * @default -1 (不限制)
80
- */
81
- maxMatchCount: number;
82
-
83
- /** 颜色匹配方式 */
84
- colorConversionCode: ColorConversionCodes;
85
-
86
- /** 起始颜色范围 */
87
- lowerColor: Scalar;
88
-
89
- /** 终止颜色范围 */
90
- upperColor: Scalar;
91
-
92
- /**
93
- * 符合的点的数量要求
94
- * @default 1
95
- */
96
- matchCount: number;
97
-
98
- /** OCR 引擎 */
99
- ocrEngine: OcrEngineTypes;
100
-
101
- /** 文字识别替换字典(部分文字识别结果不准确) */
102
- replaceDictionary: Dictionary<string, string[]>;
103
-
104
- /** 包含匹配 多个值全匹配的情况下才算成功 复杂情况请用正则匹配 */
105
- allContainMatchText: List<string>;
106
-
107
- /** 包含匹配 一个值匹配就算成功 */
108
- oneContainMatchText: List<string>;
109
-
110
- /** 正则匹配 多个值全匹配的情况下才算成功 */
111
- regexMatchText: List<string>;
112
-
113
- /** 初始化模板 */
114
- initTemplate(): RecognitionObject;
115
- }
8
+ import "../../../System/Collections/Generic/Dictionary";
9
+ import "../../../System/Collections/Generic/List";
10
+ import "../../../System/Drawing/Color";
11
+ import "../../../System/Drawing/Pen";
12
+ import "../Recognition/OcrEngineTypes";
13
+ import "../Recognition/RecognitionTypes";
116
14
 
117
15
  declare global {
118
- namespace RecognitionObject {
119
- /**
120
- * 识别图片模板
121
- * @param mat 模板图片
122
- */
123
- function templateMatch(mat: Mat): RecognitionObject;
124
-
125
- /**
126
- * 在指定区域识别图片模板
127
- * @param mat 模板图片
128
- * @param x 水平位置(像素)
129
- * @param y 垂直位置(像素)
130
- * @param w 宽度
131
- * @param h 高度
132
- */
133
- function templateMatch(mat: Mat, x: number, y: number, w: number, h: number): RecognitionObject;
134
-
135
- /**
136
- * 识别指定区域
137
- * @param x 水平位置(像素)
138
- * @param y 垂直位置(像素)
139
- * @param w 宽度
140
- * @param h 高度
141
- */
142
- function ocr(x: number, y: number, w: number, h: number): RecognitionObject;
143
-
144
- /**
145
- * 识别矩形区域
146
- * @param rect 矩形
147
- */
148
- function ocr(rect: Rect): RecognitionObject;
149
-
150
- /** 识别文字 */
151
- var ocrThis: RecognitionObject;
16
+ namespace BetterGenshinImpact.Core.Recognition {
17
+ class RecognitionObject {
18
+ /** 匹配类型 */
19
+ recognitionType: RecognitionTypes;
20
+
21
+ /** 感兴趣的区域 */
22
+ regionOfInterest: Rect;
23
+
24
+ /** 识别对象名称 */
25
+ name: string | null;
26
+
27
+ /** 模板匹配的对象(彩色) */
28
+ templateImageMat: Mat | null;
29
+
30
+ /** 模板匹配的对象(灰色) */
31
+ templateImageGreyMat: Mat | null;
32
+
33
+ /**
34
+ * 模板匹配阈值
35
+ * @default 0.8
36
+ */
37
+ threshold: number;
38
+
39
+ /**
40
+ * 是否使用3通道匹配
41
+ * @default false
42
+ */
43
+ use3Channels: boolean;
44
+
45
+ /**
46
+ * [模板匹配算法](https://docs.opencv.org/4.x/df/dfb/group__imgproc__object.html)
47
+ * @default CCoeffNormed
48
+ */
49
+ templateMatchMode: TemplateMatchModes;
50
+
51
+ /**
52
+ * 匹配模板遮罩(图片中不需要匹配的颜色)
53
+ * @default false
54
+ */
55
+ useMask: boolean;
56
+
57
+ /**
58
+ * 模板遮罩颜色(图片中不需要匹配的颜色)不需要匹配的颜色
59
+ * @requires `useMask` 为 true
60
+ * @default 绿色
61
+ */
62
+ maskColor: System.Drawing.Color;
63
+
64
+ maskMat: Mat | null;
65
+
66
+ /**
67
+ * 匹配成功时,是否在屏幕上绘制矩形框
68
+ * @requires `name` 不为空
69
+ * @default false
70
+ */
71
+ drawOnWindow: boolean;
72
+
73
+ /**
74
+ * 绘制的矩形框的颜色及线条宽度
75
+ * @default 红色 2px
76
+ */
77
+ drawOnWindowPen: System.Drawing.Pen;
78
+
79
+ /**
80
+ * 一个模板匹配多个结果的时候最大匹配数量
81
+ * @default -1 (不限制)
82
+ */
83
+ maxMatchCount: number;
84
+
85
+ /** 颜色匹配方式 */
86
+ colorConversionCode: ColorConversionCodes;
87
+
88
+ /** 起始颜色范围 */
89
+ lowerColor: Scalar;
90
+
91
+ /** 终止颜色范围 */
92
+ upperColor: Scalar;
93
+
94
+ /**
95
+ * 符合的点的数量要求
96
+ * @default 1
97
+ */
98
+ matchCount: number;
99
+
100
+ /** OCR 引擎 */
101
+ ocrEngine: OcrEngineTypes;
102
+
103
+ /** 文字识别替换字典(部分文字识别结果不准确) */
104
+ replaceDictionary: System.Collections.Generic.Dictionary<string, string[]>;
105
+
106
+ /** 包含匹配 多个值全匹配的情况下才算成功 复杂情况请用正则匹配 */
107
+ allContainMatchText: System.Collections.Generic.List<string>;
108
+
109
+ /** 包含匹配 一个值匹配就算成功 */
110
+ oneContainMatchText: System.Collections.Generic.List<string>;
111
+
112
+ /** 正则匹配 多个值全匹配的情况下才算成功 */
113
+ regexMatchText: System.Collections.Generic.List<string>;
114
+
115
+ /** 初始化模板 */
116
+ initTemplate(): RecognitionObject;
117
+
118
+ /**
119
+ * 识别图片模板
120
+ * @param mat 模板图片
121
+ */
122
+ static templateMatch(mat: Mat): RecognitionObject;
123
+
124
+ /**
125
+ * 识别图片模板
126
+ * @param mat 模板图片
127
+ */
128
+ static templateMatch(mat: Mat): RecognitionObject;
129
+
130
+ /**
131
+ * 在指定区域识别图片模板
132
+ * @param mat 模板图片
133
+ * @param x 水平位置(像素)
134
+ * @param y 垂直位置(像素)
135
+ * @param w 宽度
136
+ * @param h 高度
137
+ */
138
+ static templateMatch(mat: Mat, x: number, y: number, w: number, h: number): RecognitionObject;
139
+
140
+ /**
141
+ * 识别指定区域
142
+ * @param x 水平位置(像素)
143
+ * @param y 垂直位置(像素)
144
+ * @param w 宽度
145
+ * @param h 高度
146
+ */
147
+ static ocr(x: number, y: number, w: number, h: number): RecognitionObject;
148
+
149
+ /**
150
+ * 识别矩形区域
151
+ * @param rect 矩形
152
+ */
153
+ static ocr(rect: Rect): RecognitionObject;
154
+
155
+ /** 识别文字 */
156
+ static readonly ocrThis: RecognitionObject;
157
+ }
152
158
  }
159
+ export import RecognitionObject = BetterGenshinImpact.Core.Recognition.RecognitionObject;
153
160
  }
161
+
162
+ export {};
@@ -1,21 +1,27 @@
1
- export enum RecognitionTypes {
2
- None,
1
+ declare global {
2
+ namespace BetterGenshinImpact.Core.Recognition {
3
+ enum RecognitionTypes {
4
+ None,
3
5
 
4
- /** 模板匹配 */
5
- TemplateMatch,
6
+ /** 模板匹配 */
7
+ TemplateMatch,
6
8
 
7
- /** 颜色匹配 */
8
- ColorMatch,
9
+ /** 颜色匹配 */
10
+ ColorMatch,
9
11
 
10
- /** 文字识别并匹配 */
11
- OcrMatch,
12
+ /** 文字识别并匹配 */
13
+ OcrMatch,
12
14
 
13
- /** 仅文字识别 */
14
- Ocr,
15
+ /** 仅文字识别 */
16
+ Ocr,
15
17
 
16
- /** 提取指定颜色后进行文字识别 */
17
- ColorRangeAndOcr,
18
+ /** 提取指定颜色后进行文字识别 */
19
+ ColorRangeAndOcr,
18
20
 
19
- /** 自动检测 */
20
- Detect
21
+ /** 自动检测 */
22
+ Detect
23
+ }
24
+ }
21
25
  }
26
+
27
+ export {};
@@ -1,29 +1,35 @@
1
1
  export type RealtimeTimerName =
2
+ | "RecognitionTest" // 自定义占位触发器(一个用于开发测试的识别、或者全局占位触发器 这个触发器启动的时候,直接独占)
3
+ | "GameLoading" // 自动开门
2
4
  | "AutoPick" // 自动拾取
3
- | "AutoSkip" // 自动剧情
4
- | "AutoFish" // 半自动战斗
5
5
  | "QuickTeleport" // 快速传送
6
+ | "AutoSkip" // 自动剧情
7
+ | "AutoFish" // 自动钓鱼
6
8
  | "AutoCook" // 自动烹饪
9
+ | "AutoEat" // 自动吃药
7
10
  | (string & {});
8
11
 
9
12
  declare global {
10
- class RealtimeTimer {
11
- /** 任务名称 */
12
- name: RealtimeTimerName | null;
13
+ namespace BetterGenshinImpact.Core.Script.Dependence.Model {
14
+ class RealtimeTimer {
15
+ /** 任务名称 */
16
+ name: RealtimeTimerName | null;
13
17
 
14
- /**
15
- * 触发间隔(毫秒)
16
- * @default 50
17
- */
18
- interval: number;
18
+ /**
19
+ * 触发间隔(毫秒)
20
+ * @default 50
21
+ */
22
+ interval: number;
19
23
 
20
- /** 任务配置 */
21
- config: any | null;
24
+ /** 任务配置 */
25
+ config: any | null;
22
26
 
23
- constructor(name: RealtimeTimerName);
27
+ constructor(name: RealtimeTimerName);
24
28
 
25
- constructor(name: RealtimeTimerName, config: any);
29
+ constructor(name: RealtimeTimerName, config: any);
30
+ }
26
31
  }
32
+ export import RealtimeTimer = BetterGenshinImpact.Core.Script.Dependence.Model.RealtimeTimer;
27
33
  }
28
34
 
29
35
  export {};
@@ -4,20 +4,25 @@ export type SoloTaskName =
4
4
  | "AutoFight" // 自动战斗
5
5
  | "AutoDomain" // 自动秘境
6
6
  | "AutoFishing" // 自动钓鱼
7
+ | "AutoEat" // 自动吃药
8
+ | "CountInventoryItem" // 背包数物品
7
9
  | (string & {});
8
10
 
9
11
  declare global {
10
- class SoloTask {
11
- /** 任务名称 */
12
- name: SoloTaskName;
12
+ namespace BetterGenshinImpact.Core.Script.Dependence.Model {
13
+ class SoloTask {
14
+ /** 任务名称 */
15
+ name: SoloTaskName;
13
16
 
14
- /** 任务配置 */
15
- config: any | null;
17
+ /** 任务配置 */
18
+ config: any | null;
16
19
 
17
- constructor(name: SoloTaskName);
20
+ constructor(name: SoloTaskName);
18
21
 
19
- constructor(name: SoloTaskName, config: any);
22
+ constructor(name: SoloTaskName, config: any);
23
+ }
20
24
  }
25
+ export import SoloTask = BetterGenshinImpact.Core.Script.Dependence.Model.SoloTask;
21
26
  }
22
27
 
23
28
  export {};
@@ -0,0 +1,72 @@
1
+ import "../../GameTask/Model/BaseTaskParam";
2
+ import "./AutoDomainTask";
3
+
4
+ declare global {
5
+ namespace BetterGenshinImpact.GameTask.AutoDomain {
6
+ class AutoDomainParam extends BetterGenshinImpact.GameTask.Model
7
+ .BaseTaskParam<BetterGenshinImpact.GameTask.AutoDomain.AutoDomainTask> {
8
+ /** 刷副本次数 */
9
+ domainRoundNum: number;
10
+
11
+ /** 战斗策略路径 */
12
+ combatStrategyPath: string;
13
+
14
+ /** 刷副本使用的队伍名称 */
15
+ partyName: string;
16
+
17
+ /** 需要刷取的副本名称 */
18
+ domainName: string;
19
+
20
+ /** 需要刷取的副本名称 */
21
+ sundaySelectedValue: string;
22
+
23
+ /** 结束后是否自动分解圣遗物 */
24
+ autoArtifactSalvage: boolean;
25
+
26
+ /** 分解圣遗物的最大星级(1~4) */
27
+ maxArtifactStar: number;
28
+
29
+ /** 指定树脂刷取次数 */
30
+ specifyResinUse: boolean;
31
+
32
+ /** 使用树脂优先级 */
33
+ resinPriorityList: string[];
34
+
35
+ /** 使用原粹树脂刷取副本次数 */
36
+ originalResinUseCount: number;
37
+
38
+ /** 使用浓缩树脂刷取副本次数 */
39
+ condensedResinUseCount: number;
40
+
41
+ /** 使用须臾树脂刷取副本次数 */
42
+ transientResinUseCount: number;
43
+
44
+ /** 使用脆弱树脂刷取副本次数 */
45
+ fragileResinUseCount: number;
46
+
47
+ /** 设置默认值 */
48
+ setDefault(): void;
49
+
50
+ /**
51
+ * 设置战斗策略路径
52
+ * @param strategyName 策略名称
53
+ */
54
+ setCombatStrategyPath(strategyName?: string): void;
55
+
56
+ /**
57
+ * 设置使用树脂优先级
58
+ * @param priorities 树脂名称列表(越靠前优先级越高)
59
+ */
60
+ setResinPriorityList(priorities: string[]): void;
61
+
62
+ constructor();
63
+
64
+ constructor(domainRoundNum: number);
65
+
66
+ constructor(domainRoundNum: number, path: string);
67
+ }
68
+ }
69
+ export import AutoDomainParam = BetterGenshinImpact.GameTask.AutoDomain.AutoDomainParam;
70
+ }
71
+
72
+ export {};
@@ -0,0 +1,40 @@
1
+ import "../../../System/Collections/Generic/List";
2
+ import "../../../System/Threading/CancellationToken";
3
+ import "../../GameTask/Model/Area/ImageRegion";
4
+ import "../../GameTask/Model/Area/Region";
5
+ import "../ISoloTask";
6
+ import "./AutoDomainParam";
7
+
8
+ declare global {
9
+ namespace BetterGenshinImpact.GameTask.AutoDomain {
10
+ class AutoDomainTask implements BetterGenshinImpact.GameTask.ISoloTask {
11
+ name: string;
12
+
13
+ start(ct: System.Threading.CancellationToken): Promise<void>;
14
+
15
+ /**
16
+ * 点击使用树脂
17
+ * @param ra 图像识别区域
18
+ * @param resinName 树脂名称
19
+ */
20
+ static pressUseResin(
21
+ ra: BetterGenshinImpact.GameTask.Model.Area.ImageRegion,
22
+ resinName: string
23
+ ): [boolean, number];
24
+
25
+ /**
26
+ * 点击使用树脂
27
+ * @param regionList 识别区域列表
28
+ * @param resinName 树脂名称
29
+ */
30
+ static pressUseResin(
31
+ regionList: System.Collections.Generic.List<BetterGenshinImpact.GameTask.Model.Area.Region>,
32
+ resinName: string
33
+ ): [boolean, number];
34
+
35
+ constructor(taskParam: BetterGenshinImpact.GameTask.AutoDomain.AutoDomainParam);
36
+ }
37
+ }
38
+ }
39
+
40
+ export {};