behavior-eden-coco-plugin/dist/runtime/node/base/ParentNode.js
2023-09-21 01:32:33 +08:00

35 lines
879 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParentNode = void 0;
const Node_1 = require("./Node");
class ParentNode extends Node_1.Node {
get index() {
return this._index;
}
set index(data) {
this._index = data;
}
constructor(children) {
super();
this.children = [];
this._index = 0;
this.children = children;
}
setChildren(children) {
this.children = children;
}
onConditionalAbort(childIndex) { }
decorate(status) {
return status;
}
//并行节点的状态不由某个子节点状态决定而是由多个共同决定所以重新计算status
overrideStatus(status) {
return status;
}
canRunParallelChildren() {
return false;
}
onChildStarted() { }
}
exports.ParentNode = ParentNode;