GameConfig.ts 1.2 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 gameId = "xhk";
    export const gameName = "小糊咖";
    export const shareConfigUrl = `https://weixingame.icesimba.com/weixingame/icesimba/${debug ? "dev" : "release"}/${gameId}/${channel}/config/share_config_1.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 cdnServer = new HttpClient(`https://weixingame.icesimba.com/weixingame/icesimba/${debug ? "dev" : "release"}/${gameId}/${channel}`);

    export const gameVersion = "1.0.0";

    export const channelConfig = {
        wechat: {
            rewaredVideoAdId: "",
            interstitialAdId: "",
            bannerAdId: ""
        }
    }
}

setSDKConfig(GameConfig, SDKImpl);