GameConfig.ts
1.7 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
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);