@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
@@ -19,6 +19,63 @@ import "./AutoDomainParam";
19
19
  export type ResinName =
20
20
  "浓缩树脂" | "原粹树脂" | "原粹树脂20" | "原粹树脂40" | "须臾树脂" | "脆弱树脂" | (string & {});
21
21
 
22
+ /**
23
+ * 分解圣遗物最大星级(字符串);上游 `int.TryParse` 后按 1–4 使用
24
+ * @since 0.52.0
25
+ */
26
+ export type ArtifactStar = "1" | "2" | "3" | "4" | (string & {});
27
+
28
+ /**
29
+ * 可自动刷取的秘境名称
30
+ * 来源:`MapLazyAssets` 从 `tp.json` 提取的 BlessDomain / ForgeryDomain / MasteryDomain 点位名
31
+ * @since 0.52.0
32
+ */
33
+ export type DomainName =
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
+ | (string & {});
71
+
72
+ /**
73
+ * 周日 / 限时全开秘境奖励选项序号
74
+ * UI 列表为 `""` / `1` / `2` / `3`;任务内 `switch` 仅处理 1–3
75
+ * @since 0.52.0
76
+ */
77
+ export type SundaySelectedValue = "" | "1" | "2" | "3" | (string & {});
78
+
22
79
  /**
23
80
  * 自动秘境独立任务
24
81
  * @since 0.52.0
@@ -51,6 +108,10 @@ export interface AutoDomainTask
51
108
  declare global {
52
109
  namespace BetterGenshinImpact.GameTask.AutoDomain {
53
110
  type AutoDomainTask = import("./AutoDomainTask").AutoDomainTask;
111
+ type ArtifactStar = import("./AutoDomainTask").ArtifactStar;
112
+ type DomainName = import("./AutoDomainTask").DomainName;
113
+ type ResinName = import("./AutoDomainTask").ResinName;
114
+ type SundaySelectedValue = import("./AutoDomainTask").SundaySelectedValue;
54
115
  }
55
116
  }
56
117
 
@@ -1,11 +1,18 @@
1
1
  import "../../../CommunityToolkit/Mvvm/ComponentModel/ObservableObject";
2
2
  import type {
3
+ ClrHostValue,
4
+ EnumTypeTrait,
3
5
  HostType,
4
6
  PublicDefaultConstructorTrait,
5
7
  ReferenceTypeTrait
6
8
  } from "../../../Microsoft/ClearScript/HostType";
7
9
  import "../../../System/ComponentModel/INotifyPropertyChanged";
8
10
  import "../../../System/ComponentModel/INotifyPropertyChanging";
11
+ import "../../../System/Enum";
12
+ import "../../../System/IComparable";
13
+ import "../../../System/IConvertible";
14
+ import "../../../System/IFormattable";
15
+ import "../../../System/ISpanFormattable";
9
16
 
10
17
  /**
11
18
  * 精英掉落拾取模式
@@ -17,6 +24,28 @@ export type OnlyPickEliteDropsMode =
17
24
  | "DisableAutoPickupForNonElite" // 非精英关闭自动拾取
18
25
  | (string & {});
19
26
 
27
+ /**
28
+ * 战斗策略名称;`根据队伍自动选择` 表示按当前队伍匹配策略目录,其余为 `User/AutoFight` 下策略文件名(不含扩展名)
29
+ * @since 0.52.0
30
+ */
31
+ export type CombatStrategyName = "根据队伍自动选择" | (string & {});
32
+
33
+ /**
34
+ * 战斗策略文件种类标识
35
+ * 与上游 `AutoFightParam.ResolveStrategyPath` 返回的第二项对齐:优先命中 `.json`,否则回退 `.txt`;自动选队目录亦标为 `txt`
36
+ * @since 0.52.0
37
+ */
38
+ export type StrategyFileKind =
39
+ | "json" // JSON 战斗策略
40
+ | "txt" // 文本 / 简易策略(含「根据队伍自动选择」目录)
41
+ | (string & {});
42
+
43
+ /**
44
+ * 队伍内角色槽位序号(字符串),从 1 开始;空字符串表示不指定
45
+ * @since 0.52.0
46
+ */
47
+ export type PartySlotIndex = "1" | "2" | "3" | "4" | "" | (string & {});
48
+
20
49
  /**
21
50
  * 自动战斗配置
22
51
  * @since 0.52.0
@@ -29,6 +58,9 @@ export interface AutoFightConfig
29
58
  | "actionSchedulerByCd"
30
59
  | "battleThresholdForLoot"
31
60
  | "burstEnabled"
61
+ | "damageNumberRecognitionMode"
62
+ | "drawRecognitionResults"
63
+ | "enableCombatTargeting"
32
64
  | "expBasedPickupEnabled"
33
65
  | "fightFinishDetectEnabled"
34
66
  | "finishDetectConfig"
@@ -37,6 +69,7 @@ export interface AutoFightConfig
37
69
  | "guardianCombatSkip"
38
70
  | "kazuhaPartyName"
39
71
  | "kazuhaPickupEnabled"
72
+ | "lockLostWaitTime"
40
73
  | "onlyPickEliteDropsMode"
41
74
  | "pickDropsAfterFightEnabled"
42
75
  | "pickDropsAfterFightSeconds"
@@ -45,6 +78,7 @@ export interface AutoFightConfig
45
78
  | "strategyName"
46
79
  | "swimmingEnabled"
47
80
  | "teamNames"
81
+ | "targetingDetectionInterval"
48
82
  | "timeout"
49
83
  >,
50
84
  System.ComponentModel.INotifyPropertyChangedInput,
@@ -89,7 +123,7 @@ export interface AutoFightConfig
89
123
  * 盾奶位角色队伍序号,从 1 开始,空字符串表示不指定
90
124
  * @since 0.52.0
91
125
  */
