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