@bettergi/types 0.1.15 → 0.1.17

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 (46) hide show
  1. package/bindings/Color.d.ts +12 -0
  2. package/bindings/Pen.d.ts +12 -0
  3. package/bindings/RealtimeTimer.d.ts +1 -1
  4. package/bindings/characterDevelopmentTask.d.ts +11 -0
  5. package/bindings/getAvatars.d.ts +3 -2
  6. package/index.d.ts +3 -0
  7. package/package.json +1 -1
  8. package/types/BetterGenshinImpact/Core/BgiVision/BvFlow.d.ts +243 -0
  9. package/types/BetterGenshinImpact/Core/BgiVision/BvFlowAction.d.ts +249 -0
  10. package/types/BetterGenshinImpact/Core/BgiVision/BvLocator.d.ts +16 -21
  11. package/types/BetterGenshinImpact/Core/BgiVision/BvPage.d.ts +22 -0
  12. package/types/BetterGenshinImpact/Core/Recognition/RecognitionObject.d.ts +3 -3
  13. package/types/BetterGenshinImpact/Core/Script/Dependence/AutoPathingScript.d.ts +1 -1
  14. package/types/BetterGenshinImpact/Core/Script/Dependence/Dispatcher.d.ts +5 -4
  15. package/types/BetterGenshinImpact/Core/Script/Dependence/Genshin.d.ts +29 -11
  16. package/types/BetterGenshinImpact/Core/Script/Dependence/Http.d.ts +1 -0
  17. package/types/BetterGenshinImpact/Core/Script/Dependence/KeyMouseHook.d.ts +1 -0
  18. package/types/BetterGenshinImpact/Core/Script/Dependence/LimitedFile.d.ts +12 -5
  19. package/types/BetterGenshinImpact/Core/Script/Dependence/Model/RealtimeTimer.d.ts +63 -8
  20. package/types/BetterGenshinImpact/Core/Script/Dependence/Model/SoloTask.d.ts +4 -1
  21. package/types/BetterGenshinImpact/GameTask/AutoBoss/AutoBossConfig.d.ts +68 -3
  22. package/types/BetterGenshinImpact/GameTask/AutoBoss/AutoBossParam.d.ts +12 -4
  23. package/types/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainParam.d.ts +11 -9
  24. package/types/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainTask.d.ts +61 -0
  25. package/types/BetterGenshinImpact/GameTask/AutoFight/AutoFightConfig.d.ts +102 -2
  26. package/types/BetterGenshinImpact/GameTask/AutoFight/AutoFightParam.d.ts +49 -6
  27. package/types/BetterGenshinImpact/GameTask/AutoFight/Config/CombatAvatar.d.ts +153 -5
  28. package/types/BetterGenshinImpact/GameTask/AutoFight/Model/Avatar.d.ts +137 -31
  29. package/types/BetterGenshinImpact/GameTask/AutoFight/Model/CombatScenes.d.ts +13 -13
  30. package/types/BetterGenshinImpact/GameTask/AutoFight/Script/CombatCommand.d.ts +3 -3
  31. package/types/BetterGenshinImpact/GameTask/AutoFight/Script/CombatScript.d.ts +3 -2
  32. package/types/BetterGenshinImpact/GameTask/AutoFight/Script/Method.d.ts +63 -3
  33. package/types/BetterGenshinImpact/GameTask/AutoLeyLineOutcrop/AutoLeyLineOutcropFightConfig.d.ts +4 -3
  34. package/types/BetterGenshinImpact/GameTask/AutoLeyLineOutcrop/AutoLeyLineOutcropParam.d.ts +1 -0
  35. package/types/BetterGenshinImpact/GameTask/AutoPathing/PathingScriptNames.d.ts +50 -0
  36. package/types/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipConfig.d.ts +2 -0
  37. package/types/BetterGenshinImpact/GameTask/AutoStygianOnslaught/AutoStygianOnslaughtConfig.d.ts +5 -3
  38. package/types/BetterGenshinImpact/GameTask/AutoStygianOnslaught/AutoStygianOnslaughtParam.d.ts +6 -4
  39. package/types/BetterGenshinImpact/GameTask/CharacterDevelopment/CharacterDevelopmentTask.d.ts +158 -0
  40. package/types/BetterGenshinImpact/GameTask/Common/Job/CraftMaterialTask.d.ts +19 -2
  41. package/types/BetterGenshinImpact/GameTask/Common/Map/MapScriptNames.d.ts +9 -0
  42. package/types/BetterGenshinImpact/GameTask/Model/Area/GameCaptureRegion.d.ts +6 -7
  43. package/types/BetterGenshinImpact/GameTask/Model/Area/ImageRegion.d.ts +18 -15
  44. package/types/BetterGenshinImpact/GameTask/Model/Area/Region.d.ts +5 -0
  45. package/types/BetterGenshinImpact/GameTask/Model/GameUI/GridScreenName.d.ts +1 -1
  46. package/types/BetterGenshinImpact/Helpers/User32Helper.d.ts +7 -0
