395ea5b465b6dd8e8b33526be7411f58d9b1cb0a.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. System.register(["cc", "cc/env"], function (_export, _context) {
  2. "use strict";
  3. var _cclegacy, buildTimeConstants, BuildTimeConstants, _crd, keys;
  4. _export("BuildTimeConstants", void 0);
  5. return {
  6. setters: [function (_cc) {
  7. _cclegacy = _cc.cclegacy;
  8. }, function (_ccEnv) {
  9. buildTimeConstants = _ccEnv;
  10. }],
  11. execute: function () {
  12. _crd = true;
  13. _cclegacy._RF.push({}, "21a39/4HchJdJkSQKKKkLh9", "BuildTimeConstants", undefined);
  14. /*
  15. * @Author: dgflash
  16. * @Date: 2021-07-03 16:13:17
  17. * @LastEditors: dgflash
  18. * @LastEditTime: 2022-08-02 14:25:27
  19. */
  20. keys = Object.keys(buildTimeConstants).sort();
  21. /* 游戏运行环境 */
  22. _export("BuildTimeConstants", BuildTimeConstants = class BuildTimeConstants {
  23. constructor() {
  24. var keyNameMaxLen = keys.reduce((len, key) => Math.max(len, key.length), 0);
  25. var enviroment = "" + keys.map(key => {
  26. var value = buildTimeConstants[key];
  27. var valueRep = typeof value === 'boolean' ? value ? 'true' : 'false' : value;
  28. return "\n" + key.padStart(keyNameMaxLen, ' ') + " : " + valueRep;
  29. });
  30. console.log(enviroment);
  31. }
  32. });
  33. _cclegacy._RF.pop();
  34. _crd = false;
  35. }
  36. };
  37. });
  38. //# sourceMappingURL=395ea5b465b6dd8e8b33526be7411f58d9b1cb0a.js.map