{
  "code": "import MainView from \"./MainView\";\r\nimport InGameView from \"./InGameView\";\r\nimport SetView from \"./SetView\";\r\nimport RankView from \"./RankView\";\r\nimport SignView from \"./SignView\";\r\nimport LotteryView from \"./LotteryView\";\r\nimport AchievementView from \"./AchievementView\";\r\nimport FailureView from \"./FailureView\";\r\nimport WinView from \"./WinView\";\r\nimport ReviveView from \"./ReviveView\";\r\nexport var ViewType;\r\n(function (ViewType) {\r\n    ViewType[ViewType[\"MainView\"] = 0] = \"MainView\";\r\n    ViewType[ViewType[\"SignView\"] = 1] = \"SignView\";\r\n    ViewType[ViewType[\"SetView\"] = 2] = \"SetView\";\r\n    ViewType[ViewType[\"LotteryView\"] = 3] = \"LotteryView\";\r\n    ViewType[ViewType[\"InGameView\"] = 4] = \"InGameView\";\r\n    ViewType[ViewType[\"RankView\"] = 5] = \"RankView\";\r\n    ViewType[ViewType[\"AchievementView\"] = 6] = \"AchievementView\";\r\n    ViewType[ViewType[\"WinView\"] = 7] = \"WinView\";\r\n    ViewType[ViewType[\"FailureView\"] = 8] = \"FailureView\";\r\n    ViewType[ViewType[\"ReviveView\"] = 9] = \"ReviveView\";\r\n})(ViewType || (ViewType = {}));\r\n;\r\nexport class ViewManager {\r\n    constructor() {\r\n        this.ViewSprite = new Laya.Sprite();\r\n        this.OtherViewSprite = new Laya.Sprite();\r\n        ViewManager.ins = this;\r\n        Laya.stage.addChild(this.ViewSprite);\r\n        Laya.stage.addChild(this.OtherViewSprite);\r\n    }\r\n    static get Instance() {\r\n        if (ViewManager.ins) {\r\n            return ViewManager.ins;\r\n        }\r\n        else {\r\n            return new ViewManager();\r\n        }\r\n    }\r\n    ShowView(_viewtype, data = null) {\r\n        if (this.curView != null) {\r\n            this.curView.Close();\r\n            this.curView.destroy();\r\n            this.curView.removeSelf();\r\n        }\r\n        this.curView = this.CreateView(_viewtype);\r\n        this.curView.name = ViewType[_viewtype];\r\n        this.ViewSprite.addChild(this.curView);\r\n        this.curView.Show(data);\r\n    }\r\n    CloseView() {\r\n        if (this.curView != null) {\r\n            this.curView.Close();\r\n            this.curView.destroy();\r\n            this.curView.removeSelf();\r\n        }\r\n    }\r\n    CreateView(_viewtype) {\r\n        switch (_viewtype) {\r\n            case ViewType.MainView:\r\n                return new MainView();\r\n            case ViewType.InGameView:\r\n                return new InGameView();\r\n            case ViewType.SetView:\r\n                return new SetView();\r\n            case ViewType.RankView:\r\n                return new RankView();\r\n            case ViewType.SignView:\r\n                return new SignView();\r\n            case ViewType.LotteryView:\r\n                return new LotteryView();\r\n            case ViewType.AchievementView:\r\n                return new AchievementView();\r\n            case ViewType.FailureView:\r\n                return new FailureView();\r\n            case ViewType.WinView:\r\n                return new WinView();\r\n            case ViewType.ReviveView:\r\n                return new ReviveView();\r\n        }\r\n        return null;\r\n    }\r\n}\r\n//# sourceMappingURL=ViewManager.js.map",
  "references": [
    "E:/LayaProject/BlastToMerge/src/View/MainView.ts",
    "E:/LayaProject/BlastToMerge/src/View/InGameView.ts",
    "E:/LayaProject/BlastToMerge/src/View/SetView.ts",
    "E:/LayaProject/BlastToMerge/src/View/RankView.ts",
    "E:/LayaProject/BlastToMerge/src/View/SignView.ts",
    "E:/LayaProject/BlastToMerge/src/View/LotteryView.ts",
    "E:/LayaProject/BlastToMerge/src/View/AchievementView.ts",
    "E:/LayaProject/BlastToMerge/src/View/FailureView.ts",
    "E:/LayaProject/BlastToMerge/src/View/WinView.ts",
    "E:/LayaProject/BlastToMerge/src/View/ReviveView.ts"
  ],
  "map": "{\"version\":3,\"file\":\"ViewManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/View/ViewManager.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,WAAW,MAAM,eAA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