@@ -8,22 +8,147 @@ import type {
8
8
  } from "../../../../Microsoft/ClearScript/HostType";
9
9
  import type { VoidResult } from "../../../../Microsoft/ClearScript/VoidResult";
10
10
  import "../../../../OpenCvSharp/Rect";
11
- import "../../../../System/Collections/Generic/List";
12
11
  import "../../../../System/DateTime";
13
12
  import "../../../../System/Nullable";
14
13
  import "../../../../System/Threading/CancellationToken";
15
- import "../../../../System/ValueTuple";
16
14
  import "../../../../System/WebSocket";
17
15
  import type { KeyCode } from "../../../Helpers/User32Helper";
18
16
  import "../../Model/Area/ImageRegion";
19
17
  import "../Config/CombatAvatar";
20
18
  import "./CombatScenes";
21
19
 
20
+ export type AvatarName =
21
+ | "未知角色"
22
+ | "神里绫华"
23
+ | "琴"
24
+ | "旅行者"
25
+ | "荧"
26
+ | "空"
27
+ | "丽莎"
28
+ | "芭芭拉"
29
+ | "凯亚"
30
+ | "迪卢克"
31
+ | "雷泽"
32
+ | "安柏"
33
+ | "温迪"
34
+ | "香菱"
35
+ | "北斗"
36
+ | "行秋"
37
+ | "魈"
38
+ | "凝光"
39
+ | "可莉"
40
+ | "钟离"
41
+ | "菲谢尔"
42
+ | "班尼特"
43
+ | "达达利亚"
44
+ | "诺艾尔"
45
+ | "七七"
46
+ | "重云"
47
+ | "甘雨"
48
+ | "阿贝多"
49
+ | "迪奥娜"
50
+ | "莫娜"
51
+ | "刻晴"
52
+ | "砂糖"
53
+ | "辛焱"
54
+ | "罗莎莉亚"
55
+ | "胡桃"
56
+ | "枫原万叶"
57
+ | "烟绯"
58
+ | "宵宫"
59
+ | "托马"
60
+ | "优菈"
61
+ | "雷电将军"
62
+ | "早柚"
63
+ | "珊瑚宫心海"
64
+ | "五郎"
65
+ | "九条裟罗"
66
+ | "荒泷一斗"
67
+ | "八重神子"
68
+ | "鹿野院平藏"
69
+ | "夜兰"
70
+ | "绮良良"
71
+ | "埃洛伊"
72
+ | "申鹤"
73
+ | "云堇"
74
+ | "久岐忍"
75
+ | "神里绫人"
76
+ | "柯莱"
77
+ | "多莉"
78
+ | "提纳里"
79
+ | "妮露"
80
+ | "赛诺"
81
+ | "坎蒂丝"
82
+ | "纳西妲"
83
+ | "莱依拉"
84
+ | "流浪者"
85
+ | "珐露珊"
86
+ | "瑶瑶"
87
+ | "艾尔海森"
88
+ | "迪希雅"
89
+ | "米卡"
90
+ | "卡维"
91
+ | "白术"
92
+ | "琳妮特"
93
+ | "林尼"
94
+ | "菲米尼"
95
+ | "莱欧斯利"
96
+ | "那维莱特"
97
+ | "夏洛蒂"
98
+ | "芙宁娜"
99
+ | "夏沃蕾"
100
+ | "娜维娅"
101
+ | "嘉明"
102
+ | "闲云"
103
+ | "千织"
104
+ | "希格雯"
105
+ | "阿蕾奇诺"
106
+ | "赛索斯"
107
+ | "克洛琳德"
108
+ | "艾梅莉埃"
109
+ | "卡齐娜"
110
+ | "基尼奇"
111
+ | "玛拉妮"
112
+ | "希诺宁"
113
+ | "恰斯卡"
114
+ | "欧洛伦"
115
+ | "玛薇卡"
116
+ | "茜特菈莉"
117
+ | "蓝砚"
118
+ | "梦见月瑞希"
119
+ | "伊安珊"
120
+ | "瓦雷莎"
121
+ | "爱可菲"
122
+ | "伊法"
123
+ | "丝柯克"
124
+ | "塔利雅"
125
+ | "伊涅芙"
126
+ | "奇偶(男)"
127
+ | "奇偶(女)"
128
+ | "菈乌玛"
129
+ | "菲林斯"
130
+ | "爱诺"
131
+ | "奈芙尔"
132
+ | "杜林"
133
+ | "雅珂达"
134
+ | "哥伦比娅"
135
+ | "兹白"
136
+ | "叶洛亚"
137
+ | "法尔伽"
138
+ | "莉奈娅"
139
+ | "洛恩"
140
+ | "尼可"
141
+ | "布伦妮"
142
+ | "桑多涅"
143
+ | "阿罗夏"
144
+ | "奥黛塔"
145
+ | (string & {});
146
+
22
147
  /**
23
148
  * 角色行走方向键
24
149
  * @since 0.50.0
25
150
  */
