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,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;iBACxB;YACL,CAAC,CAAA;YAED,6BAAwB,GAAG,GAAG,EAAE;gBAC5B,uCAA6B,CAAC,WAAW,EAAE,CAAC,sBAAsB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACzE,qBAAS,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;YAClD,CAAC,CAAA;YAED,+BAA0B,GAAG,GAAG,EAAE;gBAC9B,6DAA6B,CAAC,6CAA6C,CAAC,CAAC,CAAC,CAAC;gBAC/E,qBAAS,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;YAClD,CAAC,CAAA;YAtDG,IAAI,CAAC,UAAU,GAAG;gBACd,QAAQ,EAAE,OAAA,eAAG,CAAC,YAAY,EAAE,0CAAE,QAAQ,IAAG,EAAE;gBAC3C,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;gBACvD,6BAA6B,EAAE,IAAI,CAAC,6BAA6B;gBACjE,4BAA4B,EAAE,IAAI,CAAC,4BAA4B;gBAC/D,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;gBACvD,0BAA0B,EAAE,IAAI,CAAC,0BAA0B;aAC9D,CAAC;QACN,CAAC;QAED,MAAM;YACF,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxC,CAAC;KA0CJ,CAAA;IA5DU,uBAAI,GAAG,oBAAoB,CAAC;IADlB,kBAAkB;QADtC,qCAAY,CAAC,yBAAa,CAAC;OACP,kBAAkB,CA6DtC;IAAD,yBAAC;KAAA;kBA7DoB,kBAAkB","file":"","sourceRoot":"/","sourcesContent":["import { SDK } from \"simba-sdk\";\r\nimport { GameRecord, PlotManager } from \"../../../avg/AVG\";\r\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\r\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\r\nimport UnlockSpecialPlotEventManager from \"../../model/UnlockSpecialPlotEventManager\";\r\nimport { UnlockSpecialPlotModelManager } from \"../../model/UnlockSpecialPlotModelManager\";\r\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\r\nimport { DebugView, DebugViewProps, DebugViewType } from \"../view/type/DebugView\";\r\n\r\n@RegPresenter(DebugViewType)\r\nexport default class DebugViewPresenter extends Presenter<undefined, DebugView>{\r\n static uuid = \"DebugViewPresenter\";\r\n private _viewProps: DebugViewProps;\r\n\r\n constructor() {\r\n super();\r\n this._viewProps = {\r\n playerID: SDK.getLoginInfo()?.playerId + \"\",\r\n onCopyIdBtnClickCallback: this.onCopyIdBtnClickCallback,\r\n onClearRecordBtnClickCallback: this.onClearRecordBtnClickCallback,\r\n onCopyRecordBtnClickCallback: this.onCopyRecordBtnClickCallback,\r\n onYouHuaBtnClickCallback: this.onYouHuaBtnClickCallback,\r\n onShouBiaoBtnClickCallback: this.onShouBiaoBtnClickCallback,\r\n };\r\n }\r\n\r\n onOpen() {\r\n super.onOpen(undefined);\r\n this.view.setProps(this._viewProps);\r\n }\r\n\r\n onCopyIdBtnClickCallback = async () => {\r\n try {\r\n await SDK.setClipboardData(this._viewProps.playerID);\r\n UIManager.showToast(\"复制ID成功!\");\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n }\r\n\r\n onClearRecordBtnClickCallback = () => {\r\n try {\r\n PlotManager.stop();\r\n GameRecord.emptyRecords();\r\n UIManager.showToast(\"清除成功,1秒后退出游戏!\");\r\n setTimeout(() => {\r\n SDK.exit();\r\n }, 1000);\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n }\r\n\r\n onCopyRecordBtnClickCallback = async () => {\r\n try {\r\n await SDK.setClipboardData(GameRecord.getRecordAsString());\r\n UIManager.showToast(\"复制存档成功!\");\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n }\r\n\r\n onYouHuaBtnClickCallback = () => {\r\n UnlockSpecialPlotEventManager.getInstance().cdKeyUnlockSpecialPlot(1, 1);\r\n UIManager.showSceneToast(\"解锁了新的番外,记得去卧室查看哦~\");\r\n }\r\n\r\n onShouBiaoBtnClickCallback = () => {\r\n UnlockSpecialPlotModelManager.saveUnlockedSpecialPlotIdByItemIdToGameRecord(4);\r\n UIManager.showSceneToast(\"解锁了新的番外,记得去卧室查看哦~\");\r\n }\r\n}"]}