From 6ae0b4200a88be689c6c52081d58274eccbcd11b Mon Sep 17 00:00:00 2001 From: gongxh Date: Mon, 8 Sep 2025 16:49:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=8A=82=E7=82=B9=E5=85=83?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/behaviortree/BT.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/behaviortree/BT.ts b/src/behaviortree/BT.ts index 019a6a6..215b7ac 100644 --- a/src/behaviortree/BT.ts +++ b/src/behaviortree/BT.ts @@ -154,4 +154,9 @@ export namespace BT { export function canAddMoreChildren(metadata: NodeMetadata, currentChildCount: number): boolean { return metadata.maxChildren === -1 || currentChildCount < metadata.maxChildren; } -} \ No newline at end of file +} + +let _global = globalThis || window || global; +(_global as any)["getKunpoBTNodeMaps"] = function () { + return BT.getAllNodeMetadata(); +}; \ No newline at end of file