UNPKG

phaser3-rex-plugins

Version:
28 lines (23 loc) 638 B
import TreeMethods from './TreeMethods.js'; import StateMethods from './StateMethods.js'; import RunMethods from './RunMethods.js'; class EventBehaviorTreeGroup { constructor(parent, { name = '' } = {}) { this.parent = parent; this.name = name; this.trees = []; this.pendingTrees = []; this.closedTrees = []; // Temporary tree array this.isRunning = false; this._threadKey = null; } } Object.assign( EventBehaviorTreeGroup.prototype, TreeMethods, StateMethods, RunMethods, ) export default EventBehaviorTreeGroup;