211 lines
6.0 KiB
JSON
211 lines
6.0 KiB
JSON
{
|
|
"$schema": "./@types/schema/package/index.json",
|
|
"package_version": 2,
|
|
"name": "cocos-ecs-extension",
|
|
"version": "1.0.0",
|
|
"author": "esengine",
|
|
"editor": ">=3.8.6",
|
|
"scripts": {
|
|
"preinstall": "node ./scripts/preinstall.js",
|
|
"build": "npx tsc"
|
|
},
|
|
"description": "i18n:cocos-ecs-extension.description",
|
|
"main": "./dist/main.js",
|
|
"dependencies": {
|
|
"vue": "^3.1.4",
|
|
"fs-extra": "^10.0.0",
|
|
"ws": "^8.14.2"
|
|
},
|
|
"devDependencies": {
|
|
"@cocos/creator-types": "^3.8.6",
|
|
"@types/fs-extra": "^9.0.5",
|
|
"@types/node": "^18.17.1",
|
|
"@types/ws": "^8.5.10",
|
|
"typescript": "^5.8.2"
|
|
},
|
|
"panels": {
|
|
"default": {
|
|
"title": "ECS Framework - 欢迎面板",
|
|
"type": "dockable",
|
|
"main": "dist/panels/default/index.js",
|
|
"size": {
|
|
"min-width": 450,
|
|
"min-height": 600,
|
|
"width": 850,
|
|
"height": 800
|
|
}
|
|
},
|
|
"debug": {
|
|
"title": "ECS Framework - 调试面板",
|
|
"type": "dockable",
|
|
"main": "dist/panels/debug/index.js",
|
|
"size": {
|
|
"min-width": 400,
|
|
"min-height": 500,
|
|
"width": 500,
|
|
"height": 600
|
|
}
|
|
},
|
|
"generator": {
|
|
"title": "ECS Framework - 代码生成器",
|
|
"type": "dockable",
|
|
"main": "dist/panels/generator/index.js",
|
|
"size": {
|
|
"min-width": 600,
|
|
"min-height": 500,
|
|
"width": 900,
|
|
"height": 700
|
|
}
|
|
},
|
|
"behavior-tree": {
|
|
"title": "ECS Framework - 行为树AI组件库",
|
|
"type": "dockable",
|
|
"main": "dist/panels/behavior-tree/index.js",
|
|
"size": {
|
|
"min-width": 700,
|
|
"min-height": 600,
|
|
"width": 1000,
|
|
"height": 800
|
|
}
|
|
}
|
|
},
|
|
"contributions": {
|
|
"scene": {
|
|
"script": "./dist/scene.js"
|
|
},
|
|
"menu": [
|
|
{
|
|
"path": "i18n:menu.panel/ECS Framework",
|
|
"label": "欢迎面板",
|
|
"message": "open-panel"
|
|
},
|
|
{
|
|
"path": "i18n:menu.panel/ECS Framework",
|
|
"label": "调试面板",
|
|
"message": "open-debug"
|
|
},
|
|
{
|
|
"path": "i18n:menu.panel/ECS Framework",
|
|
"label": "代码生成器",
|
|
"message": "open-generator"
|
|
},
|
|
{
|
|
"path": "i18n:menu.panel/ECS Framework",
|
|
"label": "行为树AI组件库",
|
|
"message": "open-behavior-tree"
|
|
},
|
|
{
|
|
"path": "i18n:menu.develop/ECS Framework",
|
|
"label": "ECS 开发工具",
|
|
"message": "open-panel"
|
|
}
|
|
],
|
|
"asset-menu": [
|
|
{
|
|
"path": "i18n:menu.create/ECS Framework",
|
|
"label": "创建行为树文件",
|
|
"message": "create-behavior-tree-file",
|
|
"target": "folder"
|
|
},
|
|
{
|
|
"path": "i18n:menu.open",
|
|
"label": "用行为树编辑器打开",
|
|
"message": "open-behavior-tree-file",
|
|
"target": [".bt.json", ".json"]
|
|
}
|
|
],
|
|
"messages": {
|
|
"open-panel": {
|
|
"methods": [
|
|
"openPanel"
|
|
]
|
|
},
|
|
"install-ecs-framework": {
|
|
"methods": [
|
|
"install-ecs-framework"
|
|
]
|
|
},
|
|
"update-ecs-framework": {
|
|
"methods": [
|
|
"update-ecs-framework"
|
|
]
|
|
},
|
|
"uninstall-ecs-framework": {
|
|
"methods": [
|
|
"uninstall-ecs-framework"
|
|
]
|
|
},
|
|
"open-documentation": {
|
|
"methods": [
|
|
"open-documentation"
|
|
]
|
|
},
|
|
"create-ecs-template": {
|
|
"methods": [
|
|
"create-ecs-template"
|
|
]
|
|
},
|
|
"open-github": {
|
|
"methods": [
|
|
"open-github"
|
|
]
|
|
},
|
|
"open-qq-group": {
|
|
"methods": [
|
|
"open-qq-group"
|
|
]
|
|
},
|
|
"open-debug": {
|
|
"methods": [
|
|
"open-debug"
|
|
]
|
|
},
|
|
"open-generator": {
|
|
"methods": [
|
|
"open-generator"
|
|
]
|
|
},
|
|
"open-behavior-tree": {
|
|
"methods": [
|
|
"open-behavior-tree"
|
|
]
|
|
},
|
|
"install-behavior-tree": {
|
|
"methods": [
|
|
"install-behavior-tree"
|
|
]
|
|
},
|
|
"update-behavior-tree": {
|
|
"methods": [
|
|
"update-behavior-tree"
|
|
]
|
|
},
|
|
"check-behavior-tree-installed": {
|
|
"methods": [
|
|
"check-behavior-tree-installed"
|
|
]
|
|
},
|
|
"open-behavior-tree-docs": {
|
|
"methods": [
|
|
"open-behavior-tree-docs"
|
|
]
|
|
},
|
|
"create-behavior-tree-file": {
|
|
"methods": [
|
|
"create-behavior-tree-file"
|
|
]
|
|
},
|
|
"open-behavior-tree-file": {
|
|
"methods": [
|
|
"open-behavior-tree-file"
|
|
]
|
|
},
|
|
"create-behavior-tree-from-editor": {
|
|
"methods": [
|
|
"create-behavior-tree-from-editor"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|