const BuildingManager = require("../utils/BuildingManager"); const ShareAction = require('./ShareAction'); const AlertManager = require('../utils/AlertManager'); const Platform = require('../common/Platform'); const WechatShareType = require('../utils/GameEnum').WechatShareType; window.GameGlobal = { // 建筑管理 BuildingManager: BuildingManager.instance, debug: false, ver: 100, //游戏版本号发版时需要核对 isCheck: false, isMineEnter: false, /** * 点击别人分享的链接需要进行的操作 查看群排行 */ shareType: ShareAction.NONE, /** * 点击别人分享的链接获取到这个用户的uid,默认-1 */ shareUid: -1, //SystemInfo os: 1,//1 android,2 ios channel: null, user: null, /// 游戏是否退出到后台 isOnHide: false, homeUpdate: true, wechatScoreKey: 'buildingLevel', // 开发中的城市Id devCityId: 1, buildRes: null, prefabsRes: null, starAvatarRes: null, starSpineRes: null, needLogin: false, /// 最后一个缩短技能cd的技能等级 rcdSkillLevel: 0, //是否已领取当天签到奖励 isSignAward: false, //是否已领取我的小程序奖励 appletAward: false, //判断是否使用本地数据 localData: false, //已签到次数 signCount: 0, //分享出去的群id shareTicket: '', //通用网络请求提示框 commonAlert: AlertManager, //是否点击过分享 clickShare: false, gameShareType: WechatShareType.None, //当前设备屏幕尺寸 winSize: {height: 0, width: 0}, }; Platform.initPlatform();