26
- type WalkKey =
151
+ export type WalkKey =
27
152
  | "w" // 前
28
153
  | "s" // 后
29
154
  | "a" // 左
@@ -31,10 +156,10 @@ type WalkKey =
31
156
  | (string & {});
32
157
 
33
158
  /**
34
- * 角色模拟用鼠标按键
159
+ * 角色模拟用鼠标按键(小写;与 `KeyMouseHook.MouseButton` 的 PascalCase 不同)
35
160
  * @since 0.50.0
36
161
  */
37
- type MouseButtonName =
162
+ export type MouseButtonName =
38
163
  | "left" // 左键
39
164
  | "right" // 右键
40
165
  | "middle" // 中键
@@ -56,7 +181,7 @@ export interface Avatar extends ClrHostValue {
56
181
  * 角色名称(中文)
57
182
  * @since 0.50.0
58
183
  */
59
- name: string;
184
+ name: AvatarName;
60
185
  /**
61
186
  * 队伍内序号,从 1 开始
62
187
  * @since 0.50.0
@@ -303,6 +428,9 @@ export interface Avatar extends ClrHostValue {
303
428
  declare global {
304
429
  namespace BetterGenshinImpact.GameTask.AutoFight.Model {
305
430
  type Avatar = import("./Avatar").Avatar;
431
+ type AvatarName = import("./Avatar").AvatarName;
432
+ type MouseButtonName = import("./Avatar").MouseButtonName;
433
+ type WalkKey = import("./Avatar").WalkKey;
306
434
  }
307
435
  }
308
436
 
@@ -318,13 +446,13 @@ export interface AvatarHostType extends HostType<Avatar, ReferenceTypeTrait> {
318
446
  */
319
447
  new (
320
448
  combatScenes: BetterGenshinImpact.GameTask.AutoFight.Model.CombatScenes,
321
- name: string,
449
+ name: AvatarName,
322
450
  index: number | StrongNumeric<Int32Host>,
323
451
  nameRect: OpenCvSharp.Rect
324
452
  ): Avatar;
325
453
  new (
326
454
  combatScenes: BetterGenshinImpact.GameTask.AutoFight.Model.CombatScenes,
327
- name: string,
455
+ name: AvatarName,
328
456
  index: number | StrongNumeric<Int32Host>,
329
457
  nameRect: OpenCvSharp.Rect,
330
458
  manualSkillCd: number | StrongNumeric<DoubleHost>
@@ -355,29 +483,7 @@ export interface AvatarHostType extends HostType<Avatar, ReferenceTypeTrait> {
355
483
  * @returns 仅有角色名时返回 -1,未找到角色返回 null,否则返回冷却秒数
356
484
  * @since 0.50.0
357
485
  */
358
- parseActionSchedulerByCd(avatarName: string, input: string): number | null;
359
- /**
360
- * 识别屏幕上的血条位置列表
361
- * @param existingCapture 可选的已有截图区域,省略时重新截图
362
- * @returns 血条边界框元组列表
363
- * @since 0.50.0
364
- */
365
- findBloodBars(): System.Collections.Generic.List<
366
- System.ValueTuple<number, number, number, number>
367
- >;
368
- findBloodBars(
369
- existingCapture: BetterGenshinImpact.GameTask.Model.Area.ImageRegion | null
370
- ): System.Collections.Generic.List<System.ValueTuple<number, number, number, number>>;
371
- /**
372
- * 通过 OCR 寻找伤害数字或反应文字作为追踪目标(备用寻敌);在 450,240–1600,900 区域 OCR,过滤纯数字 ≥4 位或含反应关键词的文本,按 `h²×文本字数` 加权得到中心坐标
373
- * @param existingCapture 可选的已有截图区域,省略时重新截图
374
- * @returns 离加权中心最近的有效项坐标与文本,未找到时为 null
375
- * @since 0.50.0
376
- */
377
- findDamageNumber(): System.ValueTuple<number, number, string> | null;
378
- findDamageNumber(
379
- existingCapture: BetterGenshinImpact.GameTask.Model.Area.ImageRegion | null
380
- ): System.ValueTuple<number, number, string> | null;
486
+ parseActionSchedulerByCd(avatarName: AvatarName, input: string): number | null;
381
487
  }
382
488
 
383
489
  export {};
@@ -20,7 +20,7 @@ import "../../Model/Area/ImageRegion";
20
20
  import "../../Model/ISystemInfo";
21
21
  import "../Assets/AutoFightAssets";
22
22
  import "../AutoFightConfig";
23
- import "./Avatar";
23
+ import type { AvatarName } from "./Avatar";
24
24
  import "./AvatarActiveCheckContext";
25
25
  import "./MultiGameStatus";
26
26
 
@@ -104,12 +104,12 @@ export interface CombatScenes extends ClrHostValue, System.IDisposableInput {
104
104
  classifyAvatarCnName(
105
105
  img: SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>,
106
106
  index: number | StrongNumeric<Int32Host>
107
- ): System.ValueTuple<string, string>;
107
+ ): System.ValueTuple<AvatarName, string>;
108
108
  /**
109
109
  * 对角色头像图像进行名称分类
110
110
  * @param img 角色头像图像
111
111
  * @param index 队伍内序号,从 1 开始
112
- * @returns 角色名称
112
+ * @returns YOLO 英文分类名(可含 `Costume` 后缀),不是中文角色名
113
113
  * @since 0.48.0
114
114
  */
115
115
  classifyAvatarName(
@@ -128,7 +128,7 @@ export interface CombatScenes extends ClrHostValue, System.IDisposableInput {
128
128
  * @returns 配置中有效的角色名列表
129
129
  * @since 0.48.0
130
130
  */
131
- updateActionSchedulerByCd(cdConfig: string): System.Collections.Generic.List<string>;
131
+ updateActionSchedulerByCd(cdConfig: string): System.Collections.Generic.List<AvatarName>;
132
132
  /**
133
133
  * 在战斗任务开始前绑定取消令牌等运行时上下文
134
134
  * @param ct 取消令牌
@@ -154,29 +154,29 @@ export interface CombatScenes extends ClrHostValue, System.IDisposableInput {
154
154
  /**
155
155
  * 按角色名称选择角色
156
156
  * @param name 角色名称(中文)
157
- * @returns 对应角色
157
+ * @returns 对应角色,未找到时为 null
158
158
  * @since 0.48.0
159
159
  */
160
- selectAvatar(name: string): BetterGenshinImpact.GameTask.AutoFight.Model.Avatar;
160
+ selectAvatar(name: AvatarName): BetterGenshinImpact.GameTask.AutoFight.Model.Avatar | null;
161
161
  /**
162
162
  * 获取当前出战角色名,不刷新编号框位置,不推荐使用
163
163
  * @param force 是否强制重新识别
164
164
  * @param region 可选的图像区域
165
165
  * @param ct 取消令牌
166
- * @returns 出战角色名称
166
+ * @returns 出战角色名称,未识别时为 null
167
167
  * @since 0.48.0
168
168
  */
169
- currentAvatar(): string;
170
- currentAvatar(force: boolean): string;
169
+ currentAvatar(): AvatarName | null;
170
+ currentAvatar(force: boolean): AvatarName | null;
171
171
  currentAvatar(
172
172
  force: boolean,
173
173
  region: BetterGenshinImpact.GameTask.Model.Area.ImageRegion | null
174
- ): string;
174
+ ): AvatarName | null;
175
175
  currentAvatar(
176
176
  force: boolean,
177
177
  region: BetterGenshinImpact.GameTask.Model.Area.ImageRegion | null,
178
178
  ct: System.Threading.CancellationToken
179
- ): string;
179
+ ): AvatarName | null;
180
180
  /**
181
181
  * 获取当前出战角色编号,失败后自动刷新编号框位置,推荐使用
182
182
  * @param imageRegion 完整游戏画面的图像区域
@@ -201,11 +201,11 @@ export interface CombatScenes extends ClrHostValue, System.IDisposableInput {
201
201
  /**
202
202
  * 对 OCR 识别结果进行纠错;单字名称(如魈、琴)仍可能无法识别
203
203
  * @param name OCR 原始名称
204
- * @returns 纠错后的角色名称
204
+ * @returns 纠错后的角色名称;未命中纠错规则时原样返回
205
205
  * @deprecated 已过时
206
206
  * @since 0.48.0
207
207
  */
208
- errorOcrCorrection(name: string): string;
208
+ errorOcrCorrection(name: string): AvatarName;
209
209
  /**
210
210
  * 释放资源
211
211
  * @returns ClearScript 宿主空结果
@@ -5,7 +5,7 @@ import type {
5
5
  } from "../../../../Microsoft/ClearScript/HostType";
6
6
  import type { VoidResult } from "../../../../Microsoft/ClearScript/VoidResult";
7
7
  import "../../../../System/Collections/Generic/List";
8
- import "../Model/Avatar";
8
+ import type { AvatarName } from "../Model/Avatar";
9
9
  import "../Model/CombatScenes";
10
10
  import "./Method";
11
11
 
@@ -20,7 +20,7 @@ export interface CombatCommand extends ClrHostValue {
20
20
  * 执行该指令的角色名称
21
21
  * @since 0.50.0
22
22
  */
23
- name: string;
23
+ name: "当前角色" | AvatarName;
24
24
  /**
25
25
  * 指令动作方法
26
26
  * @since 0.50.0
@@ -76,7 +76,7 @@ export interface CombatCommandHostType extends HostType<CombatCommand, Reference
76
76
  * @param command 指令文本,如 `skill` 或 `walk(s, 0.2)`
77
77
  * @since 0.50.0
78
78
  */
79
- new (name: string, command: string): CombatCommand;
79
+ new (name: "当前角色" | AvatarName, command: string): CombatCommand;
80
80
  }
81
81
 
82
82
  export {};
@@ -5,6 +5,7 @@ import type {
5
5
  } from "../../../../Microsoft/ClearScript/HostType";
6
6
  import "../../../../System/Collections/Generic/HashSet";
7
7
  import "../../../../System/Collections/Generic/List";
8
+ import type { AvatarName } from "../Model/Avatar";
8
9
  import "./CombatCommand";
9
10
 
10
11
  /**
@@ -28,7 +29,7 @@ export interface CombatScript extends ClrHostValue {
28
29
  * 脚本涉及的角色名称集合
29
30
  * @since 0.50.0
30
31
  */
31
- avatarNames: System.Collections.Generic.HashSet<string>;
32
+ avatarNames: System.Collections.Generic.HashSet<"当前角色" | AvatarName>;
32
33
  /**
33
34
  * 解析后的战斗指令列表
34
35
  * @since 0.50.0
@@ -55,7 +56,7 @@ export interface CombatScriptHostType extends HostType<CombatScript, ReferenceTy
55
56
  * @since 0.50.0
56
57
  */
57
58
  new (
58
- avatarNames: System.Collections.Generic.HashSet<string>,
59
+ avatarNames: System.Collections.Generic.HashSet<"当前角色" | AvatarName>,
59
60
  combatCommands: System.Collections.Generic.List<BetterGenshinImpact.GameTask.AutoFight.Script.CombatCommand>
60
61
  ): CombatScript;
61
62
  }
