var t = require; var e = module; var i = exports; Object.defineProperty(i, "__esModule", {value: !0}); const s = t("Composite"), o = t("constants"); i.default = class extends s.default { constructor({children: t = []} = {}) { super({children: t, name: "MemPriority"}); } open(t) { t.blackboard.set("runningChild", 0, t.tree.id, this.id); } tick(t) { for (var e = t.blackboard.get("runningChild", t.tree.id, this.id); e < this.children.length; e++) { var i = this.children[e]._execute(t); if (i !== o.FAILURE) return i === o.RUNNING && t.blackboard.set("runningChild", e, t.tree.id, this.id), i; } return o.FAILURE; } };