chore: 调整hero配置注释并修复属性类型

1. 新增三种英雄流派的配置说明文档
2. 将HInfoComp中的Number属性类型替换为CCInteger
This commit is contained in:
walkpan
2026-05-14 22:40:39 +08:00
parent 84175f4268
commit e97f2b0c48
2 changed files with 5 additions and 2 deletions

View File

@@ -85,3 +85,6 @@
怪物和boss 不配置 call fstart fend技能通过skills多技能触发
## 4 流派初步
数值型: 主要强化ap 和 hp辅助其他特殊技能
技能型: 主要强化技能 范围伤害,穿刺,多目标,风怒 范围攻击的范围+大 等
控制型: 主要强化 冰冻+击退

View File

@@ -19,7 +19,7 @@
* - Hero —— 英雄 ECS 实体类(用于出售删除)
* - UIID.IBox —— 英雄详情弹窗 ID
*/
import { _decorator, Animation, AnimationClip, Button, Event, Label, Node, NodeEventType, Sprite, resources } from "cc";
import { _decorator, Animation, AnimationClip, Button, Event, Label, Node, NodeEventType, Sprite, resources, CCInteger } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { HeroInfo } from "../common/config/heroSet";
@@ -63,7 +63,7 @@ export class HInfoComp extends CCComp {
@property(Node)
lv_node=null!
@property(Number)
@property(CCInteger)
node_index=0
/** 绑定的英雄 ECS 实体 ID */