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AW,CAAC,uCAAe,CAAC,YAAY,CAAC,CAAC;qBACpD;oBACD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;iBACnC;YACL,CAAC,CAAA;QAKL,CAAC;QArCG,MAAM;YACF,IAAI,CAAC,qBAAqB,EAAE,CAAC;QACjC,CAAC;QAED,qBAAqB;YACjB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,yBAAW,CAAC,qBAAqB,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACtF,CAAC;QAED,KAAK;QAEL,CAAC;QAwBD,gBAAgB;YACZ,yBAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChD,CAAC;KACJ,CAAA;IAzCG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;+DACzD;IAHxB,sBAAsB;QAD1C,OAAO;OACa,sBAAsB,CA4C1C;IAAD,6BAAC;KAAA;kBA5CoB,sBAAsB","file":"","sourceRoot":"/","sourcesContent":["import { EventCenter } from \"../event/EventCenter\";\nimport { CompositeDisposable } from \"../event/EventKit\";\nimport { CCCooperationItem } from \"./CCCooperationItem\";\nimport CooperationDataCenter, { SubGameLocation } from \"./CooperationDataCenter\";\nimport GameCenter from \"./GameCenter\";\nimport CCGameCenterNodeFactory from \"./CCGameCenterNodeFactory\";\nimport { DummyNode } from \"../../common/CCDummyObjects\";\n\n/**\n * 朋友圈\n */\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class CCGameCenterMomentItem extends cc.Component {\n\n @property({ type: cc.Node, visible: true, displayName: \"scrollview内容节点\", tooltip: \"contentNode\" })\n private contentNode: cc.Node = DummyNode;\n\n private _disposable: CompositeDisposable = new CompositeDisposable;\n\n onLoad() {\n this.registerEventListener();\n }\n\n registerEventListener() {\n this._disposable.add(EventCenter.REFRESH_SUB_GAME_LIST.on(this.onRefreshContent));\n }\n\n start() {\n\n }\n\n onRefreshContent = () => {\n if (!this.contentNode) {\n return;\n }\n let list = CooperationDataCenter.getInstance().getCooperationItemDataModelList();\n this.contentNode.removeAllChildren(true);\n let isRelease: boolean = GameCenter.getInstance().getIsRelease();\n for (let i = 0; i < list.length; i++) {\n let node = CCGameCenterNodeFactory.getInstance().getSubGameNode();\n if (!node) {\n break;\n }\n let script: CCCooperationItem = node.getComponent(CCCooperationItem);\n if (script) {\n script.setRelease(isRelease);\n script.bindData(list[i]);\n script.setLocation(SubGameLocation.MomentCenter);\n }\n this.contentNode.addChild(node);\n }\n }\n\n onQuickPlayClick() {\n EventCenter.QUICK_START_SUB_GAME.emit(true);\n }\n}\n"]}