{
  "code": "import { ui } from \"../ui/layaMaxUI\";\r\nimport { ViewManager, ViewType } from \"./ViewManager\";\r\nimport { ServerManager, BlastToMerge } from \"../Net/ServerManager\";\r\nimport { AccountManager } from \"../Net/AccountManager\";\r\nimport { EventManager, StageMode } from \"../Tool/EventManager\";\r\nimport { GameControl } from \"../Main/GameControl\";\r\nimport { GameManager } from \"../Main/GameManager\";\r\nexport default class MainView extends ui.MainSceneUI {\r\n    constructor() {\r\n        super();\r\n        this.STAGE = 0;\r\n        new GameControl();\r\n        new GameManager();\r\n    }\r\n    static get Instance() {\r\n        if (MainView.ins) {\r\n            return MainView.ins;\r\n        }\r\n        else {\r\n            return new MainView();\r\n        }\r\n    }\r\n    Show() {\r\n        let stage = AccountManager.Instance.curplayerData.GainAccount(\"stage\");\r\n        this.STAGE = Number(stage);\r\n        this.StartBtn.clickHandler = Laya.Handler.create(this, this.ClickStart);\r\n        this.RankBtn.clickHandler = Laya.Handler.create(this, this.ClickRank);\r\n        this.SignBtn.clickHandler = Laya.Handler.create(this, this.ClickSign);\r\n        this.LotteryBtn.clickHandler = Laya.Handler.create(this, this.ClickLottery);\r\n        this.SetBtn.clickHandler = Laya.Handler.create(this, this.ClickSet);\r\n        this.height = Laya.stage.height;\r\n        this.BG.height = Laya.stage.height;\r\n        Laya.stage.on(Laya.Event.RESIZE, this, () => {\r\n            this.height = Laya.stage.height;\r\n            this.BG.height = Laya.stage.height;\r\n        });\r\n    }\r\n    ClickStart() {\r\n        var agrs = [{ \"t\": AccountManager.Instance.ServerTime.toString() }];\r\n        ServerManager.Instance.SendHttp(BlastToMerge.KaiShi, agrs, Laya.Handler.create(this, this.GameStart), null);\r\n    }\r\n    GameStart(_data) {\r\n        GameManager.Instance.play_id = _data.play_id;\r\n        EventManager.StageTrigger(StageMode.Start);\r\n    }\r\n    ClickRank() {\r\n        ViewManager.Instance.ShowView(ViewType.RankView);\r\n    }\r\n    ClickLottery() {\r\n        ViewManager.Instance.ShowView(ViewType.LotteryView);\r\n    }\r\n    ClickSign() {\r\n        ViewManager.Instance.ShowView(ViewType.SignView);\r\n    }\r\n    ClickSet() {\r\n        ViewManager.Instance.ShowView(ViewType.SetView);\r\n    }\r\n    Close() {\r\n    }\r\n}\r\n//# sourceMappingURL=MainView.js.map",
  "references": [
    "C:/Users/Administrator/Desktop/2048/2048_laya/src/ui/layaMaxUI.ts",
    "C:/Users/Administrator/Desktop/2048/2048_laya/src/View/ViewManager.ts",
    "C:/Users/Administrator/Desktop/2048/2048_laya/src/Net/ServerManager.ts",
    "C:/Users/Administrator/Desktop/2048/2048_laya/src/Net/AccountManager.ts",
    "C:/Users/Administrator/Desktop/2048/2048_laya/src/Tool/EventManager.ts",
    "C:/Users/Administrator/Desktop/2048/2048_laya/src/Main/GameControl.ts",
    "C:/Users/Administrator/Desktop/2048/2048_laya/src/Main/GameManager.ts"
  ],
  "map": "{\"version\":3,\"file\":\"MainView.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/View/MainView.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAM,WAAW,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,EAAE,CAAC,WAAW;IAOhD;QACI,KAAK,EAAE,CAAC;QAHL,UAAK,GAAU,CAAC,CAAC;QAIpB,IAAI,WAAW,EAAE,CAAC;QAClB,IAAI,WAAW,EAAE,CAAC;IACtB,CAAC;IACM,MAAM,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