{
  "code": "import { GameTools } from \"../GameUtils/GameTools\";\r\nimport { GameManager } from \"../Manager/GameManager\";\r\nexport var AccountUser;\r\n(function (AccountUser) {\r\n    AccountUser[AccountUser[\"buyed_kun\"] = 0] = \"buyed_kun\";\r\n    AccountUser[AccountUser[\"diamond\"] = 1] = \"diamond\";\r\n    AccountUser[AccountUser[\"equip_themes\"] = 2] = \"equip_themes\";\r\n    AccountUser[AccountUser[\"favorite_times\"] = 3] = \"favorite_times\";\r\n    AccountUser[AccountUser[\"game_times\"] = 4] = \"game_times\";\r\n    AccountUser[AccountUser[\"get_themes\"] = 5] = \"get_themes\";\r\n    AccountUser[AccountUser[\"list_kun\"] = 6] = \"list_kun\";\r\n    AccountUser[AccountUser[\"moeny\"] = 7] = \"moeny\";\r\n    AccountUser[AccountUser[\"progress_themes\"] = 8] = \"progress_themes\";\r\n    AccountUser[AccountUser[\"revival\"] = 9] = \"revival\";\r\n    AccountUser[AccountUser[\"stage\"] = 10] = \"stage\";\r\n})(AccountUser || (AccountUser = {}));\r\nexport class PlayerData {\r\n    constructor(_token, _config, _appSetting, _user, _userbase, _useInvite, _user_stage = null, _user_sign, _user_achievement, lottery) {\r\n        this.openid = \"\";\r\n        this.userId = \"\";\r\n        this.zhengshu = _token;\r\n        this.netzheshe = _appSetting;\r\n        this.account = _user;\r\n        this.accountssss = _userbase;\r\n        this.qiandao = _user_sign;\r\n        this.renwu = _user_achievement;\r\n        this.userId = this.account[\"user_id\"];\r\n        this.openid = this.accountssss[\"openid\"];\r\n        this.m_invite = _useInvite;\r\n        this.lottery = lottery;\r\n        console.log(\"user_id:\" + this.userId);\r\n    }\r\n    GainCollocation(_type) {\r\n        return this.peizhis[_type];\r\n    }\r\n    GainAccount(_type) {\r\n        return this.account[_type];\r\n    }\r\n    get fenxiang() {\r\n        return this.netzheshe[\"share\"] == \"1\";\r\n    }\r\n    get CheckScene() {\r\n        return this.netzheshe[\"checkscene\"] == \"1\";\r\n    }\r\n    get Cheat() {\r\n        return this.netzheshe[\"cheat\"] == \"1\";\r\n    }\r\n    get Banner() {\r\n        return this.netzheshe[\"Banner\"] == \"1\";\r\n    }\r\n    get wudaoshijian() {\r\n        return Number(this.netzheshe[\"wudaoshijian\"]);\r\n    }\r\n    LevelReward(win) {\r\n        let stage = this.STAGE;\r\n        let levelinfo = this.GainCollocation(\"mission\");\r\n        for (var key in levelinfo) {\r\n            let item = levelinfo[key];\r\n            if (item.ID == stage) {\r\n                if (win) {\r\n                    return Number(item.win);\r\n                }\r\n                else {\r\n                    return Number(item.lose);\r\n                }\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n    get LevelDirection() {\r\n        let stage = this.STAGE;\r\n        let levelinfo = this.GainCollocation(\"mission\");\r\n        for (var key in levelinfo) {\r\n            let item = levelinfo[key];\r\n            if (item.ID == stage) {\r\n                return Number(item.direction);\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n    get STAGE() {\r\n        if (GameManager.STAGE == -1) {\r\n            GameManager.STAGE = Number(this.GainAccount(\"stage\")) + 1;\r\n            if (GameManager.STAGE > 30) {\r\n                GameManager.STAGE = GameTools.RandomANumber(1, 30);\r\n            }\r\n        }\r\n        return GameManager.STAGE;\r\n    }\r\n    GetUser(_type) {\r\n        var type = AccountUser[_type];\r\n        return this.account[type];\r\n    }\r\n    HasGun(_id) {\r\n        var data = this.GainAccount(\"get_themes\");\r\n        for (var i = 0; i < data.length; i++) {\r\n            var hd = data[i];\r\n            if (_id == hd) {\r\n                return true;\r\n            }\r\n        }\r\n        return false;\r\n    }\r\n    GetProgress(_id) {\r\n        var config = this.account[\"progress_themes\"];\r\n        var progress = config[_id] ? config[_id] : 0;\r\n        return progress;\r\n    }\r\n    get ShareTxt() {\r\n        return this.netzheshe[\"sharecontent\"];\r\n    }\r\n}\r\n//# sourceMappingURL=PlayerData.js.map",
  "references": [
    "E:/LayaProject/DanceLine/RubikCube/src/NetWork/AccountManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/GameUtils/GameTools.ts",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