feat(editor): 完成英雄配置编辑器全功能开发
本提交新增完整的英雄配置可视化编辑器: 1. 初始化前后端项目结构,配置monorepo工作区 2. 实现后端API服务,支持读取游戏配置、导出hexport.ts文件 3. 开发前端Vue应用,包含完整的英雄增删改、属性配置、技能编辑功能 4. 实现多类型编辑器组件:基础属性、普攻/大招编辑、触发技能、光环、复活、属性加成等 5. 清理冗余的配置元数据文件
This commit is contained in:
21
put/server/scripts/verify-meta.js
Normal file
21
put/server/scripts/verify-meta.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// 验证 server /api/meta 是否正常工作
|
||||
import http from 'node:http'
|
||||
|
||||
http.get('http://localhost:3001/api/meta', (res) => {
|
||||
let data = ''
|
||||
res.on('data', (c) => (data += c))
|
||||
res.on('end', () => {
|
||||
try {
|
||||
const m = JSON.parse(data)
|
||||
console.log('SkillSet:', Object.keys(m.SkillSet || {}).length)
|
||||
console.log('FieldSkillSet:', Object.keys(m.FieldSkillSet || {}).length)
|
||||
console.log('BuffList:', Object.keys(m.BuffList || {}).length)
|
||||
console.log('HERO_ROLE_BASE:', Object.keys(m.HERO_ROLE_BASE || {}).length)
|
||||
console.log('AtkSpeedSet:', Object.keys(m.AtkSpeedSet || {}).length)
|
||||
const s6010 = m.SkillSet?.[6010]
|
||||
console.log('Skill 6010:', s6010 ? `${s6010.name} ap=${s6010.ap}` : 'missing')
|
||||
} catch (e) {
|
||||
console.error('parse fail:', e.message, 'raw:', data.slice(0, 200))
|
||||
}
|
||||
})
|
||||
}).on('error', (e) => console.error('http err:', e.message))
|
||||
Reference in New Issue
Block a user