等本体地脉花 先上个草稿 (#2883)

* feat(bettergi): 添加自动地脉花任务参数类型定义

- 定义 AutoLeyLineOutcropParam 类型
- 添加刷取次数、国家地区、地脉花类型等基本属性
- 实现树脂耗尽模式、好感队、战斗队伍等相关配置
- 添加自动合成浓缩树脂和使用各类树脂的功能选项
- 包含超时设置和通知功能配置
- 生成自动生成的别名声明

* feat(dispatcher): 添加自动地脉花任务功能

- 添加 runAutoLeyLineOutcropTask 方法用于运行自动地脉花任务
- 添加 RunAutoLeyLineOutcropTask 别名用于兼容性支持
- 提供自定义取消令牌参数支持
- 完善类型定义文件中的相关接口声明
This commit is contained in:
云端客
2026-02-25 16:08:41 +08:00
committed by GitHub
parent f89291fb2b
commit ca0eb532c4

58
bettergi.d.ts vendored
View File

@@ -640,6 +640,12 @@ declare const dispatcher: {
* @param customCt 自定义取消令牌(可选)
*/
runAutoFightTask(param: AutoFightParam, customCt?: CancellationToken | null): Promise<void>;
/**
* 运行自动地脉花任务
* @param param 自动地脉花任务参数
* @param customCt 自定义取消令牌(可选)
*/
runAutoLeyLineOutcropTask(param: AutoLeyLineOutcropParam, customCt?: CancellationToken | null): Promise<void>;
// ==== BEGIN AUTO-GENERATED ALIASES ====
AddTimer: typeof dispatcher.addTimer;
AddTrigger: typeof dispatcher.addTrigger;
@@ -649,6 +655,7 @@ declare const dispatcher: {
GetLinkedCancellationToken: typeof dispatcher.getLinkedCancellationToken;
RunAutoDomainTask: typeof dispatcher.runAutoDomainTask;
RunAutoFightTask: typeof dispatcher.runAutoFightTask;
RunAutoLeyLineOutcropTask: typeof dispatcher.runAutoLeyLineOutcropTask;
// ==== END AUTO-GENERATED ALIASES ====;
};
@@ -989,6 +996,57 @@ declare class FightFinishDetectConfig {
// ==== END AUTO-GENERATED ALIASES ====
}
/**
* 自动地脉花任务参数
*/
declare class AutoLeyLineOutcropParam {
constructor(count: number, country: string, leyLineOutcropType: string);
/** 刷取次数 */
count: number;
/** 国家地区 */
country: string;
/** 地脉花类型 启示之花/藏金之花 */
leyLineOutcropType: string;
/** 树脂耗尽模式 */
isResinExhaustionMode: boolean;
/** 耗尽模式取小值 */
openModeCountMin: boolean;
/** 是否使用冒险之证寻找地脉花 */
useAdventurerHandbook: boolean;
/** 好感队名称 */
friendshipTeam: string;
/** 战斗的队伍名称 */
team: string;
/** 战斗超时时间 */
timeout: number;
/** 前往合成台合成浓缩树脂 */
isGoToSynthesizer: boolean;
/** 使用脆弱树脂 */
useFragileResin: boolean;
/** 使用须臾树脂 */
useTransientResin: boolean;
/** 详细通知 */
isNotification: boolean;
// ==== BEGIN AUTO-GENERATED ALIASES ====
declare Count: typeof AutoLeyLineOutcropParam.prototype.count;
declare Country: typeof AutoLeyLineOutcropParam.prototype.country;
declare LeyLineOutcropType: typeof AutoLeyLineOutcropParam.prototype.leyLineOutcropType;
declare OpenModeCountMin: typeof AutoLeyLineOutcropParam.prototype.openModeCountMin;
declare IsResinExhaustionMode: typeof AutoLeyLineOutcropParam.prototype.isResinExhaustionMode;
declare UseAdventurerHandbook: typeof AutoLeyLineOutcropParam.prototype.useAdventurerHandbook;
declare FriendshipTeam: typeof AutoLeyLineOutcropParam.prototype.friendshipTeam;
declare Team: typeof AutoLeyLineOutcropParam.prototype.team;
declare Timeout: typeof AutoLeyLineOutcropParam.prototype.timeout;
declare IsGoToSynthesizer: typeof AutoLeyLineOutcropParam.prototype.isGoToSynthesizer;
declare UseFragileResin: typeof AutoLeyLineOutcropParam.prototype.useFragileResin;
declare UseTransientResin: typeof AutoLeyLineOutcropParam.prototype.useTransientResin;
declare IsNotification: typeof AutoLeyLineOutcropParam.prototype.isNotification;
// ==== END AUTO-GENERATED ALIASES ====
}
/**
* 自动战斗任务参数
*/