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/BattleGameRuoshuiBuffPresen...

46 lines
1.4 KiB

3 weeks ago
import type { MapManager } from '../../battle/map/legacy/MapManager';
import type { CocosBattleMonsterPresenter } from '../../battle/view/CocosBattleMonsterPresenter';
3 weeks ago
import type { ProjectBattleHandle } from '../../battle/runtime/BattleRuntime';
import type { BattleGameOtherSkillView } from './BattleGameOtherSkillView';
import type { BattleGamePassiveSkillView } from './BattleGamePassiveSkillView';
/** 弱水 buff 绑定上下文(Phase1 未使用) */
export type BattleGameRuoshuiBindContext = {
/** 飞行层 */
flyLayer: import('cc').Node | null;
/** 被动 skill 视图 */
3 weeks ago
passiveSkillView: BattleGamePassiveSkillView | null;
/** 敌方 skill 视图 */
3 weeks ago
otherSkillView: BattleGameOtherSkillView | null;
};
/**
* 弱水符减速表现(Phase1 已移除,占位编译)。
3 weeks ago
*/
export class BattleGameRuoshuiBuffPresenter {
/** 绑定(无操作) */
3 weeks ago
bind(
_battle: ProjectBattleHandle,
_map: MapManager,
_monsterPresenter: CocosBattleMonsterPresenter,
_ctx: BattleGameRuoshuiBindContext,
3 weeks ago
): void {
}
/** 解除绑定 */
3 weeks ago
unbind(): void {
}
/** 刷新(无操作) */
3 weeks ago
refresh(): void {
}
}
let _presenter: BattleGameRuoshuiBuffPresenter | null = null;
3 weeks ago
/** 弱水符表现单例 */
3 weeks ago
export function getBattleGameRuoshuiBuffPresenter(): BattleGameRuoshuiBuffPresenter {
if (!_presenter) _presenter = new BattleGameRuoshuiBuffPresenter();
return _presenter;
3 weeks ago
}