71803cd70013fe94e7b94c12f639bcc8c0efed61.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. System.register(["__unresolved_0", "cc"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, BTreeNode, _crd;
  4. function _reportPossibleCrUseOfIControl(extras) {
  5. _reporterNs.report("IControl", "./IControl", _context.meta, extras);
  6. }
  7. _export("BTreeNode", void 0);
  8. return {
  9. setters: [function (_unresolved_) {
  10. _reporterNs = _unresolved_;
  11. }, function (_cc) {
  12. _cclegacy = _cc.cclegacy;
  13. }],
  14. execute: function () {
  15. _crd = true;
  16. _cclegacy._RF.push({}, "f0aeepAwndJP7wlpP6QKx06", "BTreeNode", undefined);
  17. /*
  18. * @Author: dgflash
  19. * @Date: 2022-06-21 12:05:14
  20. * @LastEditors: dgflash
  21. * @LastEditTime: 2022-07-20 14:04:44
  22. */
  23. /** 行为树节点 */
  24. _export("BTreeNode", BTreeNode = class BTreeNode {
  25. constructor() {
  26. this._control = void 0;
  27. this.title = void 0;
  28. this.title = this.constructor.name;
  29. }
  30. start(blackboard) {}
  31. end(blackboard) {}
  32. setControl(control) {
  33. this._control = control;
  34. }
  35. running(blackboard) {
  36. this._control.running(this);
  37. }
  38. success() {
  39. this._control.success();
  40. }
  41. fail() {
  42. this._control.fail();
  43. }
  44. });
  45. _cclegacy._RF.pop();
  46. _crd = false;
  47. }
  48. };
  49. });
  50. //# sourceMappingURL=71803cd70013fe94e7b94c12f639bcc8c0efed61.js.map