92
- guardianAvatar: string;
126
+ guardianAvatar: PartySlotIndex;
93
127
  /**
94
128
  * 是否跳过盾奶位自身的战斗策略脚本
95
129
  * @since 0.52.0
@@ -134,7 +168,7 @@ export interface AutoFightConfig
134
168
  * 战斗策略名称,`根据队伍自动选择` 表示按当前队伍匹配策略
135
169
  * @since 0.52.0
136
170
  */
137
- strategyName: string;
171
+ strategyName: CombatStrategyName;
138
172
  /**
139
173
  * 是否启用游泳脱困检测
140
174
  * @since 0.52.0
@@ -150,6 +184,31 @@ export interface AutoFightConfig
150
184
  * @since 0.52.0
151
185
  */
152
186
  timeout: number;
187
+ /**
188
+ * 是否在战斗中持续尝试面朝敌人
189
+ * @since 0.63.0
190
+ */
191
+ enableCombatTargeting: boolean;
192
+ /**
193
+ * 敌人不可见后开始旋转索敌前的等待时长,单位秒,默认 0.5
194
+ * @since 0.63.0
195
+ */
196
+ lockLostWaitTime: number;
197
+ /**
198
+ * 索敌识别间隔,单位毫秒,默认 50
199
+ * @since 0.63.0
200
+ */
201
+ targetingDetectionInterval: number;
202
+ /**
203
+ * 伤害数字识别模式
204
+ * @since 0.63.0
205
+ */
206
+ damageNumberRecognitionMode: DamageNumberRecognitionMode;
207
+ /**
208
+ * 是否在遮罩窗口绘制血条、伤害数字等识别结果
209
+ * @since 0.63.0
210
+ */
211
+ drawRecognitionResults: boolean;
153
212
  }
154
213
 
