import { InGame, Lang } from "./data/const/TypeConst" export default class Config { public static pid: string = "1" public static appVersion: string = '1.0.0' public static GAME_FRAME: number = 60 public static wxOpenId: string = "" public static wxSign: string = "" public static policy: string = "" //隐私协议是否默认勾选 没有配置或者配置1默认勾选,配置0默认不勾选 public static kefu: string = "" //1开启客服按钮,0或者空关闭客服按钮 public static showTips: string = "1" //是否显示启动页0.1折的提示 public static showTipType: string = "1" //显示启动页0.1折提示图片 public static showAgeTip: string = "16" //显示启动页适龄图片 public static showBgType: string = "0" //显示启动页背景图片 public static openTD: number = 0 //数数数据上报开关 public static adVideo: string = "1" //是否有广告 0关,1开 public static inGame: InGame = 0 public static lang: string = Lang.lang_zh_cn public static beianUrl:string = ""//备案网址 // public static showZhenFaTips: boolean = true// 阵法替换或出售时的提示开关 // public static showGuZiTips: boolean = true// 大帝古字的古字处理提示开关 public static serverEachTag: number = 20 // 每个标签带有的区服数量 public static remoteVersionUrl: string = "https://shkaifa.xmsgame.com:3111/player/getVersion" // H5小游戏2 获取远程配置版本号地址.写死 public static isPad: boolean = false public static upid: any public static upFrame: any //每帧定时器 public static upFight: any //战斗内加速定时器 public static upZhenWen: any // 阵纹召唤定时器 // x:x方向的安全区域(从左下方计算) y:y方向的安全区域(左下方计算) width:横向宽度 height:纵向宽度 // yMax: 1519.2757009345794 // yMin: 底部安全区域以上的起始点,比如 50, 表示底部黑色区域50 // yMax: 顶部安全区域到达点,比如1650 代表1650像素以上都是黑色区域 static safeAreaRect: { x: number, y: number, width: number, height: number, yMin: number, yMax: number } = { x: 0, y: 0, width: 750, height: 1334, yMax: 0, yMin: 0 } // 屏幕真实宽度(考虑刘海屏) static realHeight: number = 1334 static paySuccAdokId: any // 支付回调成功定时器 static paySuccAdokIndex: number = 0 static homeBgMaxOffsetY: number = 140 //主页背景图和炉鼎 1750 尺寸下,上移此像素 static menuBottomMaxOffsetY: number = 80 //底部菜单 1750 尺寸下,上移此像素 static homeBgRealOffsetY: number = 0 // 真实偏移量 static menuBottomRealOffsetY: number = 0 // 真实偏移量 static battleDebug: boolean = false // 战斗调试 }