{
  "code": "import { NetInfoManager } from \"./NetInfoManager\";\r\nimport { AssetPath, AppSetting } from \"./AssetManager\";\r\nimport { PlayerManager } from \"./PlayerManager\";\r\nimport { GlobalParam } from \"../Net/GlobalParam\";\r\nvar Sprite = Laya.Sprite;\r\nvar Event = Laya.Event;\r\nvar SoundManager = Laya.SoundManager;\r\nvar Handler = Laya.Handler;\r\nexport class UserInfoManager {\r\n    static GameInfo() {\r\n        PlayerManager.Instance.InitPlayer();\r\n    }\r\n    static SetCfg(cfg) {\r\n        NetInfoManager.Instance._level = cfg[AssetPath.Config.level];\r\n        NetInfoManager.Instance._road = cfg[AssetPath.Config.road];\r\n        NetInfoManager.Instance._block = cfg[AssetPath.Config.block];\r\n        NetInfoManager.Instance._thing = cfg[AssetPath.Config.thing];\r\n        NetInfoManager.Instance._atk = cfg[AssetPath.Config.atk];\r\n        NetInfoManager.Instance._rate = cfg[AssetPath.Config.rate];\r\n        NetInfoManager.Instance._theme = cfg[AssetPath.Config.theme];\r\n        NetInfoManager.Instance._globe = cfg[AssetPath.Config.global];\r\n        PlayerManager.GlobalMessage();\r\n    }\r\n    setup() {\r\n        var gap = 10;\r\n        var soundButton = this.createButton(\"播放音效\");\r\n        soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2;\r\n        soundButton.y = (Laya.stage.height - soundButton.height) / 2;\r\n        Laya.stage.addChild(soundButton);\r\n        var musicButton = this.createButton(\"播放音乐\");\r\n        musicButton.x = soundButton.x + gap + soundButton.width;\r\n        musicButton.y = soundButton.y;\r\n        Laya.stage.addChild(musicButton);\r\n        soundButton.on(Event.CLICK, this, this.onPlaySound);\r\n        musicButton.on(Event.CLICK, this, this.onPlayMusic);\r\n    }\r\n    createButton(label) {\r\n        var w = 110;\r\n        var h = 40;\r\n        var button = new Sprite();\r\n        button.size(w, h);\r\n        button.graphics.drawRect(0, 0, w, h, \"#FF7F50\");\r\n        button.graphics.fillText(label, w / 2, 8, \"25px SimHei\", \"#FFFFFF\", \"center\");\r\n        Laya.stage.addChild(button);\r\n        return button;\r\n    }\r\n    onPlayMusic(e) {\r\n        console.log(\"播放音乐\");\r\n        SoundManager.playMusic(\"res/sounds/bgm.mp3\", 1, new Handler(this, this.onComplete));\r\n    }\r\n    onPlaySound(e) {\r\n        console.log(\"播放音效\");\r\n        SoundManager.playSound(\"res/sounds/btn.mp3\", 1, new Handler(this, this.onComplete));\r\n    }\r\n    onComplete() {\r\n        console.log(\"播放完成\");\r\n    }\r\n    static Appseting(data) {\r\n        AppSetting.shareimage = data[\"shareimage\"];\r\n        AppSetting.sharetitle = data[\"sharetitle\"];\r\n        AppSetting.bannerCanMove = Number(data[\"bannerCanMove\"]);\r\n        AppSetting.moveTime = Number(data[\"moveTime\"]);\r\n        AppSetting.OpenSceneValue = Number(data[\"OpenSceneValue\"]);\r\n        AppSetting.freeUpdateVideotime = Number(data[\"freeUpdateVideotime\"]);\r\n        AppSetting.freecoinValue = Number(data[\"freecoinValue\"]);\r\n        AppSetting.freeGetcoinTime = Number(data[\"freeGetcoinTime\"]);\r\n        AppSetting.cheat = data[\"cheat\"];\r\n        AppSetting.cheattime = data[\"cheattime\"];\r\n        AppSetting.checkscene = data[\"checkscene\"];\r\n        GlobalParam.playerspeed = Number(data[\"playerspeed\"]);\r\n        GlobalParam.matespeed = Number(data[\"friendspeed\"]);\r\n        GlobalParam.shootspeed = Number(data[\"bulletspeed\"]);\r\n        GlobalParam.sliderFactor = Number(data[\"sliderFactor\"]);\r\n        GlobalParam.playerMoveMaxX = Number(data[\"playerMoveMaxX\"]);\r\n        GlobalParam.playerRayLengthF = Number(data[\"playerRayLengthF\"]);\r\n        GlobalParam.playerRayLengthLR = Number(data[\"playerRayLengthLR\"]);\r\n        GlobalParam.bulletRayLength = Number(data[\"bulletRayLength\"]);\r\n        GlobalParam.bulletMaxDis = Number(data[\"bulletMaxDis\"]);\r\n        GlobalParam.barrierRoadLength = Number(data[\"barrierRoadLength\"]);\r\n        GlobalParam.barrierRoadAverageNum = Number(data[\"barrierRoadAverageNum\"]);\r\n        GlobalParam.hitmaxcount = Number(data[\"hitmaxcount\"]);\r\n        GlobalParam.boommaxcount = Number(data[\"boommaxcount\"]);\r\n        GlobalParam.blockLRmoveMaxDis = Number(data[\"blockLRmoveMaxDis\"]);\r\n        GlobalParam.arriveStandWidth = Number(data[\"arriveStandWidth\"]);\r\n        GlobalParam.enemySpeed = Number(data[\"enemySpeed\"]);\r\n    }\r\n    static get Cheat() {\r\n        return AppSetting.cheat == \"1\";\r\n    }\r\n    static get CheatTime() {\r\n        return Number(AppSetting.cheattime);\r\n    }\r\n    static get CheckScene() {\r\n        return AppSetting.checkscene == \"1\";\r\n    }\r\n}\r\n//# sourceMappingURL=UserInfoManager.js.map",
  "references": [
    "E:/LayaProject/gungang/src/Game/NetInfoManager.ts",
    "E:/LayaProject/gungang/src/Game/AssetManager.ts",
    "E:/LayaProject/gungang/src/Net/UserModel.ts",
    "E:/LayaProject/gungang/src/Game/PlayerManager.ts",
    "E:/LayaProject/gungang/src/Net/GlobalParam.ts"
  ],
  "map": "{\"version\":3,\"file\":\"UserInfoManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Game/UserInfoManager.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAQ,EAAC,SAAS,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,IAAO,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAG5B,IAAO,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;AAC1B,IAAO,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;AAExC,IAAO,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;AAG9B,MAAM,OAAO,eAAe;IAGjB,MAAM,CAAC,QAAQ;QAClB,aA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