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/BattleBuffEnemySlowHost.ts

32 lines
814 B

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 BattleBuffEnemySlowHost {
/** 绑定(无操作) */
bind(_battle: ProjectBattleHandle): void {
3 weeks ago
}
/** 解除绑定 */
unbind(): void {
}
/**
* 实体减速万分比(Phase1 恒无)。
* @param _entityId 实体
3 weeks ago
*/
resolveSlowWanForEntity(_entityId: EntityId): number | null {
3 weeks ago
return null;
}
}
let _host: BattleBuffEnemySlowHost | null = null;
/** 全局敌方减速被动 Host */
3 weeks ago
export function getBattleBuffEnemySlowHost(): BattleBuffEnemySlowHost {
if (!_host) _host = new BattleBuffEnemySlowHost();
return _host;
}