You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.2 KiB
51 lines
2.2 KiB
import { DefaultConfig } from "./config/DefaultConfig";
|
|
import { IConfigData } from "./config/IConfigData";
|
|
import { XiaoXiaoFangkuaiZhen } from "./config/XiaoXiaoFangkuaiZhen";
|
|
|
|
//import { LangType } from "../../mx/module/lang/Lang";
|
|
/**
|
|
* SDK项目配置
|
|
*/
|
|
export class sdkConfig {
|
|
//----------------构建时修改的部分-------------------------------------------
|
|
|
|
/**配置是否开发调试模式 */
|
|
static readonly isDev = false;
|
|
/**当前配置文件,不同项目分支设置好对应项目配置文件 */
|
|
static readonly config: IConfigData = DefaultConfig;
|
|
|
|
//-------------------------------------------------------------------------
|
|
/**s是否开启小游戏*/
|
|
static readonly isOpenAtGame = false;
|
|
/**是否是包含内购版本 */
|
|
static isIAPVersion = false;
|
|
/**快速调试只打*个怪胜利(配置大于0时生效) */
|
|
static isDebugFastWinMonsterNum = 0;
|
|
/**默认语言 */
|
|
static defaultLang = 'cn';
|
|
/**服务器时间同步频率(单位 毫秒 ,如果设置为0则不开启同步,以本地时间为准) */
|
|
static serverTimeCheckInterval = 1000 * 180;
|
|
|
|
/**资源加载完成时间戳 */
|
|
public static resLoadFinishTime: number = 0;
|
|
/**sdk加载完成时间戳 */
|
|
public static sdkLoadFinishTime: number = 0;
|
|
/**是否已经打点地图时间戳 */
|
|
public static isReportMapTime: boolean = false;
|
|
/**进入战斗时间戳 */
|
|
public static enterBattleTime: number = 0;
|
|
/**进入大厅时间戳 */
|
|
public static enterHallTime: number = 0;
|
|
/**是否已经完成gamedata初始化 */
|
|
public static isInitGameData: boolean = false;
|
|
|
|
/**
|
|
* 浏览器预览时的战斗性能档位(真机忽略此项,按 sys.os 自动判断)。
|
|
* - auto:浏览器默认走安卓档(与未开 iOS 节流一致)
|
|
* - ios:模拟 iOS 微信节流(方块冻结、武器降频、特效抽稀等)
|
|
* - android:模拟安卓档
|
|
* - douyin:模拟抖音小游戏轻量节流
|
|
* 调试可在控制台执行:setBattlePerfProfile('ios'|'android'|'douyin')
|
|
*/
|
|
static browserBattlePerfProfile: 'auto' | 'ios' | 'android' | 'douyin' = 'auto';
|
|
} |