You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdLike2048/assets/script/ui/BattleGame/BattleGameRandomActiveSkill...

75 lines
2.4 KiB

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