blueshell
Advanced tools
Comparing version 3.6.0-btvBreakpoints.11 to 3.6.0-btvBreakpoints.12
export { TreePublisher, TreeNonPublisher } from './TreePublisher'; | ||
export { NodeManager } from './nodeManager'; | ||
export { INodeManager, NodeManager } from './nodeManager'; | ||
import { toString, toConsole, toDotString, toDotConsole } from './renderTree'; | ||
@@ -4,0 +4,0 @@ export declare const renderTree: { |
@@ -10,3 +10,10 @@ /// <reference types="node" /> | ||
} | ||
export declare class NodeManager<S extends BlueshellState, E> extends EventEmitter { | ||
export interface INodeManager<S extends BlueshellState, E> { | ||
runServer(): void; | ||
shutdown(): Promise<void>; | ||
addNode(node: BaseNode<S, E>): void; | ||
removeNode(node: BaseNode<S, E>): void; | ||
getNode(path: string): BaseNode<S, E> | undefined; | ||
} | ||
export declare class NodeManager<S extends BlueshellState, E> extends EventEmitter implements INodeManager<S, E> { | ||
private nodePathMap; | ||
@@ -24,3 +31,3 @@ private breakpointInfoMap; | ||
private removeBreakpoint; | ||
static getInstance<S extends BlueshellState, E>(): NodeManager<S, E>; | ||
static getInstance<S extends BlueshellState, E>(): INodeManager<S, E>; | ||
addNode(node: BaseNode<S, E>): void; | ||
@@ -27,0 +34,0 @@ removeNode(node: BaseNode<S, E>): void; |
export {TreePublisher, TreeNonPublisher} from './TreePublisher'; | ||
export {NodeManager} from './nodeManager'; | ||
export {INodeManager, NodeManager} from './nodeManager'; | ||
@@ -4,0 +4,0 @@ import {toString, toConsole, toDotString, toDotConsole} from './renderTree'; |
@@ -27,5 +27,21 @@ /* eslint-disable no-console */ | ||
export interface INodeManager<S extends BlueshellState, E> { | ||
// Starts the server | ||
runServer(): void; | ||
// Shuts down the debug server | ||
shutdown(): Promise<void>; | ||
// adds a behavior tree node (and all its children) to be considered for debugging (setting/removing breakpoints) | ||
addNode(node: BaseNode<S, E>): void; | ||
// Removes a bt node (and all its children) to be considered for debugging (setting/removing breakpoints) | ||
removeNode(node: BaseNode<S, E>): void; | ||
// Given a node path, return the bt node we have cached for that path | ||
getNode(path: string): BaseNode<S, E>|undefined; | ||
} | ||
// Manages information about what nodes are available in the BT for debugging (nodes must be registered | ||
// when they become available and unregistered when they are no longer available) | ||
export class NodeManager<S extends BlueshellState, E> extends EventEmitter { | ||
export class NodeManager<S extends BlueshellState, E> extends EventEmitter implements INodeManager<S, E> { | ||
// maps node path to the bt node for that path | ||
@@ -330,3 +346,3 @@ private nodePathMap: Map<NodePathKey, BaseNode<S, E>> = new Map(); | ||
// Returns the singleton instance | ||
public static getInstance<S extends BlueshellState, E>(): NodeManager<S, E> { | ||
public static getInstance<S extends BlueshellState, E>(): INodeManager<S, E> { | ||
if (!this.instance) { | ||
@@ -333,0 +349,0 @@ this.instance = new NodeManager(); |
@@ -106,3 +106,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "3.6.0-btvBreakpoints.11" | ||
"version": "3.6.0-btvBreakpoints.12" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
474167
266
7867
0