refactor(map/hero): 重构英雄位置管理逻辑,移除lane相关字段
重构了英雄分路排位的旧实现,改用硬编码的点位数组管理英雄站位,移除了HeroAttrsComp中的lane和lane_index字段,简化了英雄位置分配、UI面板绑定的逻辑,提升代码可维护性。
This commit is contained in:
@@ -64,8 +64,6 @@ export class HeroAttrsComp extends ecs.Comp {
|
||||
minSkillDistance: number = 0; // 最近技能攻击距离(缓存,不受MP影响,用于停止位置判断)
|
||||
|
||||
// ==================== 阵型位置 ====================
|
||||
lane: number = -1; // 所在分路:0上路, 1中路, 2下路
|
||||
lane_index: number = -1; // 所在路中的排位:0前排, 1后排
|
||||
|
||||
// ==================== 标记状态 ====================
|
||||
is_dead: boolean = false;
|
||||
@@ -312,8 +310,6 @@ export class HeroAttrsComp extends ecs.Comp {
|
||||
this.maxSkillDistance = 0;
|
||||
this.minSkillDistance = 0;
|
||||
|
||||
this.lane = -1;
|
||||
this.lane_index = -1;
|
||||
|
||||
this.is_dead = false;
|
||||
this.is_count_dead = false;
|
||||
|
||||
Reference in New Issue
Block a user