@@ -6,6 +6,65 @@ import type {
6
6
  import "../../../../System/Collections/Generic/IEnumerable";
7
7
  import "../../../../System/Collections/Generic/List";
8
8
 
9
+ /**
10
+ * 战斗策略脚本中的动作方法名或别名
11
+ * 与上游 `Method` 静态实例的 `Alias` 对齐;未知写法仍可经 `(string & {})` 传入
12
+ * @since 0.50.0
13
+ */
14
+ export type CombatMethodCode =
15
+ // Skill
16
+ | "skill"
17
+ | "e"
18
+ // Burst
19
+ | "burst"
20
+ | "q"
21
+ // Attack
22
+ | "attack"
23
+ | "普攻"
24
+ | "普通攻击"
25
+ // Charge
26
+ | "charge"
27
+ | "重击"
28
+ // Wait
29
+ | "wait"
30
+ | "after"
31
+ | "等待"
32
+ // Ready
33
+ | "ready"
34
+ | "完成"
35
+ // Check
36
+ | "check"
37
+ | "检测"
38
+ // Walk / 方向
39
+ | "walk"
40
+ | "行走"
41
+ | "w"
42
+ | "a"
43
+ | "s"
44
+ | "d"
45
+ // Aim(已注册静态成员;GetEnumByCode 的 Values 当前未 yield)
46
+ | "aim"
47
+ | "r"
48
+ | "瞄准"
49
+ // Dash / Jump
50
+ | "dash"
51
+ | "冲刺"
52
+ | "jump"
53
+ | "j"
54
+ | "跳跃"
55
+ // 宏
56
+ | "mousedown"
57
+ | "mouseup"
58
+ | "click"
59
+ | "moveby"
60
+ | "keydown"
61
+ | "keyup"
62
+ | "keypress"
63
+ | "scroll"
64
+ | "verticalscroll"
65
+ | "round"
66
+ | (string & {});
67
+
9
68
  /**
10
69
  * 战斗策略脚本中的动作方法
11
70
  * @since 0.50.0
@@ -17,12 +76,13 @@ export interface Method extends ClrHostValue {
17
76
  * 方法别名列表,脚本中可使用其中任一写法
18
77
  * @since 0.50.0
19
78
  */
20
- readonly alias: System.Collections.Generic.List<string>;
79
+ readonly alias: System.Collections.Generic.List<CombatMethodCode>;
21
80
  }
