82170190-563f-4fc7-8795-b0e00388a5ab.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. "use strict";
  2. cc._RF.push(module, '82170GQVj9Px4eVsOADiKWr', 'ServerInfo');
  3. // Script/Framework/Config/ServerInfo.ts
  4. "use strict";
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. exports.ServerInfo = exports.EBuildVersion = exports.EPlatform = void 0;
  7. var EPlatform;
  8. (function (EPlatform) {
  9. EPlatform[EPlatform["Web"] = 0] = "Web";
  10. })(EPlatform = exports.EPlatform || (exports.EPlatform = {}));
  11. var EBuildVersion;
  12. (function (EBuildVersion) {
  13. EBuildVersion[EBuildVersion["Debug"] = 0] = "Debug";
  14. EBuildVersion[EBuildVersion["Release"] = 1] = "Release";
  15. })(EBuildVersion = exports.EBuildVersion || (exports.EBuildVersion = {}));
  16. var ServerInfo = /** @class */ (function () {
  17. function ServerInfo() {
  18. this.platform = EPlatform.Web;
  19. this.buildVersion = EBuildVersion.Debug;
  20. }
  21. Object.defineProperty(ServerInfo.prototype, "isRelease", {
  22. get: function () {
  23. if (this.buildVersion == EBuildVersion.Release)
  24. return true;
  25. else
  26. return false;
  27. },
  28. enumerable: false,
  29. configurable: true
  30. });
  31. return ServerInfo;
  32. }());
  33. exports.ServerInfo = ServerInfo;
  34. cc._RF.pop();