blueshell
Version:
A Behavior Tree implementation in modern Javascript
24 lines • 898 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.toString = toString;
exports.toConsole = toConsole;
exports.toDotString = toDotString;
exports.toDotConsole = toDotConsole;
/**
* Created by jpollak on 3/23/16.
*/
const archyTree_1 = require("./archyTree");
const dotTree_1 = require("./dotTree");
function toString(tree, state, contextDepth = Number.MAX_SAFE_INTEGER) {
return (0, archyTree_1.serializeArchyTree)(tree, state, contextDepth);
}
function toConsole(tree, state, contextDepth = Number.MAX_SAFE_INTEGER) {
console.log(toString(tree, state, contextDepth)); // eslint-disable-line no-console
}
function toDotString(tree, state) {
return (0, dotTree_1.serializeDotTree)(tree, state);
}
function toDotConsole(tree, state) {
console.log(toDotString(tree, state)); // eslint-disable-line no-console
}
//# sourceMappingURL=renderTree.js.map