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