import type { DailyShopParsed } from '../../manager/DailyShopTypes'; import type { ProjectBattleHandle } from '../../battle/runtime/BattleRuntime'; import { BattleGameSkillDragKind, resolveBattleGameSkillDragKind, } from '../../manager/battleBuff/BattleBuffActiveSkillUtil'; /** * 七十二变主动(Phase1 已移除,占位编译)。 */ export class BattleGameRandomActiveSkillHost { private static _inst: BattleGameRandomActiveSkillHost | null = null; /** 单例 */ static get(): BattleGameRandomActiveSkillHost { if (!BattleGameRandomActiveSkillHost._inst) { BattleGameRandomActiveSkillHost._inst = new BattleGameRandomActiveSkillHost(); } return BattleGameRandomActiveSkillHost._inst; } /** 战斗结束重置 */ reset(): void { } /** 是否七十二变 buff 行 */ isRandomActiveRow(_row: ITableBattlebuff | null | undefined): boolean { return false; } /** 槽位是否为七十二变携带 */ isRandomActiveSlot(_slotIndex: number): boolean { return false; } /** 当前是否展示随机出的主动 buff */ isShowingRolledBuff(_slotIndex: number): boolean { return false; } /** 绑定槽位携带 buff */ syncSlot(_slotIndex: number, _baseBuffId: number, _row: ITableBattlebuff | null | undefined): void { } /** 解析槽位当前应走的 skill 拖拽类型 */ resolveCastDragKind(_slotIndex: number, baseParsed: DailyShopParsed | null): BattleGameSkillDragKind | null { if (!baseParsed) return null; return resolveBattleGameSkillDragKind(baseParsed.row as ITableBattlebuff); } /** 解析槽位当前应展示的 buff */ resolveDisplayParsed(_slotIndex: number, baseParsed: DailyShopParsed | null): DailyShopParsed | null { return baseParsed; } /** CD 结束 roll(不支持) */ tryRollOnCooldownReady(_slotIndex: number, _battle: ProjectBattleHandle | null): boolean { return false; } /** 随机 buff 施放成功回调 */ onRolledBuffConsumed(_slotIndex: number): void { } /** 从池选取 buff id(不支持) */ static pickRollBuffIdFromPool(_excludeIds: readonly number[], _rng: unknown): number { return 0; } } /** 获取七十二变宿主 */ export function getBattleGameRandomActiveSkillHost(): BattleGameRandomActiveSkillHost { return BattleGameRandomActiveSkillHost.get(); }