GameConfig.js
7.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
(function() {
var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
var __module = nodeEnv ? module : {exports:{}};
var __filename = 'preview-scripts/assets/script/GameConfig.js';
var __require = nodeEnv ? function (request) {
return cc.require(request);
} : function (request) {
return __quick_compile_project__.require(request, __filename);
};
function __define (exports, require, module) {
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, 'dcadexiJFlAb5nKYkFZuGvo', 'GameConfig');
// script/GameConfig.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GameConfig = exports.channel = void 0;
const simba_sdk_1 = require("simba-sdk");
const simba_httpclient_1 = require("simba-httpclient");
const simba_sdk_dummy_1 = require("simba-sdk-dummy");
// import SDKImpl from "simba-sdk-wechat";
exports.channel = simba_sdk_dummy_1.default.channel;
var GameConfig;
(function (GameConfig) {
GameConfig.debug = true;
GameConfig.showFPS = true;
GameConfig.showDebugTool = true;
GameConfig.useLocalTime = false;
/**是否每次登录都执行清档操作 */
GameConfig.EMPTY_RECORD_WHEN_LOGIN = false;
GameConfig.gameId = "yybs";
GameConfig.gameName = "吸血鬼";
GameConfig.shareConfigUrl = `https://cdn-yybs.icesimba.com/${GameConfig.debug ? "dev" : "release"}/${exports.channel}/config/share_config_1.json`;
GameConfig.commonProblemConfigUrl = `https://cdn-yybs.icesimba.com/${GameConfig.debug ? "dev" : "release"}/${exports.channel}/config/common_problem_config.json`;
GameConfig.iwpServerUrl = new simba_httpclient_1.HttpClient("https://iwppublic.icesimba.cn");
GameConfig.gameServer = new simba_httpclient_1.HttpClient(GameConfig.debug ? "https://maple-test.icesimba.cn" : "https://maple.icesimba.cn");
GameConfig.cdnUrl = exports.channel === "dummy" ? `https://cdn-yybs.icesimba.com/${GameConfig.debug ? "dev" : "release"}/${exports.channel}` : `https://cdn-yybs.icesimba.com/${GameConfig.debug ? "dev" : "release"}/${exports.channel}`;
GameConfig.cdnServer = new simba_httpclient_1.HttpClient(GameConfig.cdnUrl);
GameConfig.gameVersion = "1.5.5";
GameConfig.youZanShopAppId = "wx69cf18f68e094c9f";
GameConfig.showToBeContinue = false;
GameConfig.isVerb = false;
GameConfig.channelConfig = {
wechat: {
rewaredVideoAdId: "adunit-91af433af89892cd",
interstitialAdId: "adunit-965d8f03120cb661",
bannerAdId: "adunit-b2080caaf32d3747"
},
};
})(GameConfig = exports.GameConfig || (exports.GameConfig = {}));
simba_sdk_1.setSDKConfig(GameConfig, simba_sdk_dummy_1.default);
cc._RF.pop();
}
if (nodeEnv) {
__define(__module.exports, __require, __module);
}
else {
__quick_compile_project__.registerModuleFunc(__filename, function () {
__define(__module.exports, __require, __module);
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvR2FtZUNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx5Q0FBeUM7QUFDekMsdURBQThDO0FBQzlDLHFEQUFzQztBQUN0QywwQ0FBMEM7QUFDN0IsUUFBQSxPQUFPLEdBQVcseUJBQU8sQ0FBQyxPQUFPLENBQUM7QUFFL0MsSUFBaUIsVUFBVSxDQWdDMUI7QUFoQ0QsV0FBaUIsVUFBVTtJQUNWLGdCQUFLLEdBQUcsSUFBSSxDQUFDO0lBQ2Isa0JBQU8sR0FBRyxJQUFJLENBQUM7SUFDZix3QkFBYSxHQUFHLElBQUksQ0FBQztJQUNyQix1QkFBWSxHQUFHLEtBQUssQ0FBQztJQUNsQyxtQkFBbUI7SUFDTixrQ0FBdUIsR0FBRyxLQUFLLENBQUM7SUFFaEMsaUJBQU0s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