behaviortree
Version:
A JavaScript implementation of Behavior Trees. They are useful for implementing AIs. For Browsers and NodeJS.
9 lines (8 loc) • 326 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRunning = void 0;
const constants_1 = require("./constants");
function isRunning(result) {
return result === constants_1.RUNNING || (typeof result === 'object' && result.total === constants_1.RUNNING);
}
exports.isRunning = isRunning;