@bettergi/types 0.1.4 → 0.1.6
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/enums/country.d.ts +10 -1
- package/index.d.ts +2 -2
- package/objects/file.d.ts +10 -2
- package/objects/genshin.d.ts +18 -0
- package/package.json +1 -1
package/enums/country.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export type Country =
|
|
1
|
+
export type Country =
|
|
2
|
+
| "蒙德"
|
|
3
|
+
| "璃月"
|
|
4
|
+
| "稻妻"
|
|
5
|
+
| "须弥"
|
|
6
|
+
| "枫丹"
|
|
7
|
+
| "纳塔"
|
|
8
|
+
| "挪德卡莱"
|
|
9
|
+
| "至冬"
|
|
10
|
+
| (string & {});
|
|
2
11
|
|
|
3
12
|
export type Area = "渊下宫" | "层岩巨渊·地下矿区" | "旧日之海" | "远古圣山" | "尘歌壶" | Country;
|
|
4
13
|
|
package/index.d.ts
CHANGED
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
/// <reference path="./types/BetterGenshinImpact/Core/Script/Dependence/ServerTime.d.ts" />
|
|
54
54
|
|
|
55
55
|
// 任务参数
|
|
56
|
-
/// <reference path="./types/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainParam" />
|
|
57
|
-
/// <reference path="./types/BetterGenshinImpact/GameTask/AutoFight/AutoFightParam" />
|
|
56
|
+
/// <reference path="./types/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainParam.d.ts" />
|
|
57
|
+
/// <reference path="./types/BetterGenshinImpact/GameTask/AutoFight/AutoFightParam.d.ts" />
|
|
58
58
|
|
|
59
59
|
/// 设置
|
|
60
60
|
/// <reference path="./objects/settings.d.ts" />
|
package/objects/file.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ declare global {
|
|
|
71
71
|
): Mat;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* 同步输出文本文件
|
|
75
75
|
* @param path 文件路径(相对于脚本根目录,会自动创建目录)
|
|
76
76
|
* @param content 文件内容(不能超过999MB)
|
|
77
77
|
* @param append 是否追加内容(默认值:false)
|
|
@@ -89,7 +89,7 @@ declare global {
|
|
|
89
89
|
function writeText(path: string, content: string, append?: boolean): Promise<boolean>;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* 输出文本文件
|
|
93
93
|
* @param path 文件路径(相对于脚本根目录,会自动创建目录)
|
|
94
94
|
* @param content 文件内容(不能超过999MB)
|
|
95
95
|
* @param callbackFunc 回调函数
|
|
@@ -102,6 +102,14 @@ declare global {
|
|
|
102
102
|
callbackFunc: (ex?: string, ret?: string) => void,
|
|
103
103
|
append?: boolean
|
|
104
104
|
): Promise<boolean>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* 同步写入图片到文件
|
|
108
|
+
* @param path 文件路径(如果没有扩展名,自动追加.png)
|
|
109
|
+
* @param mat OpenCV Mat对象
|
|
110
|
+
* @since 0.48.2
|
|
111
|
+
*/
|
|
112
|
+
function writeImageSync(path: string, mat: Mat): boolean;
|
|
105
113
|
}
|
|
106
114
|
}
|
|
107
115
|
|
package/objects/genshin.d.ts
CHANGED
|
@@ -238,6 +238,24 @@ declare global {
|
|
|
238
238
|
* @since 0.43.5
|
|
239
239
|
*/
|
|
240
240
|
function relogin(): Promise<void>;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* 调整时间
|
|
244
|
+
* @param hour 目标小时(0-24)s
|
|
245
|
+
* @param minute 目标分钟(0-59)
|
|
246
|
+
* @param skip 是否跳过动画(默认值:false)
|
|
247
|
+
* @since 0.54.0
|
|
248
|
+
*/
|
|
249
|
+
function setTime(hour: number, minute: number, skip?: boolean): Promise<void>;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* 调整时间
|
|
253
|
+
* @param hour 目标小时(0-24)s
|
|
254
|
+
* @param minute 目标分钟(0-59)
|
|
255
|
+
* @param skip 是否跳过动画(默认值:false)
|
|
256
|
+
* @since 0.54.0
|
|
257
|
+
*/
|
|
258
|
+
function setTime(hour: string, minute: string, skip?: boolean): Promise<void>;
|
|
241
259
|
}
|
|
242
260
|
}
|
|
243
261
|
|