155
214
  /**
@@ -171,6 +230,7 @@ export interface AutoFightConfig_FightFinishDetectConfig
171
230
  | "isFirstCheck"
172
231
  | "rotaryFactor"
173
232
  | "rotateFindEnemyEnabled"
233
+ | "skipFightEndCheckWhenEnemyVisible"
174
234
  >,
175
235
  System.ComponentModel.INotifyPropertyChangedInput,
176
236
  System.ComponentModel.INotifyPropertyChangingInput {
@@ -225,6 +285,11 @@ export interface AutoFightConfig_FightFinishDetectConfig
225
285
  * @since 0.52.0
226
286
  */
227
287
  rotateFindEnemyEnabled: boolean;
288
+ /**
289
+ * 是否在敌人可见时跳过战斗结束检查;与旋转寻找敌人互斥
290
+ * @since 0.63.0
291
+ */
292
+ skipFightEndCheckWhenEnemyVisible: boolean;
228
293
  }
229
294
 
230
295
  export interface AutoFightConfig_FightFinishDetectConfigHostType extends HostType<
@@ -248,6 +313,11 @@ declare global {
248
313
  declare global {
249
314
  namespace BetterGenshinImpact.GameTask.AutoFight {
250
315
  type AutoFightConfig = import("./AutoFightConfig").AutoFightConfig;
316
+ type CombatStrategyName = import("./AutoFightConfig").CombatStrategyName;
317
+ type DamageNumberRecognitionMode = import("./AutoFightConfig").DamageNumberRecognitionMode;
318
+ type OnlyPickEliteDropsMode = import("./AutoFightConfig").OnlyPickEliteDropsMode;
319
+ type PartySlotIndex = import("./AutoFightConfig").PartySlotIndex;
320
+ type StrategyFileKind = import("./AutoFightConfig").StrategyFileKind;
251
321
  }
252
322
  }
253
323
 
@@ -263,4 +333,34 @@ export interface AutoFightConfigHostType extends HostType<
263
333
  readonly FightFinishDetectConfig: AutoFightConfig_FightFinishDetectConfigHostType;
264
334
  }
265
335
 
336
+ /**
337
+ * 战斗索敌使用的伤害数字识别模式
338
+ * @since 0.63.0
339
+ */
340
+ declare const damageNumberRecognitionModeBrand: unique symbol;
341
+ export interface DamageNumberRecognitionMode extends ClrHostValue {
342
+ readonly [damageNumberRecognitionModeBrand]: true;
343
+ }
344
+
345
+ export interface DamageNumberRecognitionModeHostType extends HostType<
346
+ DamageNumberRecognitionMode,
347
+ EnumTypeTrait
348
+ > {
349
+ /**
350
+ * 禁用伤害数字识别
351
+ * @since 0.63.0
352
+ */
353
+ readonly disabled: DamageNumberRecognitionMode;
354
+ /**
355
+ * 使用 OCR 识别伤害数字
356
+ * @since 0.63.0
357
+ */
358
+ readonly ocr: DamageNumberRecognitionMode;
359
+ /**
360
+ * 使用颜色识别伤害数字
361
+ * @since 0.63.0
362
+ */
363
+ readonly color: DamageNumberRecognitionMode;
364
+ }
365
+
266
366
  export {};
@@ -8,7 +8,13 @@ import type { VoidResult } from "../../../Microsoft/ClearScript/VoidResult";
8
8
  import "../../../System/ValueTuple";
9
9
  import "../Model/BaseTaskParam";
10
10
  import "./AutoFightConfig";
11
- import type { OnlyPickEliteDropsMode } from "./AutoFightConfig";
11
+ import type {
12
+ CombatStrategyName,
13
+ DamageNumberRecognitionMode,
14
+ OnlyPickEliteDropsMode,
15
+ PartySlotIndex,
16
+ StrategyFileKind
17
+ } from "./AutoFightConfig";
12
18
  import "./AutoFightTask";
13
19
 
