var t = require; var e = module; var i = exports; Object.defineProperty(i, "__esModule", {value: !0}); const s = {0: "under", 2: "left", 4: "middle", 6: "left"}; i.default = class { constructor() { (this.chefPos = null), (this.selfPos = null), (this.direction = 0), (this.machineData = null), (this.isWorking = !1), (this.order = null), (this.ani = null), (this.node = null), (this.parentNode = null), (this.siblingIndex = 0); } unlock() { this.setActive(!0); } setActive(t) { t ? this.node.parent || this.parentNode.addChild(this.node) : this.node.parent && this.node.removeFromParent(!1); } startCook() { this.isWorking = !0; } playCookAni() { this.ani && this.ani.play(s[this.direction]); } stopCook() { (this.isWorking = !1), this.ani && (this.ani.stop(), this.ani.setCurrentTime(0, s[this.direction])); } updateSiblingIndex() { this.node.parent && this.node.setSiblingIndex(this.siblingIndex); } };