09ccc5f3b1a4ba1126de573bd2c0b8b468767182 2.1 KB

123456789
  1. {
  2. "code": "import { EventManager, StageState } from \"../Tools/EventManager\";\r\nimport { ViewManager, ViewType } from \"../View/ViewManager\";\r\nexport class MainGame {\r\n constructor() {\r\n MainGame.ins = this;\r\n EventManager.StageOn(StageState.Lose, this, this.GameFailure);\r\n EventManager.StageOn(StageState.Win, this, this.GameWin);\r\n EventManager.StageOn(StageState.Revive, this, this.Revive);\r\n }\r\n static get Instance() {\r\n if (MainGame.ins) {\r\n return MainGame.ins;\r\n }\r\n else {\r\n return new MainGame();\r\n }\r\n }\r\n GameFailure() {\r\n ViewManager.Instance.ShowView(ViewType.CompleteView, 2);\r\n }\r\n GameWin() {\r\n ViewManager.Instance.ShowView(ViewType.CompleteView, 1);\r\n }\r\n Revive() {\r\n ViewManager.Instance.ShowView(ViewType.CompleteView, 3);\r\n }\r\n}\r\n//# sourceMappingURL=MainGame.js.map",
  3. "references": [
  4. "D:/LayaProject/ArcherWorrior/src/Tools/EventManager.ts",
  5. "D:/LayaProject/ArcherWorrior/src/View/ViewManager.ts"
  6. ],
  7. "map": "{\"version\":3,\"file\":\"MainGame.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Game/MainGame.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,OAAO,QAAQ;IAEjB;QACI,QAAQ,CAAC,GAAG,GAAG,IAAI,CAAC;QACpB,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAC,IAAI,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC5D,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,EAAC,IAAI,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvD,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,EAAC,IAAI,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IACM,MAAM,KAAK,QAAQ;QACtB,IAAG,QAAQ,CAAC,GAAG,EAAC;YACZ,OAAO,QAAQ,CAAC,GAAG,CAAA;SACtB;aACG;YACA,OAAO,IAAI,QAAQ,EAAE,CAAC;SACzB;IACL,CAAC;IACD,WAAW;QACP,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAC,CAAC,CAAC,CAAA;IAC1D,CAAC;IACD,OAAO;QACH,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAC,CAAC,CAAC,CAAA;IAC1D,CAAC;IACD,MAAM;QACF,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAC,CAAC,CAAC,CAAA;IAC1D,CAAC;CACJ\"}"
  8. }