14
20
  /**
@@ -23,6 +29,9 @@ export interface AutoFightParam extends Omit<
23
29
  | "burstEnabled"
24
30
  | "checkBeforeBurst"
25
31
  | "combatStrategyPath"
32
+ | "damageNumberRecognitionMode"
33
+ | "drawRecognitionResults"
34
+ | "enableCombatTargeting"
26
35
  | "expBasedPickupEnabled"
27
36
  | "fightFinishDetectEnabled"
28
37
  | "finishDetectConfig"
@@ -32,6 +41,7 @@ export interface AutoFightParam extends Omit<
32
41
  | "isFirstCheck"
33
42
  | "kazuhaPartyName"
34
43
  | "kazuhaPickupEnabled"
44
+ | "lockLostWaitTime"
35
45
  | "onlyPickEliteDropsMode"
36
46
  | "pickDropsAfterFightEnabled"
37
47
  | "pickDropsAfterFightSeconds"
@@ -39,6 +49,7 @@ export interface AutoFightParam extends Omit<
39
49
  | "rotaryFactor"
40
50
  | "setCombatStrategyPath"
41
51
  | "setDefault"
52
+ | "targetingDetectionInterval"
42
53
  | "timeout"
43
54
  > {
44
55
  readonly [autoFightParamBrand]: true;
@@ -101,7 +112,7 @@ export interface AutoFightParam extends Omit<
101
112
  * 盾奶位角色队伍序号,从 1 开始,空字符串表示不指定
102
113
  * @since 0.52.0
103
114
  */
104
- guardianAvatar: string;
115
+ guardianAvatar: PartySlotIndex;
105
116
  /**
106
117
  * 是否跳过盾奶位自身的战斗策略脚本
107
118
  * @since 0.52.0
@@ -137,6 +148,31 @@ export interface AutoFightParam extends Omit<
137
148
  * @since 0.52.0
138
149
  */
139
150
  qinDoublePickUp: boolean;
151
+ /**
152
+ * 是否在战斗中持续尝试面朝敌人
153
+ * @since 0.63.0
154
+ */
155
+ enableCombatTargeting: boolean;
156
+ /**
157
+ * 索敌识别间隔,单位毫秒,默认 50
158
+ * @since 0.63.0
159
+ */
160
+ targetingDetectionInterval: number;
161
+ /**
162
+ * 是否在遮罩窗口绘制血条、伤害数字等识别结果
163
+ * @since 0.63.0
164
+ */
165
+ drawRecognitionResults: boolean;
166
+ /**
167
+ * 敌人不可见后开始旋转索敌前的等待时长,单位秒,默认 0.5
168
+ * @since 0.63.0
169
+ */
170
+ lockLostWaitTime: number;
171
+ /**
172
+ * 伤害数字识别模式
173
+ * @since 0.63.0
174
+ */
175
+ damageNumberRecognitionMode: DamageNumberRecognitionMode;
140
176
  /**
141
177
  * 是否仅在检测到精英怪经验值图标时执行战后拾取
142
178
  * @since 0.61.0
@@ -149,7 +185,7 @@ export interface AutoFightParam extends Omit<
149
185
  * @since 0.52.0
150
186
  */
151
187
  setCombatStrategyPath(): VoidResult;
152
- setCombatStrategyPath(strategyName: string | null): VoidResult;
188
+ setCombatStrategyPath(strategyName: CombatStrategyName | null): VoidResult;
153
189
  /**
154
190
  * 从当前全局自动战斗配置填充默认参数
155
191
  * @returns ClearScript 宿主空结果
@@ -200,6 +236,11 @@ export interface AutoFightParam_FightFinishDetectConfig extends ClrHostValue {
200
236
  * @since 0.52.0
201
237
  */
202
238
  rotateFindEnemyEnabled: boolean;
239
+ /**
240
+ * 是否在敌人可见时跳过战斗结束检查
241
+ * @since 0.63.0
242
+ */
243
+ skipFightEndCheckWhenEnemyVisible: boolean;
203
244
  }
204
245
 
205
246
  export interface AutoFightParam_FightFinishDetectConfigHostType extends HostType<