22
81
 
23
82
  declare global {
24
83
  namespace BetterGenshinImpact.GameTask.AutoFight.Script {
25
84
  type Method = import("./Method").Method;
85
+ type CombatMethodCode = import("./Method").CombatMethodCode;
26
86
  }
27
87
  }
28
88
 
@@ -32,7 +92,7 @@ export interface MethodHostType extends HostType<Method, ReferenceTypeTrait> {
32
92
  * @param alias 方法别名列表
33
93
  * @since 0.50.0
34
94
  */
35
- new (alias: System.Collections.Generic.List<string>): Method;
95
+ new (alias: System.Collections.Generic.List<CombatMethodCode>): Method;
36
96
  /**
37
97
  * 元素战技,别名含 `skill`、`e`
38
98
  * @since 0.50.0
@@ -165,7 +225,7 @@ export interface MethodHostType extends HostType<Method, ReferenceTypeTrait> {
165
225
  * @throws 方法名未知时抛出参数异常
166
226
  * @since 0.50.0
167
227
  */
168
- getEnumByCode(method: string): BetterGenshinImpact.GameTask.AutoFight.Script.Method;
228
+ getEnumByCode(method: CombatMethodCode): BetterGenshinImpact.GameTask.AutoFight.Script.Method;
169
229
  }
