{
  "code": "export var EventState;\r\n(function (EventState) {\r\n    EventState[EventState[\"LoadComplete\"] = 0] = \"LoadComplete\";\r\n    EventState[EventState[\"SceneInit\"] = 1] = \"SceneInit\";\r\n    EventState[EventState[\"StageInit\"] = 2] = \"StageInit\";\r\n    EventState[EventState[\"ShowModel\"] = 3] = \"ShowModel\";\r\n})(EventState || (EventState = {}));\r\n;\r\nexport var StageState;\r\n(function (StageState) {\r\n    StageState[StageState[\"Win\"] = 0] = \"Win\";\r\n    StageState[StageState[\"Lose\"] = 1] = \"Lose\";\r\n    StageState[StageState[\"Start\"] = 2] = \"Start\";\r\n    StageState[StageState[\"BackMain\"] = 3] = \"BackMain\";\r\n    StageState[StageState[\"StageCreateComPlete\"] = 4] = \"StageCreateComPlete\";\r\n    StageState[StageState[\"Over\"] = 5] = \"Over\";\r\n    StageState[StageState[\"Pause\"] = 6] = \"Pause\";\r\n    StageState[StageState[\"Resume\"] = 7] = \"Resume\";\r\n    StageState[StageState[\"RefreshPro\"] = 8] = \"RefreshPro\";\r\n})(StageState || (StageState = {}));\r\n;\r\nexport var RoleState;\r\n(function (RoleState) {\r\n    RoleState[RoleState[\"Die\"] = 0] = \"Die\";\r\n    RoleState[RoleState[\"Sky\"] = 1] = \"Sky\";\r\n    RoleState[RoleState[\"OnLand\"] = 2] = \"OnLand\";\r\n    RoleState[RoleState[\"Land\"] = 3] = \"Land\";\r\n    RoleState[RoleState[\"Arriver\"] = 4] = \"Arriver\";\r\n})(RoleState || (RoleState = {}));\r\n;\r\nexport class DispatcherManager {\r\n    static EventOn(_mode, caller, fun, args = []) {\r\n        DispatcherManager.instance.on(EventState[_mode], caller, fun, args);\r\n    }\r\n    static EventOff(_mode, caller, fun, args = []) {\r\n        DispatcherManager.instance.off(EventState[_mode], caller, fun);\r\n    }\r\n    static EventTrigger(_mode, args = []) {\r\n        DispatcherManager.instance.event(EventState[_mode], args);\r\n    }\r\n    static StageOn(_mode, caller, fun, args = []) {\r\n        DispatcherManager.instance.on(StageState[_mode], caller, fun, args);\r\n    }\r\n    static StageOff(_mode, caller, fun, args = []) {\r\n        DispatcherManager.instance.off(StageState[_mode], caller, fun);\r\n    }\r\n    static StageTrigger(_mode, args = []) {\r\n        DispatcherManager.instance.event(StageState[_mode], args);\r\n    }\r\n}\r\nDispatcherManager.instance = new Laya.EventDispatcher();\r\n//# sourceMappingURL=EventManager.js.map",
  "references": [],
  "map": "{\"version\":3,\"file\":\"EventManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/GameUtils/EventManager.ts\"],\"names\":[],\"mappings\":\"AAAA,MAAM,CAAN,IAAY,UAAsD;AAAlE,WAAY,UAAU;IAAC,2DAAY,CAAA;IAAC,qDAAS,CAAA;IAAC,qDAAS,CAAA;IAAC,qDAAS,CAAA;AAAA,CAAC,EAAtD,UAAU,KAAV,UAAU,QAA4C;AAAA,CAAC;AACnE,MAAM,CAAN,IAAY,UAAoF;AAAhG,WAAY,UAAU;IAAC,yCAAG,CAAA;IAAC,2CAAI,CAAA;IAAC,6CAAK,CAAA;IAAC,mDAAQ,CAAA;IAAC,yEAAmB,CAAA;IAAC,2CAAI,CAAA;IAAC,6CAAK,CAAA;IAAC,+CAAM,CAAA;IAAC,uDAAU,CAAA;AAAA,CAAC,EAApF,UAAU,KAAV,UAAU,QAA0E;AAAA,CAAC;AACjG,MAAM,CAAN,IAAY,SAAsC;AAAlD,WAAY,SAAS;IAAC,uCAAG,CAAA;IAAC,uCAAG,CAAA;IAAC,6CAAM,CAAA;IAAC,yCAAI,CAAA;IAAC,+CAAO,CAAA;AAAA,CAAC,EAAtC,SAAS,KAAT,SAAS,QAA6B;AAAA,CAAC;AAEnD,MAAM,OAAO,iBAAiB;IAI1B,MAAM,CAAC,OAAO,CAAC,KAAgB,EAAC,MAAU,EAAC,GAAY,EAAC,IAAI,GAAG,EAAE;QAE7D,iBAAiB,CAAC,QAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAC,MAAM,EAAC,GAAG,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