mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2026-03-27 12:51:41 +00:00
导出节点元数据
This commit is contained in:
@@ -155,3 +155,8 @@ export namespace BT {
|
||||
return metadata.maxChildren === -1 || currentChildCount < metadata.maxChildren;
|
||||
}
|
||||
}
|
||||
|
||||
let _global = globalThis || window || global;
|
||||
(_global as any)["getKunpoBTNodeMaps"] = function () {
|
||||
return BT.getAllNodeMetadata();
|
||||
};
|
||||
Reference in New Issue
Block a user