GameConfig.js 1.66 KB
"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();