@@ -243,7 +284,7 @@ export interface AutoFightParamHostType extends HostType<AutoFightParam, Referen
243
284
  * @since 0.52.0
244
285
  */
245
286
  new (): AutoFightParam;
246
- new (strategyName: string | null): AutoFightParam;
287
+ new (strategyName: CombatStrategyName | null): AutoFightParam;
247
288
  /**
248
289
  * 是否启用游泳脱困检测
249
290
  * @since 0.52.0
@@ -252,10 +293,12 @@ export interface AutoFightParamHostType extends HostType<AutoFightParam, Referen
252
293
  /**
253
294
  * 解析策略文件路径,优先检测 `.json`,未命中则回退 `.txt`
254
295
  * @param strategyName 策略名称(不含扩展名)
255
- * @returns 完整路径与类型标识组成的元组,类型为 `json` 或 `txt`
296
+ * @returns 完整路径与策略文件种类组成的元组
256
297
  * @since 0.52.0
257
298
  */
258
- resolveStrategyPath(strategyName: string): System.ValueTuple<string, string>;
299
+ resolveStrategyPath(
300
+ strategyName: CombatStrategyName
301
+ ): System.ValueTuple<string, StrategyFileKind>;
259
302
  readonly FightFinishDetectConfig: AutoFightParam_FightFinishDetectConfigHostType;
260
303
  }
261
304
 
@@ -5,6 +5,152 @@ import type {
5
5
  ReferenceTypeTrait
6
6
  } from "../../../../Microsoft/ClearScript/HostType";
7
7
  import "../../../../System/Collections/Generic/List";