170
230
 
171
231
  export {};
@@ -8,6 +8,7 @@ import type { VoidResult } from "../../../Microsoft/ClearScript/VoidResult";
8
8
  import "../../../System/ComponentModel/INotifyPropertyChanged";
9
9
  import "../../../System/ComponentModel/INotifyPropertyChanging";
10
10
  import "../AutoFight/AutoFightConfig";
11
+ import type { CombatStrategyName, PartySlotIndex } from "../AutoFight/AutoFightConfig";
11
12
 
12
13
  /**
13
14
  * 地脉花独立战斗配置
@@ -84,7 +85,7 @@ export interface AutoLeyLineOutcropFightConfig
84
85
  * 盾奶位角色队伍序号,从 1 开始,空字符串表示不指定
85
86
  * @since 0.58.0
86
87
  */
87
- guardianAvatar: string;
88
+ guardianAvatar: PartySlotIndex;
88
89
  /**
89
90
  * 是否跳过盾奶位自身的战斗策略脚本
90
91
  * @since 0.58.0
@@ -116,10 +117,10 @@ export interface AutoLeyLineOutcropFightConfig
116
117
  */
117
118
  seekEnemyRotaryFactor: number;
118
119
  /**
119
- * 战斗策略名称
120
+ * 战斗策略名称,`根据队伍自动选择` 表示按当前队伍匹配策略
120
121
  * @since 0.58.0
121
122
  */
