mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +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