feat(ui): 添加战场英雄信息面板并增强主角召唤事件

扩展主角召唤事件,传递更多实体信息供UI系统使用。新增HInfoComp组件作为英雄信息面板基础,并在MissionCardComp中动态生成和管理英雄信息面板,实时显示英雄属性。同时调整相关预制体引用和布局配置。
This commit is contained in:
panw
2026-03-25 17:23:22 +08:00
parent 338394f6ff
commit de90dadaed
6 changed files with 209 additions and 28 deletions

View File

@@ -113,7 +113,12 @@ export class Hero extends ecs.Entity {
this.add(hv);
hv.init();
// 广播主角召唤事件,触发外部系统监听逻辑
oops.message.dispatchEvent(GameEvent.MasterCalled,{uuid:uuid})
oops.message.dispatchEvent(GameEvent.MasterCalled, {
eid: this.eid,
uuid,
hero_lv,
model
})
// 初始化移动组件:方向、目标 X、站位基准 Y
const move = this.get(MoveComp);