refactor(hero/map): 重命名MissionHeroCompComp为MissionHeroComp

修改所有引用该组件的文件,统一组件命名,包括导入语句、类定义、静态属性调用以及相关注释,未变更原有业务逻辑。
This commit is contained in:
panw
2026-05-21 14:46:48 +08:00
parent fc3f4d7375
commit bb47a7a318
4 changed files with 20 additions and 20 deletions

View File

@@ -46,7 +46,7 @@ interface MoveFacConfig {
retreatBackX: number;
}
import { MissionHeroCompComp } from "../map/MissionHeroComp";
import { MissionHeroComp } from "../map/MissionHeroComp";
@ecs.register('MoveSystem')
export class MoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate {
@@ -253,7 +253,7 @@ export class MoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
// 优先中前(1) -> 上前(0) -> 下前(2) -> 中后(4) -> 上后(3) -> 下后(5)
const slotPriority = [1, 0, 2, 4, 3, 5];
const posIndex = slotPriority[slotIndex % 6];
const pos = MissionHeroCompComp.HERO_POSITIONS[posIndex];
const pos = MissionHeroComp.HERO_POSITIONS[posIndex];
return { targetX: pos.x, targetY: pos.y };
}