122
- strategyName: string;
123
+ strategyName: CombatStrategyName;
123
124
  /**
124
125
  * 是否启用游泳脱困检测
125
126
  * @since 0.58.0
@@ -145,6 +145,7 @@ export interface AutoLeyLineOutcropParam extends Omit<
145
145
  declare global {
146
146
  namespace BetterGenshinImpact.GameTask.AutoLeyLineOutcrop {
147
147
  type AutoLeyLineOutcropParam = import("./AutoLeyLineOutcropParam").AutoLeyLineOutcropParam;
148
+ type LeyLineOutcropType = import("./AutoLeyLineOutcropParam").LeyLineOutcropType;
148
149
  }
149
150
  }
150
151
 
@@ -23,6 +23,41 @@ export type MoveMode =
23
23
  | "swim" // 游泳
24
24
  | (string & {});
25
25
 
26
+ /**
27
+ * 路径追踪赶路模式(`PathingPartyConfig.TravelMode`)
28
+ * 上游 UI 列表为 `精准靠近` / `连续赶路`;空串运行时会回退为 `精准靠近`
29
+ * @since 0.43.1
30
+ */
31
+ export type TravelMode =
32
+ | "精准靠近" // 适合采集,节点间减速
33
+ | "连续赶路" // 适合锄地
34
+ | (string & {});
35
+
36
+ /**
37
+ * 路径追踪队伍角色槽位序号(字符串)
38
+ * 上游 `PathingPartyConfig.AvatarIndexList`:`""` / `1`–`4`
39
+ * 用于 `MainAvatarIndex`、`GuardianAvatarIndex` 等
40
+ * @since 0.43.1
41
+ */
42
+ export type MainAvatarIndex = "" | "1" | "2" | "3" | "4" | (string & {});
43
+
44
+ /**
45
+ * 路径追踪自动赶路角色
46
+ * 上游 `PathingPartyConfig.HurryOnAvatarList`
47
+ * @since 0.43.1
48
+ */
49
+ export type HurryOnAvatar =
50
+ | "" // 未指定 / 关闭列表首项
51
+ | "自动" // 按名单与主C自动挑选
52
+ | "玛薇卡"
53
+ | "闲云"
54
+ | "桑多涅"
55
+ | "恰斯卡"
56
+ | "流浪者"
57
+ | "伊法"
58
+ | "希诺宁"
59
+ | (string & {});
60
+
26
61
  /**
27
62
  * 路径点到达动作
28
63
  * @since 0.43.1
@@ -79,4 +114,19 @@ export type MonsterTag =
79
114
  | "legendary" // 传奇
80
115
  | (string & {});
81
116
 
117
+ declare global {
118
+ namespace BetterGenshinImpact.GameTask.AutoPathing {
119
+ type HurryOnAvatar = import("./PathingScriptNames").HurryOnAvatar;
120
+ type MainAvatarIndex = import("./PathingScriptNames").MainAvatarIndex;
121
+ type MisidentificationHandlingMode =
122
+ import("./PathingScriptNames").MisidentificationHandlingMode;
123
+ type MisidentificationTriggerType = import("./PathingScriptNames").MisidentificationTriggerType;
124
+ type MonsterTag = import("./PathingScriptNames").MonsterTag;
125
+ type MoveMode = import("./PathingScriptNames").MoveMode;
126
+ type TravelMode = import("./PathingScriptNames").TravelMode;
127
+ type WaypointAction = import("./PathingScriptNames").WaypointAction;
128
+ type WaypointPointType = import("./PathingScriptNames").WaypointPointType;
129
+ }
130
+ }
131
+
82
132
  export {};
@@ -201,6 +201,8 @@ export interface AutoSkipConfig
201
201
  declare global {
202
202
  namespace BetterGenshinImpact.GameTask.AutoSkip {
203
203
  type AutoSkipConfig = import("./AutoSkipConfig").AutoSkipConfig;
204
+ type ClickChatOption = import("./AutoSkipConfig").ClickChatOption;
205
+ type PictureInPictureSourceType = import("./AutoSkipConfig").PictureInPictureSourceType;
204
206
  }
205
207
  }
206
208
 
@@ -7,6 +7,8 @@ import type {
7
7
  import "../../../System/Collections/Generic/List";
8
8
  import "../../../System/ComponentModel/INotifyPropertyChanged";
9
9
  import "../../../System/ComponentModel/INotifyPropertyChanging";
10
+ import type { ResinName } from "../AutoDomain/AutoDomainTask";
11
+ import type { CombatStrategyName } from "../AutoFight/AutoFightConfig";
10
12
 
11
13
  /**
12
14
  * 自动幽境危战配置
@@ -65,17 +67,17 @@ export interface AutoStygianOnslaughtConfig
65
67
  * 使用树脂的优先级列表,默认浓缩树脂优先于原粹树脂
66
68
  * @since 0.58.0
67
69
  */
