GameConfig.js
5.91 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
(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.gameId = "xhk";
GameConfig.gameName = "小糊咖";
GameConfig.shareConfigUrl = `https://weixingame.icesimba.com/weixingame/icesimba/${GameConfig.debug ? "dev" : "release"}/${GameConfig.gameId}/${exports.channel}/config/share_config_1.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.cdnServer = new simba_httpclient_1.HttpClient(`https://weixingame.icesimba.com/weixingame/icesimba/${GameConfig.debug ? "dev" : "release"}/${GameConfig.gameId}/${exports.channel}`);
GameConfig.gameVersion = "1.0.0";
GameConfig.channelConfig = {
wechat: {
rewaredVideoAdId: "",
interstitialAdId: "",
bannerAdId: ""
}
};
})(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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvR2FtZUNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx5Q0FBeUM7QUFDekMsdURBQThDO0FBQzlDLHFEQUFzQztBQUN0QywwQ0FBMEM7QUFHN0IsUUFBQSxPQUFPLEdBQVcseUJBQU8sQ0FBQyxPQUFPLENBQUM7QUFFL0MsSUFBaUIsVUFBVSxDQXVCMUI7QUF2QkQsV0FBaUIsVUFBVTtJQUNWLGdCQUFLLEdBQUcsSUFBSSxDQUFDO0lBQ2Isa0JBQU8sR0FBRyxJQUFJLENBQUM7SUFDZix3QkFBYSxHQUFHLElBQUksQ0FBQztJQUNyQix1QkFBWSxHQUFHLEtBQUssQ0FBQztJQUVyQixpQkFBTSxHQUFHLEtBQUssQ0FBQztJQUNmLG1CQUFRLEdBQUcsS0FBSyxDQUFDO0lBQ2pCLHlCQUFjLEdBQUcsdURBQXVELFdBQUEsS0FBSyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLFNBQVMsSUFBSSxXQUFBLE1BQU0sSUFBSSxlQUFPLDZCQUE2QixDQUFDO0lBQ3BKLHVCQUFZLEdBQUcsSUFBSSw2QkFBVSxDQUFDLCtCQUErQixDQUFDLENBQUM7SUFFL0QscUJBQVUsR0FBRyxJQUFJLDZCQUFVLENBQUMsV0FBQSxLQUFLLENBQUMsQ0FBQyxDQUFDLGdDQUFnQ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