GameConfig.ts 1.7 KB
import { setSDKConfig } from "simba-sdk";
import { HttpClient } from "simba-httpclient";
import SDKImpl from "simba-sdk-dummy";
// import SDKImpl from "simba-sdk-wechat";
export const channel: string = SDKImpl.channel;

export namespace GameConfig {
    export const debug = true;
    export const showFPS = true;
    export const showDebugTool = true;
    export const useLocalTime = false;
    /**是否每次登录都执行清档操作 */
    export const EMPTY_RECORD_WHEN_LOGIN = false;

    export const gameId = "yybs";
    export const gameName = "吸血鬼";
    export const shareConfigUrl = `https://cdn-yybs.icesimba.com/${debug ? "dev" : "release"}/${channel}/config/share_config_1.json`;
    export const commonProblemConfigUrl = `https://cdn-yybs.icesimba.com/${debug ? "dev" : "release"}/${channel}/config/common_problem_config.json`;
    export const iwpServerUrl = new HttpClient("https://iwppublic.icesimba.cn");

    export const gameServer = new HttpClient(debug ? "https://maple-test.icesimba.cn" : "https://maple.icesimba.cn");
    export const cdnUrl = channel === "dummy" ? `https://cdn-yybs.icesimba.com/${debug ? "dev" : "release"}/${channel}` : `https://cdn-yybs.icesimba.com/${debug ? "dev" : "release"}/${channel}`;
    export const cdnServer = new HttpClient(cdnUrl);

    export const gameVersion = "1.5.5";

    export const youZanShopAppId = "wx69cf18f68e094c9f";

    export let showToBeContinue = false;
    export let isVerb = false;

    export const channelConfig = {
        wechat: {
            rewaredVideoAdId: "adunit-91af433af89892cd",
            interstitialAdId: "adunit-965d8f03120cb661",
            bannerAdId: "adunit-b2080caaf32d3747"
        },
    }
}

setSDKConfig(GameConfig, SDKImpl);