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/battle/combat/BattleBuffUnitReviveHost.ts

45 lines
1.1 KiB

import type { Node } from 'cc';
3 weeks ago
import type { EntityId } from 'db://assets/mx/module/ecs';
import type { ProjectBattleHandle } from '../runtime/BattleRuntime';
/**
* 还魂丹被动 Host(Phase1 已下线,占位编译)。
3 weeks ago
*/
export class BattleBuffUnitReviveHost {
/** 绑定(无操作) */
bind(_battle: ProjectBattleHandle, _deathFxParent: Node | null): void {
3 weeks ago
}
/** 解除绑定 */
3 weeks ago
unbind(): void {
}
/** 刷新携带(无操作) */
refreshCarry(): void {
3 weeks ago
}
/**
* 是否还魂暂缓实体。
* @param _entityId 实体
*/
isPassiveRevivedEntity(_entityId: EntityId): boolean {
3 weeks ago
return false;
}
/**
* 击杀时是否跳过死亡特效。
* @param _victim 死亡实体
3 weeks ago
*/
shouldSkipDeathFxOnKill(_victim: EntityId): boolean {
return false;
3 weeks ago
}
}
let _host: BattleBuffUnitReviveHost | null = null;
/** 全局还魂被动 Host */
3 weeks ago
export function getBattleBuffUnitReviveHost(): BattleBuffUnitReviveHost {
if (!_host) _host = new BattleBuffUnitReviveHost();
return _host;
}