27a1cf6eb8e42599ac0a78e09e1e098e681a9035.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Constants, _dec, _class, _class2, _crd, ccclass, property, Logger;
  4. function _reportPossibleCrUseOfConstants(extras) {
  5. _reporterNs.report("Constants", "../data/Constants", _context.meta, extras);
  6. }
  7. return {
  8. setters: [function (_unresolved_) {
  9. _reporterNs = _unresolved_;
  10. }, function (_cc) {
  11. _cclegacy = _cc.cclegacy;
  12. __checkObsolete__ = _cc.__checkObsolete__;
  13. __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
  14. _decorator = _cc._decorator;
  15. }, function (_unresolved_2) {
  16. Constants = _unresolved_2.Constants;
  17. }],
  18. execute: function () {
  19. _crd = true;
  20. _cclegacy._RF.push({}, "87f8azWNzFNvrOwZKm5ZhJ5", "Logger", undefined);
  21. __checkObsolete__(['_decorator']);
  22. ({
  23. ccclass,
  24. property
  25. } = _decorator);
  26. _export("Logger", Logger = (_dec = ccclass('Logger'), _dec(_class = (_class2 = class Logger {}, _class2.log = (_crd && Constants === void 0 ? (_reportPossibleCrUseOfConstants({
  27. error: Error()
  28. }), Constants) : Constants).isDebug ? function () {
  29. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  30. args[_key] = arguments[_key];
  31. }
  32. console.log('[DEBUG]', ...args);
  33. } : () => {}, _class2.error = (_crd && Constants === void 0 ? (_reportPossibleCrUseOfConstants({
  34. error: Error()
  35. }), Constants) : Constants).isDebug ? function () {
  36. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  37. args[_key2] = arguments[_key2];
  38. }
  39. console.error('[DEBUG]', ...args);
  40. console.trace('调试堆栈');
  41. } : () => {}, _class2.warn = (_crd && Constants === void 0 ? (_reportPossibleCrUseOfConstants({
  42. error: Error()
  43. }), Constants) : Constants).isDebug ? function () {
  44. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  45. args[_key3] = arguments[_key3];
  46. }
  47. console.warn('[DEBUG]', ...args);
  48. } : () => {}, _class2)) || _class));
  49. _cclegacy._RF.pop();
  50. _crd = false;
  51. }
  52. };
  53. });
  54. //# sourceMappingURL=27a1cf6eb8e42599ac0a78e09e1e098e681a9035.js.map