68
- resinPriorityList: System.Collections.Generic.List<string>;
70
+ resinPriorityList: System.Collections.Generic.List<ResinName>;
69
71
  /**
70
72
  * 是否启用指定树脂使用次数模式
71
73
  * @since 0.58.0
72
74
  */
73
75
  specifyResinUse: boolean;
74
76
  /**
75
- * 战斗策略名称
77
+ * 战斗策略名称,`根据队伍自动选择` 表示按当前队伍匹配策略
76
78
  * @since 0.58.0
77
79
  */
78
- strategyName: string;
80
+ strategyName: CombatStrategyName;
79
81
  /**
80
82
  * 使用须臾树脂刷取的次数
81
83
  * @since 0.58.0
@@ -6,6 +6,8 @@ import type {
6
6
  } from "../../../Microsoft/ClearScript/HostType";
7
7
  import type { VoidResult } from "../../../Microsoft/ClearScript/VoidResult";
8
8
  import "../../../System/Collections/Generic/List";
9
+ import type { ResinName } from "../AutoDomain/AutoDomainTask";
10
+ import type { CombatStrategyName } from "../AutoFight/AutoFightConfig";
9
11
  import "../Model/BaseTaskParam";
10
12
  import "./AutoStygianOnslaughtConfig";
11
13
  import "./AutoStygianOnslaughtTask";
@@ -52,7 +54,7 @@ export interface AutoStygianOnslaughtParam extends Omit<
52
54
  * 使用树脂的优先级列表,默认浓缩树脂优先于原粹树脂
53
55
  * @since 0.58.0
54
56
  */
55
- resinPriorityList: System.Collections.Generic.List<string>;
57
+ resinPriorityList: System.Collections.Generic.List<ResinName>;
56
58
  /**
57
59
  * 使用原粹树脂刷取的次数
58
60
  * @since 0.58.0
@@ -104,8 +106,8 @@ export interface AutoStygianOnslaughtParam extends Omit<
104
106
  * @returns ClearScript 宿主空结果
105
107
  * @since 0.58.0
106
108
  */
107
- setResinPriorityList(priorities: HostArray<string>): VoidResult;
108
- setResinPriorityList(...priorities: string[]): VoidResult;
109
+ setResinPriorityList(priorities: HostArray<ResinName>): VoidResult;
110
+ setResinPriorityList(...priorities: ResinName[]): VoidResult;
109
111
  /**
110
112
  * 设置战斗策略路径
111
113
  * @param strategyName 策略名称,省略或为空时使用全局自动战斗配置中的策略名称
@@ -113,7 +115,7 @@ export interface AutoStygianOnslaughtParam extends Omit<
113
115
  * @since 0.58.0
114
116
  */
115
117
  setCombatStrategyPath(): VoidResult;
116
- setCombatStrategyPath(strategyName: string | null): VoidResult;
118
+ setCombatStrategyPath(strategyName: CombatStrategyName | null): VoidResult;
117
119
  }
118
120
 
119
121
  declare global {