From ca0eb532c47b53dfa6179861fc2a31dccf435eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E7=AB=AF=E5=AE=A2?= <107686912+Kirito520Asuna@users.noreply.github.com> Date: Wed, 25 Feb 2026 16:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=89=E6=9C=AC=E4=BD=93=E5=9C=B0=E8=84=89?= =?UTF-8?q?=E8=8A=B1=20=E5=85=88=E4=B8=8A=E4=B8=AA=E8=8D=89=E7=A8=BF=20(#2?= =?UTF-8?q?883)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(bettergi): 添加自动地脉花任务参数类型定义 - 定义 AutoLeyLineOutcropParam 类型 - 添加刷取次数、国家地区、地脉花类型等基本属性 - 实现树脂耗尽模式、好感队、战斗队伍等相关配置 - 添加自动合成浓缩树脂和使用各类树脂的功能选项 - 包含超时设置和通知功能配置 - 生成自动生成的别名声明 * feat(dispatcher): 添加自动地脉花任务功能 - 添加 runAutoLeyLineOutcropTask 方法用于运行自动地脉花任务 - 添加 RunAutoLeyLineOutcropTask 别名用于兼容性支持 - 提供自定义取消令牌参数支持 - 完善类型定义文件中的相关接口声明 --- bettergi.d.ts | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/bettergi.d.ts b/bettergi.d.ts index 28226b349..c022fc8c8 100644 --- a/bettergi.d.ts +++ b/bettergi.d.ts @@ -640,6 +640,12 @@ declare const dispatcher: { * @param customCt 自定义取消令牌(可选) */ runAutoFightTask(param: AutoFightParam, customCt?: CancellationToken | null): Promise; + /** + * 运行自动地脉花任务 + * @param param 自动地脉花任务参数 + * @param customCt 自定义取消令牌(可选) + */ + runAutoLeyLineOutcropTask(param: AutoLeyLineOutcropParam, customCt?: CancellationToken | null): Promise; // ==== 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 ==== +} + /** * 自动战斗任务参数 */