8
+ import type { AvatarName } from "../Model/Avatar";
9
+
10
+ /**
11
+ * 战斗角色武器类型编码(`combat_avatar.json` 的 `weapon` 字段)
12
+ * @since 0.50.0
13
+ */
14
+ export type CombatAvatarWeaponCode =
15
+ | "0" // 未知 / 占位
16
+ | "1" // 单手剑
17
+ | "10" // 法器
18
+ | "11" // 双手剑
19
+ | "12" // 弓
20
+ | "13" // 长柄武器
21
+ | (string & {});
22
+
23
+ /**
24
+ * 战斗角色英文名(`combat_avatar.json` 的 `nameEn`)
25
+ * 与 `AvatarName` 一一对应、顺序对齐;配置标准英文名,不是 YOLO 侧面头像 class(分类结果可能含 `Costume` 后缀)
26
+ * @since 0.50.0
27
+ */
28
+ export type CombatAvatarNameEn =
29
+ | "Unknown"
30
+ | "Ayaka"
31
+ | "Qin"
32
+ | "Traveler"
33
+ | "PlayerGirl"
34
+ | "PlayerBoy"
35
+ | "Lisa"
36
+ | "Barbara"
37
+ | "Kaeya"
38
+ | "Diluc"
39
+ | "Razor"
40
+ | "Ambor"
41
+ | "Venti"
42
+ | "Xiangling"
43
+ | "Beidou"
44
+ | "Xingqiu"
45
+ | "Xiao"
46
+ | "Ningguang"
47
+ | "Klee"
48
+ | "Zhongli"
49
+ | "Fischl"
50
+ | "Bennett"
51
+ | "Tartaglia"
52
+ | "Noel"
53
+ | "Qiqi"
54
+ | "Chongyun"
55
+ | "Ganyu"
56
+ | "Albedo"
57
+ | "Diona"
58
+ | "Mona"
59
+ | "Keqing"
60
+ | "Sucrose"
61
+ | "Xinyan"
62
+ | "Rosaria"
63
+ | "Hutao"
64
+ | "Kazuha"
65
+ | "Feiyan"
66
+ | "Yoimiya"
67
+ | "Tohma"
68
+ | "Eula"
69
+ | "Shougun"
70
+ | "Sayu"
71
+ | "Kokomi"
72
+ | "Gorou"
73
+ | "Sara"
74
+ | "Itto"
75
+ | "Yae"
76
+ | "Heizo"
77
+ | "Yelan"
78
+ | "Momoka"
79
+ | "Aloy"
80
+ | "Shenhe"
81
+ | "Yunjin"
82
+ | "Shinobu"
83
+ | "Ayato"
84
+ | "Collei"
85
+ | "Dori"
86
+ | "Tighnari"
87
+ | "Nilou"
88
+ | "Cyno"
89
+ | "Candace"
90
+ | "Nahida"
91
+ | "Layla"
92
+ | "Wanderer"
93
+ | "Faruzan"
94
+ | "Yaoyao"
95
+ | "Alhatham"
96
+ | "Dehya"
97
+ | "Mika"
98
+ | "Kaveh"
99
+ | "Baizhuer"
100
+ | "Linette"
101
+ | "Liney"
102
+ | "Freminet"
103
+ | "Wriothesley"
104
+ | "Neuvillette"
105
+ | "Charlotte"
106
+ | "Furina"
107
+ | "Chevreuse"
108
+ | "Navia"
109
+ | "Gaming"
110
+ | "Liuyun"
111
+ | "Chiori"
112
+ | "Sigewinne"
113
+ | "Arlecchino"
114
+ | "Sethos"
115
+ | "Clorinde"
116
+ | "Emilie"
117
+ | "Kachina"
118
+ | "Kinich"
119
+ | "Mualani"
120
+ | "Xilonen"
121
+ | "Chasca"
122
+ | "Olorun"
123
+ | "Mavuika"
124
+ | "Citlali"
125
+ | "Lanyan"
126
+ | "Mizuki"
127
+ | "Iansan"
128
+ | "Varesa"
129
+ | "Escoffier"
130
+ | "Ifa"
131
+ | "SkirkNew"
132
+ | "Dahlia"
133
+ | "Ineffa"
134
+ | "MannequinBoy"
135
+ | "MannequinGirl"
136
+ | "Lauma"
137
+ | "Flins"
138
+ | "Aino"
139
+ | "Nefer"
140
+ | "Durin"
141
+ | "Jahoda"
142
+ | "Columbina"
143
+ | "Zibai"
144
+ | "Illuga"
145
+ | "Varka"
146
+ | "Linnea"
147
+ | "Lohen"
148
+ | "Nicole"
149
+ | "Prune"
150
+ | "Marionette"
151
+ | "Alyosha"
152
+ | "Odette"
153
+ | (string & {});
8
154
 
9
155
  /**
10
156
  * 战斗角色静态配置
@@ -22,17 +168,17 @@ export interface CombatAvatar extends ClrHostValue {
22
168
  * 角色名称(中文)
23
169
  * @since 0.50.0
24
170
  */
25
- name: string;
171
+ name: AvatarName;
26
172
  /**
27
- * 角色英文名
173
+ * 角色英文名(配置标准名,非 YOLO class)
28
174
  * @since 0.50.0
29
175
  */
30
- nameEn: string;
176
+ nameEn: CombatAvatarNameEn;
31
177
  /**
32
- * 武器类型
178
+ * 武器类型编码(非中文武器名)
33
179
  * @since 0.50.0
34
180
  */
35
- weapon: string;
181
+ weapon: CombatAvatarWeaponCode;
36
182
  /**
37
183
  * 元素战技冷却时长,单位秒
38
184
  * @since 0.50.0
@@ -58,6 +204,8 @@ export interface CombatAvatar extends ClrHostValue {
58
204
  declare global {
59
205
  namespace BetterGenshinImpact.GameTask.AutoFight.Config {
60
206
  type CombatAvatar = import("./CombatAvatar").CombatAvatar;
207
+ type CombatAvatarNameEn = import("./CombatAvatar").CombatAvatarNameEn;
208
+ type CombatAvatarWeaponCode = import("./CombatAvatar").CombatAvatarWeaponCode;
61
209
  }
62
210
  }
63
211