450a894938f0564dfd49e9bf1f40b930fec15d26.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, GameComponent, _dec, _class, _class2, _crd, ccclass, property, CCComp;
  4. function _reportPossibleCrUseOfGameComponent(extras) {
  5. _reporterNs.report("GameComponent", "./GameComponent", _context.meta, extras);
  6. }
  7. function _reportPossibleCrUseOfecs(extras) {
  8. _reporterNs.report("ecs", "../../libs/ecs/ECS", _context.meta, extras);
  9. }
  10. return {
  11. setters: [function (_unresolved_) {
  12. _reporterNs = _unresolved_;
  13. }, function (_cc) {
  14. _cclegacy = _cc.cclegacy;
  15. __checkObsolete__ = _cc.__checkObsolete__;
  16. __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
  17. _decorator = _cc._decorator;
  18. }, function (_unresolved_2) {
  19. GameComponent = _unresolved_2.GameComponent;
  20. }],
  21. execute: function () {
  22. _crd = true;
  23. _cclegacy._RF.push({}, "dd207fiyGJLf5r+bkiMgwdt", "CCComp", undefined);
  24. /*
  25. * @Author: dgflash
  26. * @Date: 2021-11-11 19:05:32
  27. * @LastEditors: dgflash
  28. * @LastEditTime: 2022-09-06 17:20:51
  29. */
  30. __checkObsolete__(['_decorator']);
  31. ({
  32. ccclass,
  33. property
  34. } = _decorator);
  35. /**
  36. * 游戏显示对象组件
  37. *
  38. * 功能介绍:
  39. * 1. 对象拥有 cc.Component 组件功能与 ecs.Comp 组件功能
  40. * 2. 对象自带全局事件监听、释放、发送全局消息功能
  41. * 3. 对象管理的所有节点摊平,直接通过节点名获取cc.Node对象
  42. *
  43. * 应用场景
  44. * 1. 网络游戏,优先有数据对象,然后创建视图对象,当释放视图组件时,部分场景不希望释放数据对象
  45. *
  46. * @example
  47. @ccclass('RoleViewComp')
  48. @ecs.register('RoleView', false)
  49. export class RoleViewComp extends CCComp {
  50. @property({ type: sp.Skeleton, tooltip: '角色动画' })
  51. spine: sp.Skeleton = null!;
  52. onLoad(){
  53. }
  54. }
  55. */
  56. _export("CCComp", CCComp = (_dec = ccclass('CCComp'), _dec(_class = (_class2 = class CCComp extends (_crd && GameComponent === void 0 ? (_reportPossibleCrUseOfGameComponent({
  57. error: Error()
  58. }), GameComponent) : GameComponent) {
  59. constructor() {
  60. super(...arguments);
  61. this.canRecycle = void 0;
  62. this.ent = void 0;
  63. }
  64. }, _class2.tid = -1, _class2.compName = void 0, _class2)) || _class));
  65. _cclegacy._RF.pop();
  66. _crd = false;
  67. }
  68. };
  69. });
  70. //# sourceMappingURL=450a894938f0564dfd49e9bf1f40b930fec15d26.js.map