Merge branch 'dev' of github.com:zhandouxiaojiji/behavior3editor into dev
This commit is contained in:
commit
1013bb4f5e
3 files changed
+2
-3
No files matched your search
@@ -2,9 +2,6 @@
|
|||||||
这是一个直观、可视化的行为树编辑器,行为树的保存格式为json,可以让策划自行去实现AI,技能,buff等复杂的游戏逻辑,从而减少不必要的沟通成本和提升开发效率。
|
这是一个直观、可视化的行为树编辑器,行为树的保存格式为json,可以让策划自行去实现AI,技能,buff等复杂的游戏逻辑,从而减少不必要的沟通成本和提升开发效率。
|
||||||

|

|
||||||
|
|
||||||
## NodeJs版本
|
|
||||||
V16.20.2(注意v16以上的17 18可能会有报错)
|
|
||||||
|
|
||||||
## 使用方法
|
## 使用方法
|
||||||
+ 打开编辑器
|
+ 打开编辑器
|
||||||
+ 工作区->节点定义->选择文件(json)
|
+ 工作区->节点定义->选择文件(json)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"build": "electron-packager ./ behavior3editor --platform=win32 --arch=x64 --out=./build --overwrite",
|
"build": "electron-packager ./ behavior3editor --platform=win32 --arch=x64 --out=./build --overwrite",
|
||||||
"build-mac": "electron-packager ./ behavior3editor --platform=darwin --arch=universal --out=./build --overwrite",
|
"build-mac": "electron-packager ./ behavior3editor --platform=darwin --arch=universal --out=./build --overwrite",
|
||||||
|
"dist-mac": "npm run prestart && electron-builder --dir && electron-builder --mac",
|
||||||
"dist": "npm run prestart && electron-builder --dir && electron-builder --win --x64"
|
"dist": "npm run prestart && electron-builder --dir && electron-builder --win --x64"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ export default class TreeTabs extends Component<TreeTabsProps, TreeTabsState> {
|
|||||||
const files = fs.readdirSync(workdir).filter((f) => {
|
const files = fs.readdirSync(workdir).filter((f) => {
|
||||||
return f.endsWith(".json");
|
return f.endsWith(".json");
|
||||||
});
|
});
|
||||||
|
fs.mkdirSync(workdir + "/../build", { recursive: true });
|
||||||
for (const path of files) {
|
for (const path of files) {
|
||||||
const buildpath = buildDir + "/" + path;
|
const buildpath = buildDir + "/" + path;
|
||||||
console.log("build:", buildpath);
|
console.log("build:", buildpath);
|
||||||
|
|||||||
Reference in new issue
Block a user