index.079f9.js 177 KB

1
  1. window.__require=function e(t,n,o){function i(s,r){if(!n[s]){if(!t[s]){var u=s.split("/");if(u=u[u.length-1],!t[u]){var c="function"==typeof __require&&__require;if(!r&&c)return c(u,!0);if(a)return a(u,!0);throw new Error("Cannot find module '"+s+"'")}s=u}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){return i(t[s][1][e]||e)},l,l.exports,e,t,n,o)}return n[s].exports}for(var a="function"==typeof __require&&__require,s=0;s<o.length;s++)i(o[s]);return i}({AStar:[function(e,t,n){"use strict";cc._RF.push(t,"e9032kqxN5HYpx90Bb/FtZC","AStar"),Object.defineProperty(n,"__esModule",{value:!0}),n.AStar=n.AStar_Node=n.AStar_Grid=void 0;var o=function(){function e(e,t){this._numCols=e,this._numRows=t,this._nodes=[];for(var n=0;n<e;n++){this._nodes[n]=[];for(var o=0;o<t;o++)this._nodes[n][o]=new i(n,o)}}return e.prototype.getNode=function(e,t){return this._nodes[e][t]},e.prototype.setEndNode=function(e,t){this._endNode=this._nodes[e][t]},e.prototype.setStartNode=function(e,t){this._startNode=this._nodes[e][t]},e.prototype.setWalkable=function(e,t,n){this._nodes[e][t].walkable=n},Object.defineProperty(e.prototype,"endNode",{get:function(){return this._endNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numCols",{get:function(){return this._numCols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numRows",{get:function(){return this._numRows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startNode",{get:function(){return this._startNode},enumerable:!1,configurable:!0}),e}();n.AStar_Grid=o;var i=function(e,t){this.walkable=!0,this.costMultiplier=1,this.x=e,this.y=t};n.AStar_Node=i;var a=function(){function e(){this._straightCost=1,this._diagCost=Math.SQRT2,this._heuristic=this.diagonal}return e.prototype.findPath=function(e){return this._grid=e,this._open=[],this._closed=[],this._startNode=this._grid.startNode,this._endNode=this._grid.endNode,this._startNode.g=0,this._startNode.h=this._heuristic(this._startNode),this._startNode.f=this._startNode.g+this._startNode.h,this.search()},e.prototype.search=function(){for(var e=this._startNode;e!=this._endNode;){for(var t=Math.max(0,e.x-1),n=Math.min(this._grid.numCols-1,e.x+1),o=Math.max(0,e.y-1),i=Math.min(this._grid.numRows-1,e.y+1),a=t;a<=n;a++)for(var s=o;s<=i;s++)if(a==e.x||s==e.y){var r=this._grid.getNode(a,s);if(r!=e&&r.walkable&&this._grid.getNode(e.x,r.y).walkable&&this._grid.getNode(r.x,e.y).walkable){var u=this._straightCost;e.x!=r.x&&e.y!=r.y&&(u=this._diagCost);var c=e.g+u*r.costMultiplier,l=this._heuristic(r),f=c+l;this.isOpen(r)||this.isClosed(r)?r.f>f&&(r.f=f,r.g=c,r.h=l,r.parent=e):(r.f=f,r.g=c,r.h=l,r.parent=e,this._open.push(r))}}for(var p=0;p<this._open.length;p++);if(this._closed.push(e),0==this._open.length)return console.log("AStar >> no path found"),!1;for(var d=this._open.length,h=0;h<d;h++)for(var m=h+1;m<d;m++)if(this._open[h].f>this._open[m].f){var v=this._open[h];this._open[h]=this._open[m],this._open[m]=v}e=this._open.shift()}return this.buildPath(),!0},e.prototype.buildPath=function(){this._path=new Array;var e=this._endNode;for(this._path.push(e);e!=this._startNode;)e=e.parent,this._path.unshift(e)},Object.defineProperty(e.prototype,"path",{get:function(){return this._path},enumerable:!1,configurable:!0}),e.prototype.isOpen=function(e){for(var t=0;t<this._open.length;t++)if(this._open[t]==e)return!0;return!1},e.prototype.isClosed=function(e){for(var t=0;t<this._closed.length;t++)if(this._closed[t]==e)return!0;return!1},e.prototype.manhattan=function(e){return Math.abs(e.x-this._endNode.x)*this._straightCost+Math.abs(e.y+this._endNode.y)*this._straightCost},e.prototype.euclidian=function(e){var t=e.x-this._endNode.x,n=e.y-this._endNode.y;return Math.sqrt(t*t+n*n)*this._straightCost},e.prototype.diagonal=function(e){var t=Math.abs(e.x-this._endNode.x),n=Math.abs(e.y-this._endNode.y),o=Math.min(t,n),i=t+n;return this._diagCost*o+this._straightCost*(i-2*o)},Object.defineProperty(e.prototype,"visited",{get:function(){return this._closed.concat(this._open)},enumerable:!1,configurable:!0}),e}();n.AStar=a,cc._RF.pop()},{}],AudioConfig:[function(e,t,n){"use strict";cc._RF.push(t,"15d67TTz19DoqtwWcUIHdjt","AudioConfig"),Object.defineProperty(n,"__esModule",{value:!0}),cc._RF.pop()},{}],AudioEventName:[function(e,t,n){"use strict";cc._RF.push(t,"853ecITZFVA7a1LpT1CRwVP","AudioEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Audio_PlayMusic="Audio_PlayAudio",this.Audio_PauseMusic="Audio_PauseAudio",this.Audio_ResumeMusic="Audio_ResumeAudio",this.Audio_StopMusic="Audio_StopAudio",this.Audio_PlaySound="Audio_PlaySound",this.Audio_PauseSound="Audio_PauseSound",this.Audio_ResumeSound="Audio_ResumeSound",this.Audio_StopSound="Audio_StopSound"},cc._RF.pop()},{}],AudioManager:[function(e,t,n){"use strict";cc._RF.push(t,"e4236NRhQdD5KH0OQjZH3vQ","AudioManager");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../Basic/BasicManager"),s=e("../Data/CommonDataType"),r=e("../Event/EventManager"),u=e("../Event/EventName"),c=e("../Resources/JsonResources"),l=e("../Time/TimeManager"),f=e("../Tool/Tool"),p=function(e){function t(){var t=e.call(this)||this;return f.default.log("\u751f\u6210\u97f3\u9891\u7ba1\u7406\u5668"),t.audioIDs=new Map,t.currentAudioIDs=new Map,r.default.onEvent(u.EventName.Phone.Phone_Hide,t,function(){cc.audioEngine.pauseAll()}),r.default.onEvent(u.EventName.Phone.Phone_Show,t,function(){cc.audioEngine.resumeAll()}),r.default.onEvent(u.EventName.Audio.Audio_PauseMusic,t,function(){cc.audioEngine.pauseMusic()}),r.default.onEvent(u.EventName.Audio.Audio_ResumeMusic,t,function(){cc.audioEngine.resumeMusic()}),r.default.onEvent(u.EventName.Audio.Audio_PauseSound,t,function(e){null!=e?t.audioIDs.get(e)&&t.audioIDs.get(e).pause():t.currentAudioIDs.forEach(function(e){e.pause()})}),r.default.onEvent(u.EventName.Audio.Audio_ResumeSound,t,function(e){if(null!=e){var n=t.audioIDs.get(e);null!=n&&(0==n.getCurrentTime()?n.play():n.resume())}else t.currentAudioIDs.forEach(function(e){0==e.getCurrentTime()?e.play():e.resume()})}),r.default.onEvent(u.EventName.Audio.Audio_PlayMusic,t,t.onPlayMusic),r.default.onEvent(u.EventName.Audio.Audio_StopMusic,t,t.onStopMusic),r.default.onEvent(u.EventName.Audio.Audio_PlaySound,t,t.onPlaySound),r.default.onEvent(u.EventName.Audio.Audio_StopSound,t,t.onStopSound),t}return i(t,e),t.prototype.onPlayMusic=function(e){var t=this;null==this.res&&(this.res=c.default.getResources(s._EJsonRes.Audio)),this.bgm!=e?(this.bgm=e,cc.assetManager.loadBundle("res/audio",function(n,o){o.load(e,cc.AudioClip,function(n,i){var a;null!=t.audioIDs&&null!=i&&(1==t.audioIDs.has(e)?a=t.audioIDs.get(e):((a=new cc.AudioSource).loop=null==t.res[e]||t.res[e].loop,a.clip=o.get(e),a.volume=null!=t.res[e]?t.res[e].volume:1,t.audioIDs.set(e,a)),a.play())})})):1==this.audioIDs.has(e)&&this.audioIDs.get(e).play()},t.prototype.onStopMusic=function(e){1==this.audioIDs.has(e)&&this.audioIDs.get(e).stop()},t.prototype.onPlaySound=function(e){var t=this;null==this.res&&(this.res=c.default.getResources(s._EJsonRes.Audio)),null!=this.res&&cc.assetManager.loadBundle("res/audio",function(n,o){o.load(e.url,cc.AudioClip,function(n,i){var a;null!=t.audioIDs&&null!=i&&(1==t.audioIDs.has(e.url)?a=t.audioIDs.get(e.url):((a=cc.director.getScene().getChildByName("Canvas").addComponent(cc.AudioSource)).loop=null!=t.res[e.url]&&t.res[e.url].loop,a.clip=o.get(e.url),a.volume=null!=t.res[e.url]?t.res[e.url].volume:1,t.audioIDs.set(e.url,a),t.currentAudioIDs.set(e.url,a)),a.play(),l.default.scheduleOnce(t,function(){t.currentAudioIDs.delete(e.url),e.callback&&e.callback()},i.duration))})})},t.prototype.onStopSound=function(e){1==this.audioIDs.has(e)&&(this.currentAudioIDs.delete(e),this.audioIDs.get(e).stop())},t.prototype._destroy=function(){f.default.log("\u9500\u6bc1\u97f3\u9891\u7ba1\u7406\u5668"),cc.audioEngine.uncacheAll(),this.audioIDs=null,this.res=null,e.prototype._destroy.call(this)},t}(a.default);n.default=p,cc._RF.pop()},{"../Basic/BasicManager":"BasicManager","../Data/CommonDataType":"CommonDataType","../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Resources/JsonResources":"JsonResources","../Time/TimeManager":"TimeManager","../Tool/Tool":"Tool"}],AudioResData:[function(e,t,n){"use strict";cc._RF.push(t,"68e5dkI3ahBdIMRXRiDA0r3","AudioResData"),Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.ClickScreen="ClickScreen",e.ClickButton="ClickButton",e}();n.default=o,cc._RF.pop()},{}],AudioResources:[function(e,t,n){"use strict";cc._RF.push(t,"c583c+RqG5DOK/+yUrStuV6","AudioResources"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../Event/EventName"),i=e("../Event/EventManager"),a=e("../Tool/Tool"),s=function(){function e(){}return e.loadAudioResources=function(e,t,n,s){var r=this;a.default.log("\u52a0\u8f7d\u97f3\u9891\u8d44\u6e90");var u=function(){a.default.log(r.resources),a.default.log("\u52a0\u8f7d\u5b8c\u6bd5"),a.default.log(""),null==s?i.default.sendEvent(o.EventName.Res.Res_LoadComplete):s()};0==e.length?u():cc.assetManager.loadBundle("res/audio",function(s,c){r.bundle=c,c.load(e,cc.Asset,function(e,a){i.default.sendEvent(o.EventName.Res.Res_LoadProgress,e/a*t+n)},function(e,t){for(var n in a.default.log(e),t)r.resources.set(t[n].name,t[n]);u()})})},e.getResources=function(e){var t=e;return 1==e.includes("/")&&(t=e.substring(e.indexOf("/")+1)),null!=this.resources.get(t)?this.resources.get(t):this.bundle.get(t)},e.resources=new Map,e.bundle=null,e}();n.default=s,cc._RF.pop()},{"../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Tool/Tool":"Tool"}],BasicEvent:[function(e,t,n){"use strict";cc._RF.push(t,"a446cgWwLBJh48U6XM0/ATP","BasicEvent"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){},cc._RF.pop()},{}],BasicManager:[function(e,t,n){"use strict";cc._RF.push(t,"7abf9JR4BlL8Z5tYczMsfjm","BasicManager");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(){var t=e.call(this)||this;return t.updateComponents=new Map,t}return i(t,e),t.prototype._update=function(e){var t=this;this.updateComponents.forEach(function(n,o){var i=n.size;n.forEach(function(t,o){1==t.isUpdate&&(0==t.isValid||1==t.isDestroy?n.delete(o):null!=t&&1==t.enabled&&t._update(e))}),i!=n.size&&(n.size>0?t.updateComponents.set(o,n):t.updateComponents.delete(o))})},t}(e("./BasicObject").default);n.default=a,cc._RF.pop()},{"./BasicObject":"BasicObject"}],BasicObject:[function(e,t,n){"use strict";cc._RF.push(t,"7af4aCbHdxC5aCe3/oe7Nyw","BasicObject");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../Tool/Tool/CreateID"),s=e("../Event/EventManager"),r=e("../Tool/Tool"),u=function(e){function t(){var t=e.call(this)||this;return t._id=a.default.createID()+"",t._components=new Array,t._customData={},t._isEnabled=!0,t._isUpdate=!1,t._isDestroy=!1,t}return i(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"customData",{get:function(){return this._customData},set:function(e){this._customData=r.default.dataAllCover(this._customData,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){this._isEnabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdate",{get:function(){return this._isUpdate},set:function(e){this._isUpdate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDestroy",{get:function(){return this._isDestroy},enumerable:!1,configurable:!0}),t.prototype.addComponentIntance=function(e){return e instanceof t&&(this._components.push(e),e._parent=this,e.setNode(this.node),e.init()),e},t.prototype.removeComponentIntance=function(e,t){for(var n in void 0===t&&(t=!0),this._components)if(this._components[n].id==e.id){e._parent=null,e.setNode(null),1==t&&e._destroy(),this._components.splice(parseInt(n),1);break}},t.prototype._getComponent=function(e){for(var t in this._components)if(this._components[t]instanceof e)return this._components[t];return null},t.prototype._removeComponent=function(e){for(var t in this._components){var n=this._components[t];if(n instanceof e)return this._components.splice(parseInt(t),1),n}return null},t.prototype._getComponents=function(e){var t=[];for(var n in this._components)this._components[n]instanceof e&&t.push(this._components[n]);return t},t.prototype.setNode=function(e){for(var t in this.node=e,this._components)null==this._components[t].node&&(this._components[t].node=e)},t.prototype.init=function(){},t.prototype._update=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o in this._components)1==this._components[o].isUpdate&&(e=this._components[o])._update.apply(e,t)},t.prototype._destroy=function(){this.onDestroy(),null!=this.node&&this.destroy()},t.prototype.onDestroy=function(){if(1!=this._isDestroy){for(var e in this._components)this._components[e]._destroy();this._components=[],this._isEnabled=!1,this._isDestroy=!0,this.unscheduleAllCallbacks(),s.default.offEventByTarget(this)}},t}(cc.Component);n.default=u,cc._RF.pop()},{"../Event/EventManager":"EventManager","../Tool/Tool":"Tool","../Tool/Tool/CreateID":"CreateID"}],BasicTreeBehaviorNode:[function(e,t,n){"use strict";cc._RF.push(t,"42407n883xE0qoh7HvW4d9T","BasicTreeBehaviorNode");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],s=0,r=a.length;s<r;s++,i++)o[i]=a[s];return o};Object.defineProperty(n,"__esModule",{value:!0});var s=e("../Data/CommonDataType"),r=function(e){function t(t,n,o){var i=e.call(this)||this;return i.node=t,i.behaviorType=n,i._precondition=o,i.state=s._ECommonState.None,null!=i._precondition&&i.addComponentIntance(i._precondition),i}return i(t,e),Object.defineProperty(t.prototype,"precondition",{get:function(){return this._precondition},enumerable:!1,configurable:!0}),t.prototype.getPreconditionResule=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return null==this._precondition?s._ECommonState.Success:(t=this._precondition).enter.apply(t,a([e],n))},t.prototype.enter=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o in this.state=s._ECommonState.Runing,this._enter.apply(this,t),this._components)this._components[o].enter&&(e=this._components[o]).enter.apply(e,t)},t.prototype.leave=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o in this.state=s._ECommonState.None,this._leave.apply(this,t),this._components)this._components[o].leave&&(e=this._components[o]).leave.apply(e,t)},t.prototype.enterFail=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o in this._enterFail.apply(this,t),this._components)this._components[o].enterFail&&(e=this._components[o]).enterFail.apply(e,t)},t.prototype.enterAgain=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o in this._enterAgain.apply(this,t),this._components)this._components[o].enterAgain&&(e=this._components[o]).enterAgain.apply(e,t)},t.prototype._update=function(t){this.state==s._ECommonState.Runing&&e.prototype._update.call(this,t)},t}(e("./BasicObject").default);n.default=r,cc._RF.pop()},{"../Data/CommonDataType":"CommonDataType","./BasicObject":"BasicObject"}],BasicTreeControlNode:[function(e,t,n){"use strict";cc._RF.push(t,"19b38FvGj1NHY6yYYMoBAFV","BasicTreeControlNode");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],s=0,r=a.length;s<r;s++,i++)o[i]=a[s];return o};Object.defineProperty(n,"__esModule",{value:!0});var s=e("../Data/CommonDataType"),r=e("../Event/EventName"),u=e("../Event/EventManager"),c=e("../Tool/Tool"),l=function(e){function t(t,n,o,i,a,s){var c=e.call(this,t,n,s)||this;return c._id=o,c.childs=a||new Map,c._currentChilds=new Array,c.behaviorTreeConfig=i,c.childs.forEach(function(e,t){e.id=c.id,e.precondition&&(e.precondition.priority=c.behaviorTreeConfig.priority[t])}),c.childs.forEach(function(e){c.addComponentIntance(e)}),u.default.onEvent(r.EventName.Behavior.Behavior_SetBehaviorData,c,c.onSetBehaviorData),u.default.onEvent(r.EventName.Behavior.Behavior_SetPreconditionData,c,c.onPreconditionData),u.default.onEvent(r.EventName.Behavior.Behavior_GetBehaviorData,c,c.onGetBehaviorData),u.default.onEvent(r.EventName.Behavior.Behavior_EnterBehavior,c,c.enter),u.default.onEvent(r.EventName.Behavior.Behavior_ForceEnterBehavior,c,c.forceEnter),u.default.onEvent(r.EventName.Behavior.Behavior_LeaveBehavior,c,c.leave),u.default.onEvent(r.EventName.Behavior.Behavior_ForceLeaveBehavior,c,c.forceLeave),c}return i(t,e),t.prototype._update=function(e){for(var t in this._currentChilds)1!=this.childs.get(this.currentChilds[t]).isEnabled&&1!=this.childs.get(this.currentChilds[t]).enabled||this.childs.get(this.currentChilds[t])._update(e)},Object.defineProperty(t.prototype,"currentChilds",{get:function(){return[].concat(this._currentChilds)},enumerable:!1,configurable:!0}),t.prototype.isCurrentChild=function(e){return this._currentChilds.includes(e)},t.prototype.setChild=function(e,t){var n=this.childs.get(e);null!=n&&n._destroy(),this.childs.set(e,t)},t.prototype.getChild=function(e){return this.childs.get(e)},t.prototype.onSetBehaviorData=function(e,t){null!=this.getChild(e)&&(this.getChild(e).customData=c.default.dataAllCover(this.getChild(e).customData,t))},t.prototype.onPreconditionData=function(e,t){null!=this.getChild(e)&&(this.getChild(e).precondition.customData=c.default.dataAllCover(this.getChild(e).precondition.customData,t))},t.prototype.onGetBehaviorData=function(e,t){this.id==e&&t(this._currentChilds)},t.prototype.isEnter=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(0==this.childs.has(e))return s._ECommonState.Fail;var i=s._ECommonState.None;if(0==this._currentChilds.length||1==this._currentChilds.includes(e))i=(t=this.childs.get(e)).getPreconditionResule.apply(t,a([e],n))==s._ECommonState.Success?s._ECommonState.Success:s._ECommonState.Fail;else{var r=void 0;for(var u in this._currentChilds){if(null==(r=this.childs.get(this._currentChilds[u]))||r.getPreconditionResule.apply(r,a([e],n))!=s._ECommonState.Success){i=s._ECommonState.Fail;break}i=s._ECommonState.Success}}return i},t.prototype.forceEnter=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._enter.apply(this,a([e],t))},t.prototype.forceLeave=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._leave.apply(this,a([e],t))},t.prototype.enter=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(0!=this.childs.has(e))if(this.isEnter.apply(this,a([e],t))==s._ECommonState.Success)this._enter.apply(this,a([e],t));else{var o=this.childs.get(e);o.enterFail.apply(o,t)}},t.prototype._enter=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(0!=this.childs.has(e)){var o=this.childs.get(e);1==this._currentChilds.includes(e)?o.enterAgain.apply(o,t):(this._currentChilds.push(e),this.leaveMutexChild(e),o.enter.apply(o,t))}},t.prototype._leave=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(0!=this.childs.has(e)){var o=this.childs.get(e);o.leave.apply(o,t);var i=this._currentChilds.indexOf(e);-1!=i&&this._currentChilds.splice(i,1)}},t.prototype.leaveMutexChild=function(e){var t=this;if(null!=this.behaviorTreeConfig){var n=this.behaviorTreeConfig.mutexChild[e],o=this.behaviorTreeConfig.compatibilityChild[e];if(null==n&&null==o)this.currentChilds.forEach(function(n){n!=e&&t._leave(n)});else if(null!=n)for(var i=0;i<this.currentChilds.length;i++)this.currentChilds[i]!=e&&1==n.includes(this.currentChilds[i])&&1==this.isCurrentChild(this.currentChilds[i])&&(this._leave(this.currentChilds[i]),i--);else if(null!=o)for(i=0;i<this.currentChilds.length;i++)this.currentChilds[i]!=e&&0==o.includes(this.currentChilds[i])&&1==this.isCurrentChild(this.currentChilds[i])&&(this._leave(this.currentChilds[i]),i--)}},t}(e("./BasicTreeBehaviorNode").default);n.default=l,cc._RF.pop()},{"../Data/CommonDataType":"CommonDataType","../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Tool/Tool":"Tool","./BasicTreeBehaviorNode":"BasicTreeBehaviorNode"}],BasicTreePreconditionNode:[function(e,t,n){"use strict";cc._RF.push(t,"b8ea51XEyFBp79PNIF35MZp","BasicTreePreconditionNode");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],s=0,r=a.length;s<r;s++,i++)o[i]=a[s];return o};Object.defineProperty(n,"__esModule",{value:!0});var s=e("../Data/CommonDataType"),r=function(e){function t(t,n){void 0===t&&(t=0);var o=e.call(this)||this;return o._priority=t,null!=n&&(o._precondition=n,o._precondition.priority=o._priority,o.addComponentIntance(o._precondition)),o}return i(t,e),Object.defineProperty(t.prototype,"priority",{get:function(){return this._priority},set:function(e){this._priority=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precondition",{get:function(){return this._precondition},set:function(e){null!=this._precondition&&this.removeComponentIntance(this._precondition,!0),this._precondition=e,this.addComponentIntance(this._precondition)},enumerable:!1,configurable:!0}),t.prototype.getPreconditionResule=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return null==this._precondition?s._ECommonState.Success:(t=this._precondition).enter.apply(t,a([e],n))},t.prototype.enter=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.parent.parent,i=[];null!=o.behaviorTreeConfig&&(i=o.behaviorTreeConfig.compatibilityChild[this.parent.behaviorType]);var r=o.getChild(e);return null==r?s._ECommonState.Success:(this.priority<=r.precondition.priority||null!=i&&1==i.includes(e))&&this.getPreconditionResule.apply(this,a([e],t))==s._ECommonState.Success&&this._enter.apply(this,a([e],t))==s._ECommonState.Success?s._ECommonState.Success:s._ECommonState.Fail},t}(e("./BasicObject").default);n.default=r,cc._RF.pop()},{"../Data/CommonDataType":"CommonDataType","./BasicObject":"BasicObject"}],BasicView:[function(e,t,n){"use strict";cc._RF.push(t,"80d5emaycBP+Kjmieqa5osY","BasicView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../Event/EventManager"),s=e("../Event/EventName"),r=e("../Tool/Tool"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.initView=function(e,t){this.fgui=e,this.customData=t,this.resize(),this._initView(),a.default.onEvent(s.EventName.Time.Time_Pause,this,this.pauseView),a.default.onEvent(s.EventName.Time.Time_Resume,this,this.resumeView)},t.prototype.refreshView=function(){this._refreshView()},t.prototype.clearView=function(){this._clearView()},t.prototype.pauseView=function(){},t.prototype.resumeView=function(){},t.prototype.resize=function(){},t.prototype._destroy=function(){r.default.Tool2D.Button.removeEvent(null,this.fgui.id),e.prototype._destroy.call(this),this.node.destroy()},t}(e("./BasicObject").default);n.default=u,cc._RF.pop()},{"../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Tool/Tool":"Tool","./BasicObject":"BasicObject"}],BehaviorEventName:[function(e,t,n){"use strict";cc._RF.push(t,"ed99dRR/shAA5YX5W6lO5Sf","BehaviorEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Behavior_SetBehaviorData="Behavior_SetBehaviorData",this.Behavior_GetBehaviorData="Behavior_GetBehaviorData",this.Behavior_SetPreconditionData="Behavior_SetPreconditionData",this.Behavior_EnterBehavior="Behavior_EnterBehavior",this.Behavior_LeaveBehavior="Behavior_LeaveBehavior",this.Behavior_ForceEnterBehavior="Behavior_ForceEnterBehavior",this.Behavior_ForceLeaveBehavior="Behavior_ForceLeaveBehavior"},cc._RF.pop()},{}],Boom:[function(e,t,n){"use strict";cc._RF.push(t,"df497H8JwVFXII+HT2YRrdE","Boom");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Component/Object/FrameAnimation/FrameAnimation"),s=e("../../../Engine/Event/EventManager"),r=e("../../../Engine/Tool/Tool"),u=e("../../../Engine/Tool/Tool/Eval"),c=e("../../Event/GameEventName"),l=e("../../Unit/Unit"),f=e("../Component/Recovery"),p=e("../Data/GameMusicResData"),d=e("../Data/Unit/UnitConfig"),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"fgui",{get:function(){return this.boom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return d._EUnitType.Boom},enumerable:!1,configurable:!0}),t.prototype.createNode=function(){this.boom=fgui.UIPackage.createObject("ClimbMountainsView","Boom").asCom,this.createUnit.parent.addChild(this.boom),this.boom.setPivot(.5,.5,!0),this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y),this.fgui.rotation=this.createUnit.rotation,this.boom.node.zIndex=2,this.effect=fgui.UIPackage.createObject("ClimbMountainsView","BoomEffect").asCom,this.createUnit.parent.addChild(this.effect),this.effect.setPivot(.5,1,!0),this.effect.setPosition(this.fgui.x,this.fgui.y+this.fgui.height),this.effect.node.zIndex=4,this.effect.visible=!1,s.default.onEvent(c.default.SDK.SDK_Hit,this,this.onHit)},t.prototype.createComponents=function(){for(var e={target:this.effect._children[0].asCom,animations:[]},t=0;t<1;t++){for(var n={name:"Boom",loop:0,res:[],frame:u.default.eval("1/25")},o=1;o<9;o++)n.res.push("ui://ClimbMountainsView/boom"+o);e.animations.push(n)}this.frameAnimation=this.addComponentIntance(new a.default(e)),this.addComponentIntance(new f.default(this))},t.prototype.onReuseUnit=function(t){e.prototype.onReuseUnit.call(this,t),this.fgui.visible=!0,this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y),this.fgui.rotation=this.createUnit.rotation,this.effect.visible=!1},t.prototype.onHit=function(e){if(this.id==e){this.effect.visible=!0,this.effect.setScale(.3,.3),this.effect.setPosition(this.fgui.x,this.fgui.y+this.fgui.height),r.default.Tween.destroy(this.effect.id),r.default.Tween.tweenTo(this.effect,cc.tween(this.effect).to(.3,{scaleX:1,scaleY:1},cc.easeQuinticActionOut()).start()),this.frameAnimation.stop(),this.frameAnimation.play("Boom",1),this.isEnabled=!1,this.fgui.visible=!1;var t={url:p.default.Boom,callback:null};s.default.sendEvent(c.default.Audio.Audio_PlaySound,t)}},t}(l.default);n.default=h,cc._RF.pop()},{"../../../Engine/Component/Object/FrameAnimation/FrameAnimation":"FrameAnimation","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Tool/Tool":"Tool","../../../Engine/Tool/Tool/Eval":"Eval","../../Event/GameEventName":"GameEventName","../../Unit/Unit":"Unit","../Component/Recovery":"Recovery","../Data/GameMusicResData":"GameMusicResData","../Data/Unit/UnitConfig":"UnitConfig"}],BuffEventName:[function(e,t,n){"use strict";cc._RF.push(t,"9712e4eds1DeLMfkhV9AzR9","BuffEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Buff_CreateBuff="Buff_CreateBuff",this.Buff_StartRunBuff="Buff_StartRunBuff",this.Buff_RunBuff="Buff_RunBuff",this.Buff_RemoveBuff="Buff_RemoveBuff",this.Buff_RemoveUnitBuff="Buff_RemoveUnitBuff",this.Buff_RemoveUnitBuffByBuffID="Buff_RemoveUnitBuffByBuffID"},cc._RF.pop()},{}],ClimbMountainsView:[function(e,t,n){"use strict";cc._RF.push(t,"7d30aLbb8pJCpA5CSzvj24J","ClimbMountainsView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../../Engine/Basic/BasicView"),s=e("../../../../Engine/Data/CommonDataType"),r=e("../../../../Engine/Event/EventManager"),u=e("../../../../Engine/Resources/JsonResources"),c=e("../../../../Engine/Time/TimeManager"),l=e("../../../../Engine/Tool/Tool"),f=e("../../../Data/GameDataType"),p=e("../../../Event/GameEventName"),d=e("../../../SDK/sdk"),h=e("../../../View/OverView/OverView"),m=e("../../Component/GameMap"),v=e("../../GameManager"),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._initView=function(){this.roleConfig=u.default.getResources(f._EGameJsonRes.Role),this.gameMap=this.addComponentIntance(new m.default(this.fgui.getChild("map").asCom)),this.explain=this.fgui.getChild("explain").asLoader,this.progressBar=this.fgui.getChild("progressBar").asCom,this.passLine=this.progressBar.getChildAt(2).asCom,this.stepFrequency={min:this.roleConfig.stepFrequency.min,max:this.roleConfig.stepFrequency.max,value:this.roleConfig.stepFrequency.value},this.isMove=!1,this.progressBar.getChild("bar").asCom.getChild("bar").x=this.progressBar.width,this.passLine.x=this.stepFrequency.min/this.stepFrequency.max*this.progressBar.width,this.a0(),c.default.schedule(this,this._update,1/60),r.default.onEvent("CloseExplainView",this,function(){}),r.default.onEvent(p.default.Time.Time_ConstFrame,this,this._update),r.default.onEvent(p.default.Game_StartGame,this,this.onStartGame),r.default.onEvent(p.default.Game_EndGame,this,this.onEndGame),r.default.onEvent(p.default.SDK.SDK_UpgradeDifficulty,this,this.onUpgradeDifficulty)},t.prototype._refreshView=function(){r.default.sendEvent(p.default.Unit.Unit_RemoveUnit,null),f.ConstObject.Perfect=0,this.stepFrequency={min:this.roleConfig.stepFrequency.min,max:this.roleConfig.stepFrequency.max,value:this.roleConfig.stepFrequency.value},this.isMove=!1,this.progressBar.visible=!0,this.fgui.getChild("n23").asCom.visible=!0,this.fgui.getChild("n32").asCom.visible=!0,this.passLine.x=this.stepFrequency.min/this.stepFrequency.max*this.progressBar.width},t.prototype._clearView=function(){},t.prototype.resize=function(){this.fgui.width=fgui.GRoot.inst.width},t.prototype._update=function(){f.ConstObject.GameState==s._ECommonState.Runing&&(this.stepFrequency.value=d.SDK.getStepFreq()||0,this.progressBar.getChild("bar").asCom.getChild("bar").x=(1-this.stepFrequency.value/this.stepFrequency.max)*this.progressBar.width,this.passLine.x=this.stepFrequency.min/this.stepFrequency.max*this.progressBar.width,0==this.fgui.getChild("guide").visible&&(this.stepFrequency.value>=this.stepFrequency.min&&0==this.isMove?(this.isMove=!0,r.default.sendEvent(p.default.SDK.SDK_Move)):1==this.isMove&&(this.isMove=!1,r.default.sendEvent(v.default.IdleEvent))))},t.prototype.onStartGame=function(){d.SDK.onGameStart(),d.SDK.stepFreq(0)},t.prototype.onEndGame=function(){f.ConstObject.Perfect=0,f.ConstObject.GameState=s._ECommonState.Fail,this.stepFrequency.value=0,this.progressBar.getChild("bar").asCom.getChild("bar").x=this.progressBar.width,this.progressBar.visible=!1,this.fgui.getChild("n23").asCom.visible=!1,this.fgui.getChild("n32").asCom.visible=!1,r.default.sendEvent(p.default.View.View_ShowView,h.default)},t.prototype.onUpgradeDifficulty=function(){this.stepFrequency.min=l.default.clamp(this.roleConfig.stepFrequency.min,this.roleConfig.stepFrequency.max,this.stepFrequency.min+this.roleConfig.addStepFrequency)},t.prototype.a0=function(){this.unschedule(this.a1),this.unschedule(this.a2),this.unschedule(this.a3),this.unschedule(this.a4),this.a1()},t.prototype.a1=function(){this.explain.url="ui://ClimbMountainsView/explain1",c.default.scheduleOnce(this,this.a2,.1)},t.prototype.a2=function(){this.explain.url="ui://ClimbMountainsView/explain2",c.default.scheduleOnce(this,this.a3,.25)},t.prototype.a3=function(){var e=this;this.explain.url="ui://ClimbMountainsView/explain3",l.default.Tween.tweenTo(this.explain,cc.tween(this.explain).to(.2,{y:this.explain.y-50},cc.easeCircleActionOut()).to(.1,{y:this.explain.y}).call(function(){e.a4()}).start())},t.prototype.a4=function(){this.explain.url="ui://ClimbMountainsView/explain1",c.default.scheduleOnce(this,this.a1,1)},t.resPath="ClimbMountainsView",t}(a.default);n.default=_,cc._RF.pop()},{"../../../../Engine/Basic/BasicView":"BasicView","../../../../Engine/Data/CommonDataType":"CommonDataType","../../../../Engine/Event/EventManager":"EventManager","../../../../Engine/Resources/JsonResources":"JsonResources","../../../../Engine/Time/TimeManager":"TimeManager","../../../../Engine/Tool/Tool":"Tool","../../../Data/GameDataType":"GameDataType","../../../Event/GameEventName":"GameEventName","../../../SDK/sdk":"sdk","../../../View/OverView/OverView":"OverView","../../Component/GameMap":"GameMap","../../GameManager":"GameManager"}],Coin:[function(e,t,n){"use strict";cc._RF.push(t,"00cb0t0UHlGy74T2eKboblv","Coin");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Event/EventManager"),s=e("../../../Engine/Tool/Tool"),r=e("../../Event/GameEventName"),u=e("../../Unit/Unit"),c=e("../Component/Recovery"),l=e("../Data/GameMusicResData"),f=e("../Data/Unit/UnitConfig"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"fgui",{get:function(){return this.coin},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return f._EUnitType.Coin},enumerable:!1,configurable:!0}),t.prototype.createNode=function(){this.coin=fgui.UIPackage.createObject("ClimbMountainsView","Coin").asCom,this.createUnit.parent.addChild(this.coin),this.coin.setPivot(.5,.5,!0),this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y),this.fgui.getChildAt(1).asTextField.text=this.createUnit.layer+"",this.fgui.getChildAt(1).visible=!1,this.coin.node.zIndex=5,a.default.onEvent(r.default.SDK.SDK_Coin,this,this.onCoin)},t.prototype.createComponents=function(){this.addComponentIntance(new c.default(this))},t.prototype.onReuseUnit=function(t){e.prototype.onReuseUnit.call(this,t),s.default.Tween.destroy(this.fgui.id),s.default.Tween.destroy(this.fgui.getChildAt(0).id),this.fgui.visible=!0,this.fgui.rotation=0,this.fgui.setScale(1,1),this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y),this.fgui.getChildAt(0).width=this.fgui.width,this.fgui.getChildAt(1).asTextField.text=this.createUnit.layer+""},t.prototype.onCoin=function(){var e=this,t=this.fgui.parent.getChild("coin"),n=this.fgui.getChildAt(0);s.default.Tween.destroy(this.fgui.id),s.default.Tween.destroy(this.fgui.getChildAt(0).id),s.default.Tween.tweenTo(n,cc.tween(n).repeatForever(cc.tween(n).to(.1,{width:this.fgui.width/3}).to(.1,{width:this.fgui.width})).start()),s.default.Tween.tweenTo(this.fgui,cc.tween(this.fgui).to(.7,{x:t.x-(cc.winSize.width-1334)/2,y:t.y-(this.fgui.parent.y-cc.winSize.height/2),scaleX:.5,scaleY:.5}).call(function(){s.default.Tween.destroy(n.id),e.fgui.visible=!1}).start()),this.isEnabled=!1,a.default.sendEvent(r.default.Fight.Fight_FightData,1);var o={url:l.default.Coin,callback:null};a.default.sendEvent(r.default.Audio.Audio_PlaySound,o)},t}(u.default);n.default=p,cc._RF.pop()},{"../../../Engine/Event/EventManager":"EventManager","../../../Engine/Tool/Tool":"Tool","../../Event/GameEventName":"GameEventName","../../Unit/Unit":"Unit","../Component/Recovery":"Recovery","../Data/GameMusicResData":"GameMusicResData","../Data/Unit/UnitConfig":"UnitConfig"}],CommonDataType:[function(e,t,n){"use strict";cc._RF.push(t,"7bd79j5vfJMh7UstNIeV+L0","CommonDataType"),Object.defineProperty(n,"__esModule",{value:!0}),n._EDirection=n._ECommonState=n._EViewRes=n._EJsonRes=n._ELanguageType=void 0,function(e){e.Chinese="Chinese",e.English="English"}(n._ELanguageType||(n._ELanguageType={})),function(e){e.Game="Game",e.ResGroup="ResGroup",e.GameFlowTree="GameFlowTree",e.View="View",e.Audio="Audio"}(n._EJsonRes||(n._EJsonRes={})),function(e){e.Fgui="fgui",e.Cocos="cocos"}(n._EViewRes||(n._EViewRes={})),function(e){e[e.None=0]="None",e[e.Pause=1]="Pause",e[e.Runing=2]="Runing",e[e.Success=3]="Success",e[e.Fail=4]="Fail"}(n._ECommonState||(n._ECommonState={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.Left=2]="Left",e[e.Right=3]="Right"}(n._EDirection||(n._EDirection={})),cc._RF.pop()},{}],ComponentEventName:[function(e,t,n){"use strict";cc._RF.push(t,"41852fPweBECJxiaGOlWZeJ","ComponentEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){},cc._RF.pop()},{}],CreateID:[function(e,t,n){"use strict";cc._RF.push(t,"3e030iDawBLNYCR/q0gPJV9","CreateID"),Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.createID=function(){return this.count++,Date.now()+this.count},e.count=0,e}();n.default=o,cc._RF.pop()},{}],DataManager:[function(e,t,n){"use strict";cc._RF.push(t,"b5efcE52pRHtKyEeT52BsLZ","DataManager");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Basic/BasicManager"),s=e("../../Engine/Tool/Tool"),r=e("../User/UserData"),u=function(e){function t(){var t=e.call(this)||this;return s.default.log("\u751f\u6210\u6570\u636e\u7ba1\u7406\u5668"),t.userData=new r.default,t}return i(t,e),t.prototype._destroy=function(){s.default.log("\u9500\u6bc1\u6570\u636e\u7ba1\u7406\u5668"),this.userData._destroy(),this.userData=null,e.prototype._destroy.call(this)},t}(a.default);n.default=u,cc._RF.pop()},{"../../Engine/Basic/BasicManager":"BasicManager","../../Engine/Tool/Tool":"Tool","../User/UserData":"UserData"}],DynamicPlanConfig:[function(e,t,n){"use strict";cc._RF.push(t,"089beXrou5BworRmzt6RTPX","DynamicPlanConfig"),Object.defineProperty(n,"__esModule",{value:!0}),cc._RF.pop()},{}],DynamicPlan:[function(e,t,n){"use strict";cc._RF.push(t,"7eca7fnGYNMF7+pvER6O+56","DynamicPlan");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(t,n){var o=e.call(this)||this;return o._id=t,o.dynamicPlanConfig=n,o._currentDynamicPlans=new Array,o}return i(t,e),Object.defineProperty(t.prototype,"currentDynamicPlans",{get:function(){return this._currentDynamicPlans},enumerable:!1,configurable:!0}),t.prototype.isDynamicPlan=function(e){var t=this.dynamicPlanConfig.priority[e];for(var n in this._currentDynamicPlans)if(this.dynamicPlanConfig.priority[n]>t)return!1;return!0},t.prototype.addDynamicPlan=function(e){this.removeMutexDynamicPlan(e),this._currentDynamicPlans.push(e)},t.prototype.removeDynamicPlan=function(e){1==this._currentDynamicPlans.includes(e)&&this._currentDynamicPlans.splice(this._currentDynamicPlans.indexOf(e),1)},t.prototype.removeMutexDynamicPlan=function(e){var t=this.dynamicPlanConfig.mutexChild[e],n=this.dynamicPlanConfig.compatibilityChild[e];if(null==t&&null==n)this._currentDynamicPlans=[];else if(null!=t)for(var o=0;o<this._currentDynamicPlans.length;o++)this._currentDynamicPlans[o]!=e&&1==t.includes(this._currentDynamicPlans[o])&&(this._currentDynamicPlans.splice(o,1),o--);else if(null!=n)for(o=0;o<this._currentDynamicPlans.length;o++)this._currentDynamicPlans[o]!=e&&0==n.includes(this._currentDynamicPlans[o])&&(this._currentDynamicPlans.splice(o,1),o--)},t}(e("../../../Basic/BasicObject").default);n.default=a,cc._RF.pop()},{"../../../Basic/BasicObject":"BasicObject"}],EffectEventName:[function(e,t,n){"use strict";cc._RF.push(t,"6ad073Mo5NFL7287ft9BfVG","EffectEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Effect_CreateEffect="Effect_CreateEffect",this.Effect_RemoveEffect="Effect_RemoveEffect"},cc._RF.pop()},{}],Engine:[function(e,t,n){"use strict";cc._RF.push(t,"6acd4k2NN9K+ordoHjldIuc","Engine");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("./Basic/BasicObject"),s=e("./Event/EventManager"),r=e("./Event/EventName"),u=e("./Audio/AudioManager"),c=e("./Time/TimeManager"),l=e("./Tool/Tool"),f=e("./View/ViewManager"),p=function(e){function t(t){var n=e.call(this)||this;return l.default.log("\u542f\u52a8\u5f15\u64ce"),n.managers=new Array,s.default.create(),n.managers.push(new f.default),n.managers.push(new u.default),n.managers.push(new c.default),t(n),l.default.log("\u542f\u52a8\u5b8c\u6bd5"),l.default.log(""),s.default.onEvent(r.EventName.Game_QuitGame,n,function(){for(var e in l.default.log("\u5173\u95ed\u5f15\u64ce"),n.managers)n.managers[e]._destroy();n.managers=null,n._destroy(),s.default.destroy(),cc.assetManager.releaseAll(),l.default.log("\u9000\u51fa\u6e38\u620f")}),n}return i(t,e),t}(a.default);n.default=p,cc._RF.pop()},{"./Audio/AudioManager":"AudioManager","./Basic/BasicObject":"BasicObject","./Event/EventManager":"EventManager","./Event/EventName":"EventName","./Time/TimeManager":"TimeManager","./Tool/Tool":"Tool","./View/ViewManager":"ViewManager"}],Eval:[function(e,t,n){"use strict";cc._RF.push(t,"430dcN+hN5MhKYrfE+atR8i","Eval"),Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.isOperator=function(e){return"+-*/()".includes(e)},e.getPrioraty=function(e){switch(e){case"+":case"-":return 1;case"*":case"/":return 2;default:return 0}},e.prioraty=function(e,t){return this.getPrioraty(e)<=this.getPrioraty(t)},e.dal2Rpn=function(e){for(var t=[],n=[],o=[],i="",a=0,s=e.length;a<s;a++)" "!=(r=e[a])&&(i+=r,a+1<e.length?this.isOperator(e[a])?(t.push(i),i=""):this.isOperator(e[a+1])&&(t.push(i),i=""):(t.push(i),i=""));for(;t.length>0;){var r=t.shift();if(this.isOperator(r))if("("==r)n.push(r);else if(")"==r){for(var u=n.pop();"("!=u&&n.length>0;)o.push(u),u=n.pop();if("("!=u)throw"error: unmatched ()"}else{for(;this.prioraty(r,n[n.length-1])&&n.length>0;)o.push(n.pop());n.push(r)}else o.push(new Number(r))}if(n.length>0){if(")"==n[n.length-1]||"("==n[n.length-1])throw"error: unmatched ()";for(;n.length>0;)o.push(n.pop())}return o},e.eval=function(e){for(var t=this.dal2Rpn(e),n=[];t.length>0;){var o=t.shift();if(this.isOperator(o)){if(n.length<2)throw"unvalid stack length";var i=n.pop(),a=n.pop();n.push(this.getResult(a,i,o))}else n.push(o)}if(1!=n.length)throw"unvalid expression";return n[0]},e.getResult=function(e,t,n){var o=0;switch(n){case"+":o=e+t;break;case"-":o=e-t;break;case"*":o=e*t;break;case"/":o=e/t;break;default:return 0}return o},e}();n.default=o,cc._RF.pop()},{}],EventManager:[function(e,t,n){"use strict";cc._RF.push(t,"227b8wGCoFJ6Jv9vxrbKI5v","EventManager"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../Basic/BasicEvent"),i=e("../Tool/Tool"),a=function(){function e(){}return e.create=function(){i.default.log("\u751f\u6210\u4e8b\u4ef6\u7ba1\u7406\u5668"),this.nameEvent=new Map,this.targetEvent=new Map,this.eventTarget=new Map,this.isEventPropagation=new Map},e.destroy=function(){i.default.log("\u9500\u6bc1\u4e8b\u4ef6\u7ba1\u7406\u5668"),this.nameEvent.forEach(function(e){for(var t=0;t<e.length;t++)e[t]=null}),this.nameEvent=null,this.targetEvent=null,this.eventTarget=null,this.isEventPropagation=null},e.onEvent=function(e,t,n,i,a){var s=this,r=new o.default;r.event=e,r.target=t,r.callback=n,r.priority=i||0,r.once=a||!1,r.stopPropagation=function(){s.isEventPropagation.set(r.event,!1)};var u=[];0==this.nameEvent.has(r.event)&&this.nameEvent.set(r.event,[]),(u=this.nameEvent.get(r.event)).push(r),this.nameEvent.set(r.event,u);var c=[];0==this.targetEvent.has(r.target)&&this.targetEvent.set(r.target,[]),(c=this.targetEvent.get(r.target)).push(r),this.targetEvent.set(r.target,c);var l=[];if(0==this.eventTarget.has(t.id)&&this.eventTarget.set(t.id,[]),0==(l=this.eventTarget.get(t.id)).includes(t)&&(l.push(t),this.eventTarget.set(t.id,l)),u.length>1){u.sort(function(e,t){return t.priority-e.priority});for(var f=[],p=0;p<u.length;p++)for(var d=0;d<l.length;d++)if(u[p].target==l[d]){f.push(l[d]),l.splice(d,1);break}l=f.concat(l),this.eventTarget.set(t.id,l)}},e.offEvent=function(e,t,n){var o=this.nameEvent.get(e);if(null!=o)for(var i=0;i<o.length;i++){var a=o[i];if(n==a.callback&&a.target.id==t.id){o.splice(i,1),i--;var s=this.targetEvent.get(a.target);if(null!=s){for(var r=0;r<s.length;r++)(e==s[r].event&&n==a.callback||null==s[r].target)&&(s.splice(r,1),r--);this.targetEvent.set(a.target,s)}}}},e.offEventByTarget=function(e){var t=this.targetEvent.get(e);if(null!=t){for(var n=0;n<t.length;n++){var o=t[n],i=this.nameEvent.get(o.event);if(null!=i){for(var a=0;a<i.length;a++)o.target!=i[a].target&&null!=i[a].target||(i.splice(a,1),a--);this.nameEvent.set(o.event,i)}}this.targetEvent.delete(e),this.eventTarget.delete(e.id)}},e.sendEvent=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null!=this.nameEvent&&0!=this.nameEvent.has(e)){this.isEventPropagation.set(e,!0);var o=this.nameEvent.get(e).concat([]);if(null!=o)for(var i=0;i<o.length;i++){if(0==this.isEventPropagation.get(e))return;var a=o[i];if(null!=a.target&&(1==a.target.isEnabled||1==a.target.enabled)){var s=[].concat(t).concat([a]);a.callback.apply(a.target,s),1==a.once&&this.offEvent(a.event,a.target,a.callback)}}}},e.sendEventByTargetID=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(null!=this.nameEvent&&0!=this.nameEvent.has(e)){this.isEventPropagation.set(e,!0);var i=this.eventTarget.get(t);for(var a in i){var s=this.targetEvent.get(i[a]);if(null!=s)for(var r=0;r<s.length;r++){var u=s[r];if(e==u.event&&(1==u.target.isEnabled||1==u.target.enabled)){var c=[].concat(n).concat([u]);u.callback.apply(u.target,c),1==u.once&&this.offEvent(u.event,u.target,u.callback);break}}}}},e}();n.default=a,cc._RF.pop()},{"../Basic/BasicEvent":"BasicEvent","../Tool/Tool":"Tool"}],EventName:[function(e,t,n){"use strict";cc._RF.push(t,"daa71ti4HZM/KfxjMLswC3H","EventName"),Object.defineProperty(n,"__esModule",{value:!0}),n.EventName=void 0;var o=e("./BehaviorEventName"),i=e("./ComponentEventName"),a=e("./AudioEventName"),s=e("./PhoneEventName"),r=e("./ResEventName"),u=e("./TimeEventName"),c=e("./ViewEventName"),l=function(){function e(){}return e.Res=new r.default,e.Phone=new s.default,e.Behavior=new o.default,e.View=new c.default,e.Audio=new a.default,e.Time=new u.default,e.Component=new i.default,e.Game_ReadyStartGame="Game_ReadyStartGame",e.Game_StartGame="Game_StartGame",e.Game_EndGame="Game_EndGame",e.Game_QuitGame="Game_QuitGame",e}();n.EventName=l,cc._RF.pop()},{"./AudioEventName":"AudioEventName","./BehaviorEventName":"BehaviorEventName","./ComponentEventName":"ComponentEventName","./PhoneEventName":"PhoneEventName","./ResEventName":"ResEventName","./TimeEventName":"TimeEventName","./ViewEventName":"ViewEventName"}],ExplainView:[function(e,t,n){"use strict";cc._RF.push(t,"b98b3gvcotBOoLjMmZmj4+V","ExplainView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../../Engine/Basic/BasicView"),s=e("../../../../Engine/Event/EventManager"),r=e("../../../../Engine/Time/TimeManager"),u=e("../../../../Engine/Tool/Tool"),c=e("../../../Data/GameDataType"),l=e("../../../Event/GameEventName"),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._initView=function(){var e=this;this.explain=this.fgui.getChild("explain").asLoader,this.skip=this.fgui.getChild("skip").asTextField,u.default.Tool2D.Button.addEvent(this.fgui,{touchend:function(){1==c.ConstObject.IsEnableTouch&&e.close()}},this.fgui.id,1,1),this.a0(),this.skip.text="3\u79d2\u540e\u53ef\u4ee5\u8df3\u8fc7",u.default.Tween.tweenTo(this.skip,cc.tween(this.skip).to(1,{alpha:0}).call(function(){e.skip.text="2\u79d2\u540e\u53ef\u4ee5\u8df3\u8fc7"}).to(1,{alpha:1}).call(function(){e.skip.text="1\u79d2\u540e\u53ef\u4ee5\u8df3\u8fc7"}).to(1,{alpha:0}).call(function(){e.skip.text="\u2014 \u4efb\u610f\u52a8\u4f5c\u8df3\u8fc7 \u2014"}).to(1,{alpha:1}).start()),s.default.onEvent(l.default.SDK.SDK_Action,this,this.close),s.default.onEvent(l.default.SDK.SDK_Move,this,this.close),s.default.onEvent(l.default.SDK.SDK_Up,this,this.close),s.default.onEvent(l.default.SDK.SDK_Down,this,this.close),s.default.onEvent(l.default.SDK.SDK_Confirm,this,this.close),s.default.onEvent(l.default.SDK.SDK_Cancel,this,this.close)},t.prototype._refreshView=function(){},t.prototype._clearView=function(){u.default.Tween.destroy(this.explain.id),s.default.sendEvent("CloseExplainView")},t.prototype.a0=function(){this.unschedule(this.a1),this.unschedule(this.a2),this.unschedule(this.a3),this.unschedule(this.a4),this.a1()},t.prototype.close=function(){"\u2014 \u4efb\u610f\u52a8\u4f5c\u8df3\u8fc7 \u2014"==this.skip.text&&(u.default.Tween.destroy(this.skip.id),s.default.sendEvent(l.default.View.View_DestroyView,t))},t.prototype.a1=function(){this.explain.url="ui://ClimbMountainsView/explain1",r.default.scheduleOnce(this,this.a2,.1)},t.prototype.a2=function(){this.explain.url="ui://ClimbMountainsView/explain2",r.default.scheduleOnce(this,this.a3,.25)},t.prototype.a3=function(){var e=this;this.explain.url="ui://ClimbMountainsView/explain3",u.default.Tween.tweenTo(this.explain,cc.tween(this.explain).to(.2,{y:this.explain.y-50},cc.easeCircleActionOut()).to(.1,{y:this.explain.y}).call(function(){e.a4()}).start())},t.prototype.a4=function(){this.explain.url="ui://ClimbMountainsView/explain1",r.default.scheduleOnce(this,this.a1,1)},t.resPath="ExplainView",t}(a.default);n.default=f,cc._RF.pop()},{"../../../../Engine/Basic/BasicView":"BasicView","../../../../Engine/Event/EventManager":"EventManager","../../../../Engine/Time/TimeManager":"TimeManager","../../../../Engine/Tool/Tool":"Tool","../../../Data/GameDataType":"GameDataType","../../../Event/GameEventName":"GameEventName"}],FightEventName:[function(e,t,n){"use strict";cc._RF.push(t,"74968khv79AQ6EX9O4QCDAP","FightEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Fight_FightData="Fight_FightData"},cc._RF.pop()},{}],FrameAnimation:[function(e,t,n){"use strict";cc._RF.push(t,"fc4afQk3zpDUp6y0Yf7K08+","FrameAnimation");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Basic/BasicObject"),s=e("../../../Resources/ViewResources"),r=e("../../../Time/TimeManager"),u=function(e){function t(t){var n=e.call(this)||this;return n.setFrameAnimations(t),n}return i(t,e),t.prototype.setFrameAnimations=function(e){this.frameAnimations=e,this.currentName=null,this.currentFrame=0},t.prototype.play=function(e,t,n){for(var o in this.frameAnimations.animations)if(this.frameAnimations.animations[o].name==e&&(null==this.currentName||this.currentName.name!=e)){this.currentName=this.frameAnimations.animations[o],this.currentName.loop=t||this.currentName.loop,this.currentFrame=0,this.callback=n,this.updateTexture(),this.unschedule(this._update),this.currentName.res.length>1&&r.default.schedule(this,this._update,this.currentName.frame);break}},t.prototype.stop=function(){this.currentName=null,this.currentFrame=0,this.unschedule(this._update)},t.prototype._update=function(){this.updateTexture(),this.currentFrame++,this.currentFrame>=this.currentName.res.length&&(this.currentFrame=0,this.callback&&this.callback(),this.callback=null,this.currentName.loop>0&&(this.currentName.loop--,0==this.currentName.loop&&this.unschedule(this._update)))},t.prototype.updateTexture=function(){null!=this.frameAnimations.target.uuid?0==this.currentName.res[this.currentFrame].includes("ui://")?this.frameAnimations.target.getComponent(cc.Sprite).spriteFrame=s.default.getResources(this.currentName.res[this.currentFrame]):this.frameAnimations.target.getComponent(cc.Sprite).spriteFrame=fgui.UIPackage.getByName("CommonRes").getItemAssetByName(this.currentName.res[this.currentFrame].replace("ui://","")):this.frameAnimations.target.asLoader.url=this.currentName.res[this.currentFrame]},t}(a.default);n.default=u,cc._RF.pop()},{"../../../Basic/BasicObject":"BasicObject","../../../Resources/ViewResources":"ViewResources","../../../Time/TimeManager":"TimeManager"}],FrameConfig:[function(e,t,n){"use strict";cc._RF.push(t,"72710lY9mlAyIUat4RtAXx3","FrameConfig"),Object.defineProperty(n,"__esModule",{value:!0}),cc._RF.pop()},{}],GameDataType:[function(e,t,n){"use strict";cc._RF.push(t,"3d675krcUhKr59/2DsSvwZY","GameDataType");var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],s=0,r=a.length;s<r;s++,i++)o[i]=a[s];return o};Object.defineProperty(n,"__esModule",{value:!0}),n.ConstObject=n._EGameBehavior=n._EGameJsonRes=void 0;var i=e("../../Engine/Data/CommonDataType"),a=e("../../Engine/Tool/Tool/CreateID");(function(e){e.UserData="UserData",e.Map="Game/Map",e.Role="Game/Role"})(n._EGameJsonRes||(n._EGameJsonRes={})),function(e){e.None="None",e.Login="Login",e.InitLoad="InitLoad",e.Hall="Hall",e.WaitStart="WaitStart",e.Gameing="Gameing",e.Over="Over"}(n._EGameBehavior||(n._EGameBehavior={})),n.ConstObject={ResPath:"",MeID:a.default.createID()+"",MeTeamID:"0",GameFlowTreeID:a.default.createID()+"",GameState:i._ECommonState.None,Components:[],AddComponentIntance:function(e,t){for(var i,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];for(var r in n.ConstObject.Components)if(null!=n.ConstObject.Components[r][t]){a.length>0?e.addComponentIntance(new((i=n.ConstObject.Components[r][t]).bind.apply(i,o([void 0],a)))):e.addComponentIntance(new n.ConstObject.Components[r][t](e));break}},CreatePrecondition:function(e,t){if(null!=t)for(var o in t){var i=void 0;for(var a in n.ConstObject.Components)if(null!=n.ConstObject.Components[a][o]){null!=(i=new n.ConstObject.Components[a][o])&&(e.precondition=new i,n.ConstObject.CreatePrecondition(e.precondition,t[o]));break}}},User:null,Score:0,Time:0,Perfect:0,FirstEnter:!0,IsEnableTouch:!1,Difficulty:0},cc._RF.pop()},{"../../Engine/Data/CommonDataType":"CommonDataType","../../Engine/Tool/Tool/CreateID":"CreateID"}],GameEventName:[function(e,t,n){"use strict";cc._RF.push(t,"dfd1a0xdgtEmp4hWnCg9iQf","GameEventName");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Event/EventName"),s=e("./BuffEventName"),r=e("./EffectEventName"),u=e("./FightEventName"),c=e("./PropEventName"),l=e("./RobotEventName"),f=e("./SDKEventName"),p=e("./SkillEventName"),d=e("./UnitEventName"),h=e("./UserDataEventName"),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.UserData=new h.default,t.Unit=new d.default,t.Robot=new l.default,t.Skill=new p.default,t.Buff=new s.default,t.Effect=new r.default,t.Prop=new c.default,t.Fight=new u.default,t.SDK=new f.default,t.Game_SetGameBehavior="Game_SetGameBehavior",t.Game_GetGameBehavior="Game_GetGameBehavior",t}(a.EventName);n.default=m,cc._RF.pop()},{"../../Engine/Event/EventName":"EventName","./BuffEventName":"BuffEventName","./EffectEventName":"EffectEventName","./FightEventName":"FightEventName","./PropEventName":"PropEventName","./RobotEventName":"RobotEventName","./SDKEventName":"SDKEventName","./SkillEventName":"SkillEventName","./UnitEventName":"UnitEventName","./UserDataEventName":"UserDataEventName"}],GameFlowConfig:[function(e,t,n){"use strict";cc._RF.push(t,"58870sZWCFODKum2v2XnoCO","GameFlowConfig"),Object.defineProperty(n,"__esModule",{value:!0}),n._EGameFlow=void 0,function(e){e.None="None",e.Login="Login",e.InitLoad="InitLoad",e.Hall="Hall",e.WaitStart="WaitStart",e.Gameing="Gameing",e.Over="Over"}(n._EGameFlow||(n._EGameFlow={})),cc._RF.pop()},{}],GameFlowTree_Precondition:[function(e,t,n){"use strict";cc._RF.push(t,"b3962oSncBHULqBxsA8hsCo","GameFlowTree_Precondition");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.GameFlowTree_Precondition=void 0;var a=e("../../Engine/Basic/BasicTreePreconditionNode"),s=e("../../Engine/Data/CommonDataType"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._enter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s._ECommonState.Success},t}(a.default);n.GameFlowTree_Precondition=r,cc._RF.pop()},{"../../Engine/Basic/BasicTreePreconditionNode":"BasicTreePreconditionNode","../../Engine/Data/CommonDataType":"CommonDataType"}],GameFlowTree:[function(e,t,n){"use strict";cc._RF.push(t,"1a7052C7jdEGoMofc1R2Kb/","GameFlowTree");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Basic/BasicTreeControlNode"),s=e("../../Engine/Event/EventManager"),r=e("../Data/GameDataType"),u=e("../Event/GameEventName"),c=e("./Data/GameFlowConfig"),l=e("./Game_Gameing_Flow"),f=e("./Game_Hall_Flow"),p=e("./Game_InitLoad_Flow"),d=e("./Game_Login_Flow"),h=e("./Game_Over_Flow"),m=e("./GameFlowTree_Precondition"),v=e("./Game_WaitStart_Flow"),_=function(e){function t(t,n){var o,i={Login:d.default,InitLoad:p.default,Hall:f.default,WaitStart:v.default,Gameing:l.default,Over:h.default},a=Object.values(c._EGameFlow),_=new Map;for(var g in a){var y=a[g],E=i[y];if(null!=E){var C=new m.GameFlowTree_Precondition(n.priority[y]);r.ConstObject.CreatePrecondition(C,a),_.set(y,new E(t,c._EGameFlow[y],C))}}return o=e.call(this,t,"",r.ConstObject.GameFlowTreeID,n,_)||this,s.default.onEvent(u.default.Game_GetGameFlow,o,o.onGetGameFlow),o}return i(t,e),t.prototype._enterFail=function(){},t.prototype._enterAgain=function(){},t.prototype.onGetGameFlow=function(e){e&&e(this.currentChilds.pop())},t}(a.default);n.default=_,cc._RF.pop()},{"../../Engine/Basic/BasicTreeControlNode":"BasicTreeControlNode","../../Engine/Event/EventManager":"EventManager","../Data/GameDataType":"GameDataType","../Event/GameEventName":"GameEventName","./Data/GameFlowConfig":"GameFlowConfig","./GameFlowTree_Precondition":"GameFlowTree_Precondition","./Game_Gameing_Flow":"Game_Gameing_Flow","./Game_Hall_Flow":"Game_Hall_Flow","./Game_InitLoad_Flow":"Game_InitLoad_Flow","./Game_Login_Flow":"Game_Login_Flow","./Game_Over_Flow":"Game_Over_Flow","./Game_WaitStart_Flow":"Game_WaitStart_Flow"}],GameManager:[function(e,t,n){"use strict";cc._RF.push(t,"cda73teI0VBSqJK3ZlcWaOl","GameManager");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Basic/BasicManager"),s=e("../../Engine/Event/EventManager"),r=e("../../Engine/Tool/Tool"),u=e("../SDK/sdk"),c=e("./View/ClimbMountainsView/ClimbMountainsView"),l=function(e){function t(){var t=e.call(this)||this;return r.default.log("\u751f\u6210\u73a9\u6cd5\u7ba1\u7406\u5668"),t}return i(t,e),t.setGameView=function(e){s.default.sendEvent(e,c.default)},t.prototype._destroy=function(){r.default.log("\u9500\u6bc1\u73a9\u6cd5\u7ba1\u7406\u5668"),e.prototype._destroy.call(this)},t.ActionEvent=u.MOTION.MOTION_JUMP.toString(),t.MoveEvent=u.MOTION.MOTION_RUN.toString(),t.IdleEvent="Idle",t}(a.default);n.default=l,cc._RF.pop()},{"../../Engine/Basic/BasicManager":"BasicManager","../../Engine/Event/EventManager":"EventManager","../../Engine/Tool/Tool":"Tool","../SDK/sdk":"sdk","./View/ClimbMountainsView/ClimbMountainsView":"ClimbMountainsView"}],GameMap:[function(e,t,n){"use strict";cc._RF.push(t,"7ddf3KXSplKJo1LZgz4h0r/","GameMap");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicObject"),s=e("../../../Engine/Data/CommonDataType"),r=e("../../../Engine/Event/EventManager"),u=e("../../../Engine/Resources/JsonResources"),c=e("../../../Engine/Time/TimeManager"),l=e("../../../Engine/Tool/Tool"),f=e("../../../Engine/Tool/Tool/CreateID"),p=e("../../Data/GameDataType"),d=e("../../Event/GameEventName"),h=e("../../View/InitLoadView/InitLoadView"),m=e("../Data/Unit/UnitConfig"),v=function(e){function t(t){var n=e.call(this)||this;n.vineScales=[cc.v2(1,1),cc.v2(1,-1),cc.v2(-1,1),cc.v2(-1,-1)],n.vineScaleIndex=0,n.mapConfig=u.default.getResources(p._EGameJsonRes.Map),n.roleConfig=u.default.getResources(p._EGameJsonRes.Role),t.width=n.roleConfig.moveRange,n.map=t,n.items=[],n.startPosY=cc.winSize.height-n.mapConfig.startPosY,n.createPropLayer=-1,n.difficultyLayer=0,n.createBoomLayer=0,n.createBoomCount=0,n.createStoneLayer=0,n.createStoneCount=0,n.guideState=0,n.isJump=!1,n.count=0,n.onCreateMapItem(0);var o={type:m._EUnitType.Role,unitID:p.ConstObject.MeID,teamID:p.ConstObject.MeTeamID,parent:n.map,pos:cc.v2(n.roleConfig.movePos[0]+60,n.startPosY-25),layer:0,isUpdate:!0,isDestroy:!1};return r.default.sendEvent(d.default.Unit.Unit_CreateUnit,o),r.default.onEvent(d.default.Game_ReadyStartGame,n,n.init),r.default.onEvent(d.default.Game_EndGame,n,n.onEndGame),r.default.onEvent(d.default.Fight.Fight_FightData,n,n.onFightData),r.default.onEvent(d.default.SDK.SDK_Action,n,n.onJump),r.default.onEvent(d.default.SDK.SDK_JumpComplete,n,n.onJumpComplete),r.default.onEvent(d.default.SDK.SDK_MoveMap,n,n.onMoveMap),r.default.onEvent(d.default.SDK.SDK_Hit,n,n.onEndGame),n}return i(t,e),t.prototype.init=function(){var e=this;if(this.count++,2!=this.count){if(p.ConstObject.Difficulty=0,l.default.Tween.destroy(this.map.id),this.map.x=cc.winSize.width/2,this.map.y=cc.winSize.height/2,this.createPropLayer=-1,this.difficultyLayer=0,this.createBoomLayer=0,this.createBoomCount=0,this.createStoneLayer=0,this.createStoneCount=0,this.guideState=0,this.isJump=!1,r.default.sendEvent(d.default.Unit.Unit_GetUnit,{type:null,unitID:null,teamID:["1","2"],isLiving:!1,callback:function(e){e.forEach(function(e){e.isEnabled=!1,e.fgui.visible=!1})}}),null==this.role){var t={type:m._EUnitType.Role,unitID:p.ConstObject.MeID,teamID:[p.ConstObject.MeTeamID],isLiving:!1,callback:function(t){e.role=t}};r.default.sendEvent(d.default.Unit.Unit_GetUnit,t)}else this.role.isUpdate=!0,this.map.parent.getChild("cover").visible=!1,this.map.parent.getChild("guide").visible=!1,l.default.Tween.destroy(this.map.parent.getChild("guide").id),this.createIndicator(this.items[0],0);for(var n=0;n<5;n++)this.onCreateMapItem(n);6==this.items.length&&c.default.scheduleOnce(this,function(){r.default.sendEvent(d.default.View.View_DestroyView,h.default)},.5)}},t.prototype.onFightData=function(){var e=this;0==this.guideState&&(this.guideState=0,c.default.scheduleOnce(this,function(){if(e.guideState=1,0==e.isJump){e.role.isUpdate=!1,e.map.parent.getChild("cover").visible=!0,e.map.parent.getChild("guide").visible=!0;var t=e.map.parent.getChild("guide");t.setScale(1,1),l.default.Tween.destroy(t.id),l.default.Tween.tweenTo(t,cc.tween(t).repeatForever(cc.tween(t).to(.5,{scaleX:1.3,scaleY:1.3}).to(.5,{scaleX:1,scaleY:1})).start())}},.1));for(var t=this.mapConfig.coins.length-1;t>=0;t--)if(p.ConstObject.Score>this.mapConfig.coins[t]||0==t){p.ConstObject.Difficulty==t&&p.ConstObject.Difficulty!=this.mapConfig.coins.length-1||(p.ConstObject.Difficulty=t,this.difficultyLayer=this.role.layer,this.createBoomLayer=this.role.layer,this.createBoomCount=0,this.createStoneLayer=this.role.layer,this.createStoneCount=0);break}},t.prototype.onJump=function(){1!=this.isJump&&p.ConstObject.GameState==s._ECommonState.Runing&&(this.isJump=!0,1==this.guideState&&(this.guideState=2,this.role.isUpdate=!0,this.map.parent.getChild("cover").visible=!1,this.map.parent.getChild("guide").visible=!1,l.default.Tween.destroy(this.map.parent.getChild("guide").id)))},t.prototype.onJumpComplete=function(){this.isJump=!1},t.prototype.onEndGame=function(){},t.prototype.onCreateMapItem=function(e){var t;if(this.items.length<5||this.role.fgui.y<=this.items[this.items.length-5].y){t=fgui.UIPackage.createObject("ClimbMountainsView","Mountains").asCom,this.map.addChild(t),t.setPivot(.5,0,!0),t.x=this.map.width/2,t.y=this.startPosY-this.items.length*this.mapConfig.itemGap,t.scaleX=this.items.length%2==0?1:-1,t.node.zIndex=-this.items.length;for(var n=Math.floor(this.items.length/6)+1,o=0;o<this.mapConfig.scenes.length;o++)if(this.mapConfig.scenes[o].layer>=n||o==this.mapConfig.scenes.length-1){t.getChildAt(0).asCom.getChildAt(1).asLoader.url=this.mapConfig.scenes[o].image;break}var i=fgui.UIPackage.createObject("ClimbMountainsView","Vine").asCom;this.map.addChild(i),i.setPivot(.5,.5,!0),i.x=this.map.width/2,i.y=this.startPosY-this.items.length*i.height,i.width=this.map.width+110,i.node.zIndex=-this.items.length,i.getChildAt(0).scaleX=this.vineScales[this.vineScaleIndex].x,i.getChildAt(0).scaleY=this.vineScales[this.vineScaleIndex].y,i.getChildAt(1).scaleX=this.vineScales[this.vineScaleIndex].x,i.getChildAt(1).scaleY=this.vineScales[this.vineScaleIndex].y,this.vineScaleIndex++,this.vineScaleIndex>=this.vineScales.length&&(this.vineScaleIndex=0),this.items.push(t)}this.items.length>1&&(null==t&&(t=this.items[this.role.layer+1+e]),this.onCreateCoin(t,Math.abs(t.node.zIndex)-1)),Math.abs(t.node.zIndex)%6==0&&this.createIndicator(t,Math.abs(t.node.zIndex)),Math.abs(t.node.zIndex)%30==0&&r.default.sendEvent(d.default.SDK.SDK_UpgradeDifficulty)},t.prototype.onCreateCoin=function(e,t){if(!(this.createPropLayer>=t)){this.createPropLayer=t;var n,o=Math.random(),i=Math.random(),a=!1;t<3?(o=0==t?0:.6,i=0==t?.1:.6):(o-=(this.role.layer-this.createBoomLayer)/this.mapConfig.difficulty[p.ConstObject.Difficulty].boom.loopLayerCount*.75,i-=(this.role.layer-this.createStoneLayer)/this.mapConfig.difficulty[p.ConstObject.Difficulty].stone.loopLayerCount*.75),o>=.5&&i>=.5?n=1:(n=6,o<i&&o<=.25&&this.createBoomCount<this.mapConfig.difficulty[p.ConstObject.Difficulty].boom.createCount?(this.createBoomCount++,this.createBoom(e,t),a=!0):i<=.25&&this.mapConfig.difficulty[p.ConstObject.Difficulty].stone.createCount>0&&this.createStoneCount<this.mapConfig.difficulty[p.ConstObject.Difficulty].stone.createCount?this.createStone(e,t):n=Math.random()>=.5?1:6);for(var s=cc.v2(),u=n;u<n+5;u++)if(1==a&&u==n);else{s=cc.v2(e.scaleX>0?e._children[u].x:this.map.width-e._children[u].x,e.y+e._children[u].y-5);var c={type:m._EUnitType.Coin,unitID:f.default.createID()+"",teamID:"2",parent:this.map,pos:s,layer:t,isUpdate:!0,isDestroy:!1};r.default.sendEvent(d.default.Unit.Unit_CreateUnit,c)}}},t.prototype.createBoom=function(e,t){var n=e.getChild("boom"),o={type:m._EUnitType.Boom,unitID:f.default.createID()+"",teamID:"1",parent:this.map,pos:cc.v2(e.scaleX>0?n.x:this.map.width-n.x,e.y+n.y),rotation:e.scaleX>0?n.rotation:-n.rotation,layer:t,isUpdate:!0,isDestroy:!1};r.default.sendEvent(d.default.Unit.Unit_CreateUnit,o)},t.prototype.createStone=function(e,t){var n={type:m._EUnitType.Stone,unitID:f.default.createID()+"",teamID:"1",parent:this.map,pos:cc.v2(e.scaleX>0?this.roleConfig.movePos[0]+50:this.map.width-this.roleConfig.movePos[0]-50,e.y-20),layer:t,isUpdate:!0,isDestroy:!1};r.default.sendEvent(d.default.Unit.Unit_CreateUnit,n)},t.prototype.createIndicator=function(e,t){var n={type:m._EUnitType.Indicator,unitID:f.default.createID()+"",teamID:"3",parent:this.map,pos:cc.v2(e.scaleX>0?this.roleConfig.movePos[0]:this.map.width-this.roleConfig.movePos[0],e.y-30),layer:t,isUpdate:!0,isDestroy:!1};r.default.sendEvent(d.default.Unit.Unit_CreateUnit,n)},t.prototype.onMoveMap=function(){var e=this;if(p.ConstObject.GameState==s._ECommonState.Runing){for(var t=0;t<5;t++)this.onCreateMapItem(t);l.default.Tween.destroy(this.map.id),l.default.Tween.tweenTo(this.map,cc.tween(this.map).to(this.roleConfig.jumpTime+.1,{y:cc.winSize.height/2+this.role.layer*this.mapConfig.itemGap},cc.easeCircleActionOut()).call(function(){e.role.layer-e.difficultyLayer>=e.mapConfig.difficulty[p.ConstObject.Difficulty].boom.loopLayerCount&&(e.createBoomLayer=e.role.layer,e.createBoomCount=0),e.role.layer-e.difficultyLayer>=e.mapConfig.difficulty[p.ConstObject.Difficulty].stone.loopLayerCount&&(e.createStoneLayer=e.role.layer,e.createStoneCount=0),r.default.sendEvent(d.default.SDK.SDK_MoveMapComplete,e.role.layer)}).start())}},t}(a.default);n.default=v,cc._RF.pop()},{"../../../Engine/Basic/BasicObject":"BasicObject","../../../Engine/Data/CommonDataType":"CommonDataType","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Resources/JsonResources":"JsonResources","../../../Engine/Time/TimeManager":"TimeManager","../../../Engine/Tool/Tool":"Tool","../../../Engine/Tool/Tool/CreateID":"CreateID","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName","../../View/InitLoadView/InitLoadView":"InitLoadView","../Data/Unit/UnitConfig":"UnitConfig"}],GameMusicResData:[function(e,t,n){"use strict";cc._RF.push(t,"83f84375VlPiKHoezAMpVYK","GameMusicResData");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.BGM="BGM",t.StartCountdown="StartCountdown",t.EndCountdown="EndCountdown",t.GameEnd="GameEnd",t.Jump="Jump",t.Fall="Fall",t.Coin="Coin",t.Boom="Boom",t.Stone="Stone",t}(e("../../../Engine/Audio/Data/AudioResData").default);n.default=a,cc._RF.pop()},{"../../../Engine/Audio/Data/AudioResData":"AudioResData"}],GameView:[function(e,t,n){"use strict";cc._RF.push(t,"4ca95MgfBdJ3YR70LN5fxwl","GameView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicView"),s=e("../../../Engine/Data/CommonDataType"),r=e("../../../Engine/Event/EventManager"),u=e("../../../Engine/Tool/Tool"),c=e("../../Component/Control/KeyBoardControl"),l=e("../../Data/GameDataType"),f=e("../../Event/GameEventName"),p=e("../../Game/Data/GameMusicResData"),d=e("../../SDK/sdk"),h=e("../../SDK/SDKManager"),m=e("../PauseView/PauseView"),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._initView=function(){var e=this;this.addComponentIntance(new c.default);var t=this.fgui.getChild("startButton").asCom;u.default.Tool2D.Button.addEvent(t,{touchend:function(){r.default.sendEvent(f.default.SDK.SDK_Confirm)}},this.fgui.id,.9,.9,0,!1),this.pauseButton=this.fgui.getChild("pauseButton").asCom,u.default.Tool2D.Button.addEvent(this.pauseButton,{touchend:function(){e.onPause()}},this.fgui.id,.9,.9,0,!1),u.default.Tool2D.Button.addEvent(this.fgui,{touchend:function(){1==l.ConstObject.IsEnableTouch&&r.default.sendEvent(f.default.SDK.SDK_Action)}},this.fgui.id,1,1,0,!1),this.fgui.getChild("time").asCom.visible=!0,d.SDK.getUserInfo(function(e){l.ConstObject.User=e,console.log(l.ConstObject.User)}),r.default.onEvent("CloseExplainView",this,function(){var t={url:p.default.StartCountdown,callback:null};r.default.sendEvent(f.default.Audio.Audio_PlaySound,t),e.startCountdownAnimation()}),r.default.onEvent(f.default.Fight.Fight_FightData,this,this.onFightData),r.default.onEvent(f.default.SDK.SDK_Cancel,this,this.onPause),this.onStart()},t.prototype._refreshView=function(){if(l.ConstObject.GameState=s._ECommonState.None,l.ConstObject.Score=0,l.ConstObject.Time=0,this.startCountdown=3,this.fgui.getChild("startButton").asCom.visible=!1,this.fgui.getChild("startText").asCom.visible=!1,this.fgui.getChild("cover").asCom.visible=!1,this.startCountdownText=this.fgui.getChild("countdown").asCom.getChild("countdown").asLoader,this.gameCountdownText=this.fgui.getChild("time").asCom.getChild("time").asTextField,this.scoreText=this.fgui.getChild("score").asCom.getChild("score").asTextField,this.startCountdownText.url="ui://GameView/3",this.gameCountdownText.text=u.default.converNumberToTimeText(l.ConstObject.Time),this.scoreText.text=""+l.ConstObject.Score,0==l.ConstObject.FirstEnter){this.startCountdownAnimation(),r.default.sendEvent(f.default.Audio.Audio_StopMusic,p.default.BGM),r.default.sendEvent(f.default.Audio.Audio_StopSound,p.default.EndCountdown);var e={url:p.default.StartCountdown,callback:null};r.default.sendEvent(f.default.Audio.Audio_PlaySound,e)}l.ConstObject.FirstEnter=!1,r.default.offEvent(f.default.Time.Time_ConstSecond,this,this.onSecond)},t.prototype._clearView=function(){h.default.removeButton()},t.prototype.resize=function(){this.fgui.width=fgui.GRoot.inst.width},t.prototype.onStart=function(){r.default.offEvent(f.default.SDK.SDK_Confirm,this,this.onStart),this._refreshView()},t.prototype.onPause=function(){if(l.ConstObject.GameState==s._ECommonState.Runing||0==this.fgui.getChild("countdown").asCom.visible){var e={url:p.default.ClickButton,callback:null};r.default.sendEvent(f.default.Audio.Audio_PlaySound,e),r.default.sendEvent(f.default.View.View_ShowView,m.default)}},t.prototype.startCountdownAnimation=function(){var e=this;this.fgui.getChild("countdown").asCom.visible=!0,this.startCountdownText.parent.alpha=1,this.startCountdownText.parent.setScale(2,2),u.default.Tween.tweenTo(this,cc.tween(this.startCountdownText.parent).to(.4,{scaleX:1,scaleY:1},cc.easeSineOut()).to(.6,{alpha:0}).call(function(){e.startCountdown--,e.startCountdownText.url="ui://GameView/"+e.startCountdown,-1==e.startCountdown?(e.startCountdownText.text="",l.ConstObject.GameState=s._ECommonState.Runing,r.default.sendEvent(f.default.Audio.Audio_PlayMusic,p.default.BGM),r.default.sendEvent(f.default.Game_StartGame),r.default.onEvent(f.default.Time.Time_ConstSecond,e,e.onSecond)):e.startCountdownAnimation()}).start()),3==this.startCountdown&&(r.default.sendEvent(f.default.Game_ReadyStartGame),r.default.sendEvent(f.default.Audio.Audio_StopMusic,p.default.BGM))},t.prototype.onSecond=function(){l.ConstObject.Time++,this.gameCountdownText.text=u.default.converNumberToTimeText(l.ConstObject.Time)},t.prototype.onFightData=function(e){l.ConstObject.Score+=e,this.scoreText.text=""+l.ConstObject.Score},t.resPath="GameView",t}(a.default);n.default=v,cc._RF.pop()},{"../../../Engine/Basic/BasicView":"BasicView","../../../Engine/Data/CommonDataType":"CommonDataType","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Tool/Tool":"Tool","../../Component/Control/KeyBoardControl":"KeyBoardControl","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName","../../Game/Data/GameMusicResData":"GameMusicResData","../../SDK/SDKManager":"SDKManager","../../SDK/sdk":"sdk","../PauseView/PauseView":"PauseView"}],Game_Gameing_Flow:[function(e,t,n){"use strict";cc._RF.push(t,"3e1acLMCGZMUotfoD5S8o0s","Game_Gameing_Flow");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Basic/BasicTreeBehaviorNode"),s=e("../../Engine/Event/EventManager"),r=e("../Event/GameEventName"),u=e("../Game/GameManager"),c=e("../Game/View/ExplainView/ExplainView"),l=e("../View/GameView/GameView"),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._enter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s.default.sendEvent(r.default.View.View_ShowView,c.default),s.default.sendEvent(r.default.View.View_ShowView,l.default),u.default.setGameView(r.default.View.View_ShowView)},t.prototype._leave=function(){u.default.setGameView(r.default.View.View_DestroyView)},t.prototype._enterFail=function(){},t.prototype._enterAgain=function(){},t}(a.default);n.default=f,cc._RF.pop()},{"../../Engine/Basic/BasicTreeBehaviorNode":"BasicTreeBehaviorNode","../../Engine/Event/EventManager":"EventManager","../Event/GameEventName":"GameEventName","../Game/GameManager":"GameManager","../Game/View/ExplainView/ExplainView":"ExplainView","../View/GameView/GameView":"GameView"}],Game_Hall_Flow:[function(e,t,n){"use strict";cc._RF.push(t,"fc3cdPW0BBDB7LbAnJoFFWE","Game_Hall_Flow");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Basic/BasicTreeBehaviorNode"),s=e("../../Engine/Event/EventManager"),r=e("../Event/GameEventName"),u=e("../View/HallView/HallView"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._enter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s.default.sendEvent(r.default.View.View_ShowView,u.default)},t.prototype._leave=function(){s.default.sendEvent(r.default.View.View_DestroyView,u.default)},t.prototype._enterFail=function(){},t.prototype._enterAgain=function(){},t}(a.default);n.default=c,cc._RF.pop()},{"../../Engine/Basic/BasicTreeBehaviorNode":"BasicTreeBehaviorNode","../../Engine/Event/EventManager":"EventManager","../Event/GameEventName":"GameEventName","../View/HallView/HallView":"HallView"}],Game_Hall_Precondition:[function(e,t,n){"use strict";cc._RF.push(t,"25152jhND1JS42U0zTmvKsg","Game_Hall_Precondition");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.Game_Hall_Precondition=void 0;var a=e("../../Engine/Basic/BasicTreePreconditionNode"),s=e("../../Engine/Data/CommonDataType"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._enter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1==this.customData.initLoad?s._ECommonState.Success:s._ECommonState.Fail},t}(a.default);n.Game_Hall_Precondition=r,cc._RF.pop()},{"../../Engine/Basic/BasicTreePreconditionNode":"BasicTreePreconditionNode","../../Engine/Data/CommonDataType":"CommonDataType"}],Game_InitLoad_Flow:[function(e,t,n){"use strict";cc._RF.push(t,"77462nkZBxF87v6y1LMJ9Ko","Game_InitLoad_Flow");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Basic/BasicTreeBehaviorNode"),s=e("../../Engine/Event/EventManager"),r=e("../../Engine/Tool/Tool"),u=e("../Event/GameEventName"),c=e("../View/InitLoadView/InitLoadView"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._enter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s.default.sendEvent(u.default.View.View_DestroyView,null),s.default.sendEvent(u.default.View.View_ShowView,c.default)},t.prototype._leave=function(){r.default.log("\u6b63\u5f0f\u8fdb\u5165\u6e38\u620f")},t.prototype._enterFail=function(){},t.prototype._enterAgain=function(){},t}(a.default);n.default=l,cc._RF.pop()},{"../../Engine/Basic/BasicTreeBehaviorNode":"BasicTreeBehaviorNode","../../Engine/Event/EventManager":"EventManager","../../Engine/Tool/Tool":"Tool","../Event/GameEventName":"GameEventName","../View/InitLoadView/InitLoadView":"InitLoadView"}],Game_Login_Flow:[function(e,t,n){"use strict";cc._RF.push(t,"8995adGQpdDTKVHj/7pJDbl","Game_Login_Flow");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._enter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype._leave=function(){},t.prototype._enterFail=function(){},t.prototype._enterAgain=function(){},t}(e("../../Engine/Basic/BasicTreeBehaviorNode").default);n.default=a,cc._RF.pop()},{"../../Engine/Basic/BasicTreeBehaviorNode":"BasicTreeBehaviorNode"}],Game_Over_Flow:[function(e,t,n){"use strict";cc._RF.push(t,"464faVm5phHKLo5rfLhNfNe","Game_Over_Flow");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._enter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype._leave=function(){},t.prototype._enterFail=function(){},t.prototype._enterAgain=function(){},t}(e("../../Engine/Basic/BasicTreeBehaviorNode").default);n.default=a,cc._RF.pop()},{"../../Engine/Basic/BasicTreeBehaviorNode":"BasicTreeBehaviorNode"}],Game_WaitStart_Flow:[function(e,t,n){"use strict";cc._RF.push(t,"19783pG/chEBIK8s8x7lLQw","Game_WaitStart_Flow");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._enter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype._leave=function(){},t.prototype._enterFail=function(){},t.prototype._enterAgain=function(){},t}(e("../../Engine/Basic/BasicTreeBehaviorNode").default);n.default=a,cc._RF.pop()},{"../../Engine/Basic/BasicTreeBehaviorNode":"BasicTreeBehaviorNode"}],HallView:[function(e,t,n){"use strict";cc._RF.push(t,"3c8b1u7ypFDSZKUlXqw8voM","HallView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._initView=function(){},t.prototype._refreshView=function(){},t.prototype._clearView=function(){},t.prototype.resize=function(){this.fgui.width=fgui.GRoot.inst.width},t.resPath="HallView",t}(e("../../../Engine/Basic/BasicView").default);n.default=a,cc._RF.pop()},{"../../../Engine/Basic/BasicView":"BasicView"}],HintView:[function(e,t,n){"use strict";cc._RF.push(t,"b66c3w3XgJJCKLJVypaU/fn","HintView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._initView=function(){},t.prototype._refreshView=function(){},t.prototype._clearView=function(){},t.prototype.resize=function(){this.fgui.width=fgui.GRoot.inst.width},t.resPath="HintView",t}(e("../../../Engine/Basic/BasicView").default);n.default=a,cc._RF.pop()},{"../../../Engine/Basic/BasicView":"BasicView"}],Indicator:[function(e,t,n){"use strict";cc._RF.push(t,"57fe9KLqH5H7I84CQJ5cDvA","Indicator");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Event/EventManager"),s=e("../../../Engine/Resources/JsonResources"),r=e("../../../Engine/Tool/Tool"),u=e("../../Data/GameDataType"),c=e("../../Event/GameEventName"),l=e("../../Unit/Unit"),f=e("../Component/Recovery"),p=e("../Data/Unit/UnitConfig"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"fgui",{get:function(){return this.indicator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return p._EUnitType.Indicator},enumerable:!1,configurable:!0}),t.prototype.createNode=function(){this.mapConfig=s.default.getResources(u._EGameJsonRes.Map),this.indicator=fgui.UIPackage.createObject("ClimbMountainsView","Indicator").asCom,this.createUnit.parent.addChild(this.indicator),this.indicator.setPivot(.5,.5,!0),this.indicator.node.zIndex=2,this.updateIndicator(),a.default.onEvent(c.default.SDK.SDK_MoveMap,this,this.onMoveMap)},t.prototype.createComponents=function(){this.addComponentIntance(new f.default(this))},t.prototype.onReuseUnit=function(t){e.prototype.onReuseUnit.call(this,t),this.fgui.visible=!0,this.updateIndicator()},t.prototype.updateIndicator=function(){var e=Math.floor(this.createUnit.layer/6)+1;this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y),this.fgui.getChildAt(1).asTextField.text=e+"",e<=this.mapConfig.scenes[2].layer?this.fgui.getChildAt(0).asLoader.url="ui://ClimbMountainsView/mupai1":e<=this.mapConfig.scenes[5].layer?this.fgui.getChildAt(0).asLoader.url="ui://ClimbMountainsView/mupai2":this.fgui.getChildAt(0).asLoader.url="ui://ClimbMountainsView/mupai3"},t.prototype.onMoveMap=function(e){if(e==this.createUnit.layer&&(e=Math.floor(this.createUnit.layer/6)+1)>1){var t=this.indicator.parent.getChild("light").asCom;t.node.zIndex=5,t.setPosition(this.indicator.x,this.indicator.y+this.indicator.height/2),t.height=0,t.alpha=1,r.default.Tween.destroy(t.id),r.default.Tween.tweenTo(t,cc.tween(t).to(.5,{height:this.indicator.height}).to(1,{height:2*this.indicator.height,alpha:0}).start())}},t}(l.default);n.default=d,cc._RF.pop()},{"../../../Engine/Event/EventManager":"EventManager","../../../Engine/Resources/JsonResources":"JsonResources","../../../Engine/Tool/Tool":"Tool","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName","../../Unit/Unit":"Unit","../Component/Recovery":"Recovery","../Data/Unit/UnitConfig":"UnitConfig"}],InitLoadView:[function(e,t,n){"use strict";cc._RF.push(t,"9176biRjqxP54NC3jqdUK6e","InitLoadView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicView"),s=e("../../../Engine/Data/CommonDataType"),r=e("../../../Engine/Event/EventManager"),u=e("../../../Engine/Resources/JsonResources"),c=e("../../../Engine/Component/View/LoadProgress"),l=e("../../Data/GameDataType"),f=e("../../Event/GameEventName"),p=e("../../Game/Data/GameMusicResData"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._initView=function(){var e=this;this.progress=this.fgui.getChild("progress").asProgress,r.default.onEvent(f.default.Res.Res_LoadProgress,this,function(t){e.progress.value=t*e.progress.max});var t=!1,n=!1;cc.assetManager.loadBundle("res/prefab",function(){cc.assetManager.loadBundle("res/audio",function(){1==(t=!0)&&1==n&&e.laodComplete()})});var o=[];for(var i in s._EJsonRes)o.push(s._EJsonRes[i]);for(var i in l._EGameJsonRes)o.push(l._EGameJsonRes[i]);u.default.loadJsonResources(l.ConstObject.ResPath,o,.25,0,function(){r.default.offEventByTarget(e);var o=u.default.getResources(s._EJsonRes.ResGroup).InitLoadView;e.addComponentIntance(new c.default(e.progress,function(t){e.progress.getChild("progressText").asTextField.text=Math.round(t)+"%"},function(){n=!0,1==t&&1==n&&e.laodComplete()},o))})},t.prototype._refreshView=function(){},t.prototype._clearView=function(){},t.prototype.resize=function(){this.fgui.width=fgui.GRoot.inst.width},t.prototype.laodComplete=function(){r.default.sendEvent(f.default.Audio.Audio_PlayMusic,p.default.BGM),r.default.sendEvent(f.default.Behavior.Behavior_SetPreconditionData,l._EGameBehavior.Hall,{initLoad:!0}),r.default.sendEventByTargetID(f.default.Behavior.Behavior_EnterBehavior,l.ConstObject.GameFlowTreeID,l._EGameBehavior.Gameing)},t.resPath="InitLoadView",t}(a.default);n.default=d,cc._RF.pop()},{"../../../Engine/Basic/BasicView":"BasicView","../../../Engine/Component/View/LoadProgress":"LoadProgress","../../../Engine/Data/CommonDataType":"CommonDataType","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Resources/JsonResources":"JsonResources","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName","../../Game/Data/GameMusicResData":"GameMusicResData"}],JsonResources:[function(e,t,n){"use strict";cc._RF.push(t,"2f7b4ZCZhRER55kt3OB3TkN","JsonResources"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../Event/EventManager"),i=e("../Event/EventName"),a=e("../Tool/Tool"),s=function(){function e(){}return e.loadJsonResources=function(e,t,n,s,r){var u=this;a.default.log(""),a.default.log("\u52a0\u8f7dJson\u8d44\u6e90"),cc.assetManager.loadBundle((cc.sys.platform==cc.sys.DESKTOP_BROWSER?"":e)+"res/remoteJson",function(e,c){var l=0;for(var f in t)c.load(t[f],cc.JsonAsset,function(e,c){a.default.log(e),o.default.sendEvent(i.EventName.Res.Res_LoadProgress,l/t.length*n+s),l++,u.resources.set(c.name,c.json),l==t.length&&(a.default.log(u.resources),a.default.log("\u52a0\u8f7d\u5b8c\u6bd5"),a.default.log(""),null==r?o.default.sendEvent(i.EventName.Res.Res_LoadComplete):r())})})},e.getResources=function(e){var t=e;return 1==e.includes("/")&&(t=e.substring(e.indexOf("/")+1)),this.resources.get(t)||cc.resources.get(e,cc.JsonAsset).json},e.resources=new Map,e}();n.default=s,cc._RF.pop()},{"../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Tool/Tool":"Tool"}],KeyBoardControl:[function(e,t,n){"use strict";cc._RF.push(t,"21996T+GeJI8YIz589CemtN","KeyBoardControl");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicObject"),s=e("../../../Engine/Event/EventManager"),r=e("../../Event/GameEventName"),u=e("../../Game/GameManager"),c=e("../../SDK/sdk"),l=function(e){function t(){var t=e.call(this)||this;return t.codes=new Map,cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN,t.onKeyDown,t),cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP,t.onKeyUp,t),t}return i(t,e),t.prototype._destroy=function(){cc.systemEvent.off(cc.SystemEvent.EventType.KEY_DOWN,this.onKeyDown,this),cc.systemEvent.off(cc.SystemEvent.EventType.KEY_UP,this.onKeyUp,this),e.prototype._destroy.call(this)},t.prototype.onKeyDown=function(e){var t=!0;switch(e.keyCode){case cc.macro.KEY.left:this.codes.set(cc.macro.KEY.left,cc.macro.KEY.left),this.codes.delete(cc.macro.KEY.right);break;case cc.macro.KEY.right:this.codes.set(cc.macro.KEY.right,cc.macro.KEY.right),this.codes.delete(cc.macro.KEY.left);break;case cc.macro.KEY.up:this.codes.set(cc.macro.KEY.up,cc.macro.KEY.up),this.codes.delete(cc.macro.KEY.down);break;case cc.macro.KEY.down:this.codes.set(cc.macro.KEY.down,cc.macro.KEY.down),this.codes.delete(cc.macro.KEY.up);break;case cc.macro.KEY.z:t=!this.codes.has(cc.macro.KEY.z),this.codes.set(cc.macro.KEY.z,cc.macro.KEY.z);break;case cc.macro.KEY.s:t=!this.codes.has(cc.macro.KEY.s),this.codes.set(cc.macro.KEY.s,cc.macro.KEY.s)}1==t&&this.sendJoystickEvent()},t.prototype.onKeyUp=function(e){this.codes.delete(e.keyCode),this.sendJoystickEvent(),e.keyCode==cc.macro.KEY.s&&s.default.sendEvent(u.default.IdleEvent)},t.prototype.sendJoystickEvent=function(){this.codes.forEach(function(e){switch(e){case cc.macro.KEY.left:s.default.sendEvent(c.CMD.ENTER_KEY.toString());break;case cc.macro.KEY.right:s.default.sendEvent(c.CMD.CANCLE_KEY.toString());break;case cc.macro.KEY.up:s.default.sendEvent(c.CMD.BACK_LEFT.toString());break;case cc.macro.KEY.down:s.default.sendEvent(c.CMD.BACK_RIGHT.toString());break;case cc.macro.KEY.z:s.default.sendEvent(u.default.ActionEvent);break;case cc.macro.KEY.s:s.default.sendEvent(r.default.SDK.SDK_Move)}})},t}(a.default);n.default=l,cc._RF.pop()},{"../../../Engine/Basic/BasicObject":"BasicObject","../../../Engine/Event/EventManager":"EventManager","../../Event/GameEventName":"GameEventName","../../Game/GameManager":"GameManager","../../SDK/sdk":"sdk"}],LoadProgress:[function(e,t,n){"use strict";cc._RF.push(t,"600ffuvaVlH4JW1M3Hhg8uE","LoadProgress");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Basic/BasicObject"),s=e("../../Event/EventManager"),r=e("../../Resources/PrefabResources"),u=e("../../Resources/AudioResources"),c=e("../../Resources/ViewResources"),l=e("../../Data/CommonDataType"),f=e("../../Event/EventName"),p=function(e){function t(t,n,o,i){var a=e.call(this)||this;a.progress=t,a.success=o,s.default.onEvent(f.EventName.Res.Res_LoadComplete,a,function(){null!=a.progress?(a.progress.value=a.progress.max,n&&n(a.progress.value)):a.success&&a.success()}),null!=a.progress&&(s.default.onEvent(f.EventName.Res.Res_LoadProgress,a,function(e){null!=a.progress&&(a.progress.value=e*a.progress.max,n&&n(a.progress.value))}),a.schedule(a._update,1/60));for(var p=[],d=1,h=0;h<4;h++)p.push(.25*h);var m=i.view[l._EViewRes.Fgui],v=i.view[l._EViewRes.Cocos];return c.default.loadViewResources(m,v,.25,p[d],function(){d++,u.default.loadAudioResources(i.audio,.25,p[d],function(){d++,r.default.loadPrefabResources(i.prefab,.25,p[d],null)})}),a}return i(t,e),t.prototype._update=function(){this.progress.value==this.progress.max&&(this.success&&this.success(),this.unschedule(this._update))},t}(a.default);n.default=p,cc._RF.pop()},{"../../Basic/BasicObject":"BasicObject","../../Data/CommonDataType":"CommonDataType","../../Event/EventManager":"EventManager","../../Event/EventName":"EventName","../../Resources/AudioResources":"AudioResources","../../Resources/PrefabResources":"PrefabResources","../../Resources/ViewResources":"ViewResources"}],OverView:[function(e,t,n){"use strict";cc._RF.push(t,"a4befgoCoxBYL2zUD+gRB+s","OverView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicView"),s=e("../../../Engine/Event/EventManager"),r=e("../../../Engine/Tool/Tool"),u=e("../../Game/GameManager"),c=e("../../Data/GameDataType"),l=e("../../Event/GameEventName"),f=e("../../SDK/sdk"),p=e("../../SDK/SDKManager"),d=e("../GameView/GameView"),h=e("../HintView/HintView"),m=e("../../Game/Data/GameMusicResData"),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._initView=function(){var e=this,t=this.fgui.getChild("againButton").asCom;r.default.Tool2D.Button.addEvent(t,{touchend:function(){e.onAgain()}},this.fgui.id);var n=this.fgui.getChild("quitButton").asCom;r.default.Tool2D.Button.addEvent(n,{touchend:function(){e.onQuit()}},this.fgui.id),this.fgui.getChild("score").asTextField.text=""+c.ConstObject.Score,this.fgui.getChild("record").asTextField.text=""+c.ConstObject.Score,this.fgui.getChild("time").asTextField.text=r.default.converNumberToTimeText(c.ConstObject.Time);var o=this.fgui.getChild("rankList").asList;f.SDK.onGameEnd(0,c.ConstObject.Score,1,0,0,function(t){var n=e.fgui.getChild("stepCount").asTextField,i=e.fgui.getChild("consume").asTextField;n.text="\u76f8\u5f53\u4e8e\u6b65\u884c "+t.equivalent+" \u6b65",i.text="\u6d88\u8017\u4e86 "+t.consume+" \u5343\u5361",f.SDK.getRank(0,function(t){console.log(t);var n=t[1].list;if(null!=n&&null!=n.length&&0!=n.length){for(var i=0,a=0;a<n.length;a++)if(null!=c.ConstObject.User&&c.ConstObject.User.id==n[a].user.id){c.ConstObject.Score<n[a].score&&(e.fgui.getChild("record").asTextField.text=""+n[a].score),i=a<3?0:a;break}for(o.numItems=n.length,a=0;a<n.length;a++){var s=o.getChildAt(a).asCom;s.getChild("index").asTextField.text=n[a].rank+"",s.getChild("score").asTextField.text=n[a].score+"",s.getChild("name").asTextField.text=n[a].user.nickname,s.getChild("name").height=s.getChild("name").asTextField.fontSize,s.getChild("avatar").asLoader.url=n[a].user.avatar}o.scrollToView(i,!1),i>0&&o.scrollPane.setPosY(o.scrollPane.posY+o.lineGap)}})}),s.default.sendEvent(l.default.View.View_HideView,d.default),s.default.sendEvent(l.default.View.View_ShowView,h.default),p.default.addButton([{button:t,color:[cc.Color.WHITE,cc.Color.BLACK],callback:function(){e.onAgain()}},{button:n,color:[cc.Color.WHITE,cc.Color.BLACK],callback:function(){e.onQuit()}}])},t.prototype._refreshView=function(){},t.prototype._clearView=function(){p.default.removeButton(),s.default.sendEvent(l.default.Audio.Audio_StopSound,m.default.GameEnd)},t.prototype.resize=function(){this.fgui.width=fgui.GRoot.inst.width},t.prototype.onAgain=function(){var e={url:m.default.ClickButton,callback:null};s.default.sendEvent(l.default.Audio.Audio_PlaySound,e),s.default.sendEvent(l.default.View.View_DestroyView,t),s.default.sendEvent(l.default.View.View_DestroyView,h.default),s.default.sendEvent(l.default.View.View_ShowView,d.default),u.default.setGameView(l.default.View.View_ShowView)},t.prototype.onQuit=function(){var e={url:m.default.ClickButton,callback:null};s.default.sendEvent(l.default.Audio.Audio_PlaySound,e),s.default.sendEvent(l.default.Game_QuitGame)},t.resPath="OverView",t}(a.default);n.default=v,cc._RF.pop()},{"../../../Engine/Basic/BasicView":"BasicView","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Tool/Tool":"Tool","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName","../../Game/Data/GameMusicResData":"GameMusicResData","../../Game/GameManager":"GameManager","../../SDK/SDKManager":"SDKManager","../../SDK/sdk":"sdk","../GameView/GameView":"GameView","../HintView/HintView":"HintView"}],PauseView:[function(e,t,n){"use strict";cc._RF.push(t,"d2c802w6+FAfay+NPNfEQQm","PauseView");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicView"),s=e("../../../Engine/Data/CommonDataType"),r=e("../../../Engine/Event/EventManager"),u=e("../../../Engine/Time/TimeManager"),c=e("../../../Engine/Tool/Tool"),l=e("../../Game/GameManager"),f=e("../../Data/GameDataType"),p=e("../../Event/GameEventName"),d=e("../../SDK/SDKManager"),h=e("../GameView/GameView"),m=e("../HintView/HintView"),v=e("../../../Engine/Resources/JsonResources"),_=e("../../Game/Data/GameMusicResData"),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._initView=function(){var e=this;f.ConstObject.GameState=s._ECommonState.Pause,u.default.pause();var t=this.fgui.getChild("resetButton").asCom;c.default.Tool2D.Button.addEvent(t,{touchend:function(){e.onReset()}},this.fgui.id,.9,.9,0,!1);var n=this.fgui.getChild("continueButton").asCom;c.default.Tool2D.Button.addEvent(n,{touchend:function(){e.onContinue()}},this.fgui.id,.9,.9,0,!1);var o=this.fgui.getChild("quitButton").asCom;c.default.Tool2D.Button.addEvent(o,{touchend:function(){e.onQuit()}},this.fgui.id,.9,.9,0,!1),d.default.addButton([{button:n,color:[cc.Color.BLACK,cc.Color.BLACK],callback:function(){0==f.ConstObject.FirstEnter&&e.onContinue()}},{button:t,color:[cc.Color.BLACK,cc.Color.BLACK],callback:function(){0==f.ConstObject.FirstEnter&&e.onReset()}},{button:o,color:[cc.Color.BLACK,cc.Color.BLACK],callback:function(){0==f.ConstObject.FirstEnter&&e.onQuit()}}]),r.default.sendEvent(p.default.Audio.Audio_PauseSound,null),1==f.ConstObject.FirstEnter&&(this.fgui.node.zIndex=-1e3,r.default.onEvent(p.default.SDK.SDK_Confirm,this,this.onContinue,1)),r.default.sendEvent(p.default.View.View_ShowView,m.default)},t.prototype._refreshView=function(){var e=v.default.getResources(s._EJsonRes.View);this.fgui.node.zIndex=e.ZIndex[t.resPath]},t.prototype._clearView=function(){u.default.resume(),d.default.removeButton(),r.default.sendEvent(p.default.Audio.Audio_ResumeSound,null),r.default.sendEvent(p.default.View.View_DestroyView,m.default),0==f.ConstObject.FirstEnter&&(f.ConstObject.GameState=s._ECommonState.Runing)},t.prototype.resize=function(){this.fgui.width=fgui.GRoot.inst.width},t.prototype.onReset=function(){f.ConstObject.GameState=s._ECommonState.None;var e={url:_.default.ClickButton,callback:null};r.default.sendEvent(p.default.Audio.Audio_PlaySound,e),r.default.sendEvent(p.default.View.View_DestroyView,t),r.default.sendEvent(p.default.View.View_ShowView,h.default),l.default.setGameView(p.default.View.View_ShowView)},t.prototype.onContinue=function(){if(0==f.ConstObject.FirstEnter){var e={url:_.default.ClickButton,callback:null};r.default.sendEvent(p.default.Audio.Audio_PlaySound,e)}r.default.sendEvent(p.default.View.View_DestroyView,t)},t.prototype.onQuit=function(){var e={url:_.default.ClickButton,callback:null};r.default.sendEvent(p.default.Audio.Audio_PlaySound,e),r.default.sendEvent(p.default.Game_QuitGame)},t.resPath="PauseView",t}(a.default);n.default=g,cc._RF.pop()},{"../../../Engine/Basic/BasicView":"BasicView","../../../Engine/Data/CommonDataType":"CommonDataType","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Resources/JsonResources":"JsonResources","../../../Engine/Time/TimeManager":"TimeManager","../../../Engine/Tool/Tool":"Tool","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName","../../Game/Data/GameMusicResData":"GameMusicResData","../../Game/GameManager":"GameManager","../../SDK/SDKManager":"SDKManager","../GameView/GameView":"GameView","../HintView/HintView":"HintView"}],PhoneEventName:[function(e,t,n){"use strict";cc._RF.push(t,"5be7fprhZRF5bh2iXUrEx/Q","PhoneEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Phone_Show="Phone_Show",this.Phone_Hide="Phone_Hide"},cc._RF.pop()},{}],Popup:[function(e,t,n){"use strict";cc._RF.push(t,"e2a9a31HqZIo7mO5bt1g67a","Popup");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Basic/BasicObject"),s=e("../../Tool/Tool"),r=0,u=function(e){function t(t,n,o,i,a){var u=e.call(this)||this;return t.node.zIndex+=r,r++,u.view=t,u.cover=n,u.window=o,u.closeFunction=a,u.window.on(cc.Node.EventType.TOUCH_END,function(){}),u.cover.on(cc.Node.EventType.TOUCH_END,function(){u.hide()}),u.closeButton=i,s.default.Tool2D.Button.addEvent(u.closeButton,{touchend:function(){u.hide()}},u.view.fgui.id),u.window.setScale(.3,.3),u}return i(t,e),t.prototype.show=function(){this.window.setScale(.3,.3),s.default.Tween.tweenTo(this.window,cc.tween(this.window).to(.1,{scaleX:1,scaleY:1},cc.easeBackOut()).start())},t.prototype.hide=function(){var e=this;s.default.Tween.tweenTo(this.window,cc.tween(this.window).to(.1,{scaleX:.3,scaleY:.3}).call(function(){e.closeFunction&&e.closeFunction()}).start())},t.prototype._destroy=function(){s.default.Tween.destroy(this.window.id),e.prototype._destroy.call(this)},t}(a.default);n.default=u,cc._RF.pop()},{"../../Basic/BasicObject":"BasicObject","../../Tool/Tool":"Tool"}],PrefabResources:[function(e,t,n){"use strict";cc._RF.push(t,"93729IP7mlLg4r6ZfamkPwE","PrefabResources"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../Event/EventManager"),i=e("../Event/EventName"),a=e("../Tool/Tool"),s=function(){function e(){}return e.loadPrefabResources=function(e,t,n,s){var r=this;a.default.log("\u52a0\u8f7d\u9884\u5236\u4f53\u8d44\u6e90");var u=function(){a.default.log(r.resources),a.default.log("\u52a0\u8f7d\u5b8c\u6bd5"),a.default.log(""),null==s?o.default.sendEvent(i.EventName.Res.Res_LoadComplete):s()};0==e.length?u():cc.assetManager.loadBundle("res/prefab",function(s,c){r.bundle=c,r.bundle.load(e,cc.Asset,function(e,a){o.default.sendEvent(i.EventName.Res.Res_LoadProgress,e/a*t+n)},function(e,t){for(var n in a.default.log(e),t)r.resources.set(t[n].name,t[n]);u()})})},e.getResources=function(e){var t=e;return 1==e.includes("/")&&(t=e.substring(e.indexOf("/")+1)),null!=this.resources.get(t)?this.resources.get(t):this.bundle.get(t)},e.resources=new Map,e.bundle=null,e}();n.default=s,cc._RF.pop()},{"../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Tool/Tool":"Tool"}],PropEventName:[function(e,t,n){"use strict";cc._RF.push(t,"0b0f1ZIrt5Ip4vZic1GsRZ8","PropEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Prop_CreateProp="Prop_CreateProp",this.Prop_RemoveProp="Prop_RemoveProp",this.Prop_RemoveUnitProp="Prop_RemoveUnitProp",this.Prop_GetProp="Prop_GetProp",this.Prop_CollectProp="Prop_CollectProp",this.Prop_WearProp="Prop_WearProp"},cc._RF.pop()},{}],Recovery:[function(e,t,n){"use strict";cc._RF.push(t,"c73c7D+CUBI4rlA/Pvmh1x1","Recovery");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicObject"),s=e("../../../Engine/Event/EventManager"),r=e("../../Event/GameEventName"),u=function(e){function t(t){var n=e.call(this)||this;return n.unit=t,s.default.onEvent(r.default.SDK.SDK_MoveMapComplete,n,n.onMoveMapComplete),n}return i(t,e),t.prototype.onMoveMapComplete=function(e){1==this.unit.isEnabled&&this.unit.createUnit.layer<=e-2&&(this.unit.fgui.visible=!1,this.unit.isEnabled=!1)},t}(a.default);n.default=u,cc._RF.pop()},{"../../../Engine/Basic/BasicObject":"BasicObject","../../../Engine/Event/EventManager":"EventManager","../../Event/GameEventName":"GameEventName"}],ResEventName:[function(e,t,n){"use strict";cc._RF.push(t,"c54a5fRRe5HxoeuLsexTgSz","ResEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Res_LoadProgress="Res_LoadProgress",this.Res_LoadComplete="Res_LoadComplete"},cc._RF.pop()},{}],RobotEventName:[function(e,t,n){"use strict";cc._RF.push(t,"1e7e4GxdQdHa40yHMeErNNX","RobotEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Robot_CreateRobot="Robot_CreateRobot",this.Robot_RemoveRobot="Robot_RemoveRobot",this.Robot_OpenRobot="Robot_OpenRobot",this.Robot_StopRobot="Robot_StopRobot"},cc._RF.pop()},{}],RoleCollision:[function(e,t,n){"use strict";cc._RF.push(t,"b8d59/ignFJ3YWjzNKyMXXD","RoleCollision");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicObject"),s=e("../../../Engine/Event/EventManager"),r=e("../../Event/GameEventName"),u=e("../Data/Unit/UnitConfig"),c=function(e){function t(t){var n=e.call(this)||this;return n._isUpdate=!0,n.role=t,n.unitRect=new cc.Rect,n.graph=new fgui.GGraph,n.role.fgui.parent.addChild(n.graph),n.graph.node.zIndex=4,s.default.onEvent(r.default.Game_ReadyStartGame,n,n.onReadyStartGame),s.default.onEvent(r.default.SDK.SDK_MoveLayerComplete,n,n.onMoveLayerComplete),n}return i(t,e),t.prototype.onReadyStartGame=function(){this.isHit=!1,this.collisionTime=0,this.onMoveLayerComplete()},t.prototype.onMoveLayerComplete=function(){var e=this,t={type:null,unitID:null,teamID:["1","2"],isLiving:!1,callback:function(t){e.enemys=t}};s.default.sendEvent(r.default.Unit.Unit_GetUnit,t)},t.prototype._update=function(e){var t=this;if(this.collisionTime>0&&(this.collisionTime-=e,this.collisionTime<=0&&s.default.sendEvent(r.default.SDK.SDK_CollisionComplete)),null!=this.enemys&&0==this.isHit){this.unitRect.width=this.role.fgui.width,this.unitRect.height=this.role.fgui.height,this.unitRect.x=this.role.fgui.x-this.unitRect.width*this.role.fgui.pivotX,this.unitRect.y=this.role.fgui.y-this.unitRect.height*this.role.fgui.pivotY,this.moveSpeed=cc.v2(this.role.roleConfig.moveRange/this.role.roleConfig.moveSpeed,(this.role.mapConfig.itemGap+64)/this.role.roleConfig.moveSpeed);var n=[],o=cc.v2(),i=cc.v2();this.enemys.forEach(function(e){if(0==t.isHit&&1==e.isEnabled&&e.createUnit.layer==t.role.layer){o=cc.v2(e.fgui.width*e.fgui.pivotX,e.fgui.height*e.fgui.pivotY),i=cc.v2(e.fgui.x,e.fgui.y),n.splice(0),n.push(l(cc.v2(e.fgui.x-o.x,e.fgui.y+o.y),e.fgui.rotation,i)),n.push(l(cc.v2(e.fgui.x+o.x,e.fgui.y+o.y),e.fgui.rotation,i)),n.push(l(cc.v2(e.fgui.x+o.x,e.fgui.y-o.y),e.fgui.rotation,i)),n.push(l(cc.v2(e.fgui.x-o.x,e.fgui.y-o.y),e.fgui.rotation,i));var a=e.fgui.rotation<0?n[0].y:n[1].y;if(1==cc.Intersection.rectPolygon(t.unitRect,n))if("1"==e.createUnit.teamID){if(a+e.fgui.height/3<=t.unitRect.y+t.unitRect.height)return t.isHit=!0,void s.default.sendEvent(r.default.SDK.SDK_Hit,e.id,e.fgui.x);e.type!=u._EUnitType.Coin&&(t.role.fgui.scaleX>0?t.collisionTime=Math.abs(n[0].x+e.fgui.width-t.role.fgui.x):t.collisionTime=Math.abs(n[0].x-t.role.fgui.x),t.collisionTime+=20,e.type==u._EUnitType.Boom?t.collisionTime/=t.moveSpeed.x:e.type==u._EUnitType.Stone&&(t.collisionTime/=2.3*t.moveSpeed.x),t.collisionTime<0?(t.isHit=!0,s.default.sendEvent(r.default.SDK.SDK_Hit,e.id,e.fgui.x)):s.default.sendEvent(r.default.SDK.SDK_Collision,e))}else"2"==e.createUnit.teamID&&s.default.sendEventByTargetID(r.default.SDK.SDK_Coin,e.id)}})}},t}(a.default);function l(e,t,n){var o=Math.cos(t*Math.PI/180),i=Math.sin(t*Math.PI/180),a=n.x+(e.x-n.x)*o-(e.y-n.y)*i,s=n.y+(e.x-n.x)*i-(e.y-n.y)*o;return cc.v2(a,s)}n.default=c,cc._RF.pop()},{"../../../Engine/Basic/BasicObject":"BasicObject","../../../Engine/Event/EventManager":"EventManager","../../Event/GameEventName":"GameEventName","../Data/Unit/UnitConfig":"UnitConfig"}],RoleMove:[function(e,t,n){"use strict";cc._RF.push(t,"a6823KWM4BMraWMfmE1oajw","RoleMove");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicObject"),s=e("../../../Engine/Data/CommonDataType"),r=e("../../../Engine/Event/EventManager"),u=e("../../../Engine/Resources/JsonResources"),c=e("../../../Engine/Tool/Tool"),l=e("../../Data/GameDataType"),f=e("../../Event/GameEventName"),p=e("../GameManager"),d=function(e){function t(t,n){var o=e.call(this)||this;return o._id=t.id,o.mapConfig=c.default.dataAllCover({},u.default.getResources(l._EGameJsonRes.Map)),o.roleConfig=n,o.role=t,o.role.layer=0,o.startPosY=o.role.createUnit.pos.y,o.initMoveSpeed=o.roleConfig.moveSpeed,o.isMove=!1,o.isStop=!0,o.isCollision=!1,o.moveSpeed=cc.v2(),o.movePos=cc.v2(),o.moveLayerCount=0,o.movePosX=[o.roleConfig.movePos[0],o.roleConfig.movePos[1],o.roleConfig.moveRange-o.roleConfig.movePos[2],o.roleConfig.moveRange-o.roleConfig.movePos[3]],o.moveIndex=1,o.jumpState=0,o.jumpTime=0,o.stopTime=0,r.default.onEvent(f.default.Game_ReadyStartGame,o,o.onReadyStartGame),r.default.onEvent(f.default.SDK.SDK_Action,o,o.onJump),r.default.onEvent(f.default.SDK.SDK_Collision,o,o.onCollision),r.default.onEvent(f.default.SDK.SDK_CollisionComplete,o,o.onCollisionComplete),r.default.onEvent(p.default.IdleEvent,o,o.onIdleEvent),r.default.onEvent(f.default.SDK.SDK_Move,o,o.onMoveEvent),r.default.onEvent(f.default.SDK.SDK_MoveMapComplete,o,o.onMoveMapComplete),r.default.onEvent(f.default.SDK.SDK_UpgradeDifficulty,o,o.onUpgradeDifficulty),o}return i(t,e),t.prototype._update=function(e){if(0==this.isMove&&0==this.isStop&&0==this.jumpState)if(this.stopTime<=0){if(Math.abs(this.moveSpeed.x)<=100)return this.isStop=!0,this.moveSpeed=cc.v2(),void r.default.sendEvent(f.default.SDK.SDK_StopMove);this.moveSpeed.x*=this.roleConfig.stopSpeed,this.moveSpeed.y*=this.roleConfig.stopSpeed}else this.stopTime-=e;if(this.moveLayerCount<this.roleConfig.moveLayerCount&&(this.movePos.x+=this.moveSpeed.x*e),2==this.moveIndex&&(this.movePos.y+=this.moveSpeed.y*e),this.moveLayerCount<this.roleConfig.moveLayerCount&&(this.movePos.x>=this.movePosX[this.moveIndex]&&this.role.fgui.scaleX>0||this.movePos.x<=this.movePosX[this.movePosX.length-this.moveIndex-1]&&this.role.fgui.scaleX<0)&&(this.moveIndex++,this.moveIndex>=this.movePosX.length&&(this.role.layer++,this.moveLayerCount++,r.default.sendEvent(f.default.SDK.SDK_MoveLayerComplete,this.role.layer),this.moveLayerCount>=this.roleConfig.moveLayerCount&&(this.movePos.x=this.role.fgui.scaleX>0?this.movePosX[this.movePosX.length-1]:this.movePosX[0],r.default.sendEvent(f.default.SDK.SDK_MoveMap,this.role.layer)),this.moveIndex=1,this.moveSpeed.x*=-1,this.role.fgui.scaleX*=-1,this.movePos.y=this.startPosY-this.role.layer*this.mapConfig.itemGap)),this.role.fgui.x=this.movePos.x,this.role.fgui.y=this.movePos.y,this.jumpState>0){var t=0;1==this.jumpState?(0==this.isCollision&&(this.jumpTime+=e),t+=this.roleConfig.jumpHeight*h(this.jumpTime/this.roleConfig.jumpTime),this.jumpTime>=this.roleConfig.jumpTime&&(this.jumpState=2)):2==this.jumpState&&(0==this.isCollision&&(this.jumpTime-=e),t+=this.roleConfig.jumpHeight*h(this.jumpTime/this.roleConfig.jumpTime),this.role.fgui.y-t>this.role.fgui.y&&(t=0),this.jumpTime<=0&&(this.jumpState=0,r.default.sendEvent(f.default.SDK.SDK_JumpComplete,this.moveSpeed.x))),this.role.fgui.y-=t}},t.prototype.onReadyStartGame=function(){this._isUpdate=!0,this.role.layer=0,this.roleConfig.moveSpeed=this.initMoveSpeed,this.isMove=!1,this.isStop=!0,this.isCollision=!1,this.moveSpeed=cc.v2(),this.moveLayerCount=0,this.movePos.x=this.role.fgui.x,this.movePos.y=this.role.fgui.y,this.moveIndex=1,this.jumpState=0,this.jumpTime=0},t.prototype.onJump=function(){this.jumpState>0||this.moveLayerCount>=this.roleConfig.moveLayerCount||l.ConstObject.GameState!=s._ECommonState.Runing||(this.jumpState=1,this.jumpTime=0)},t.prototype.onCollision=function(e){this.jumpState<2?r.default.sendEvent(f.default.SDK.SDK_Hit,e.id,e.fgui.x):(e.isEnabled=!1,this.isCollision=!0)},t.prototype.onCollisionComplete=function(){this.isCollision=!1},t.prototype.onIdleEvent=function(){0==this.stopTime&&(this.isMove=!1,this.stopTime=this.roleConfig.stopTime)},t.prototype.onMoveEvent=function(){l.ConstObject.GameState==s._ECommonState.Runing&&(this.isMove=!0,this.isStop=!1,this.stopTime=0,this.moveSpeed=cc.v2(this.roleConfig.moveRange/this.roleConfig.moveSpeed,-(this.mapConfig.itemGap+64)/this.roleConfig.moveSpeed),this.moveSpeed.x*=this.role.fgui.scaleX)},t.prototype.onMoveMapComplete=function(){this.moveLayerCount=0},t.prototype.onUpgradeDifficulty=function(){this.roleConfig.moveSpeed-=this.roleConfig.addMoveSpeed},t}(a.default);function h(e){return Math.sin(e*Math.PI/2)}n.default=d,cc._RF.pop()},{"../../../Engine/Basic/BasicObject":"BasicObject","../../../Engine/Data/CommonDataType":"CommonDataType","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Resources/JsonResources":"JsonResources","../../../Engine/Tool/Tool":"Tool","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName","../GameManager":"GameManager"}],Role:[function(e,t,n){"use strict";cc._RF.push(t,"c74907V8gVIYbbtd2zsUw2v","Role");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Component/Object/FrameAnimation/FrameAnimation"),s=e("../../../Engine/Data/CommonDataType"),r=e("../../../Engine/Event/EventManager"),u=e("../../../Engine/Resources/JsonResources"),c=e("../../../Engine/Time/TimeManager"),l=e("../../../Engine/Tool/Tool"),f=e("../../../Engine/Tool/Tool/Eval"),p=e("../../Data/GameDataType"),d=e("../../Event/GameEventName"),h=e("../../Unit/Unit"),m=e("../Component/RoleCollision"),v=e("../Component/RoleMove"),_=e("../Data/GameMusicResData"),g=e("../Data/Unit/UnitConfig"),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"fgui",{get:function(){return this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return g._EUnitType.Role},enumerable:!1,configurable:!0}),t.prototype.createNode=function(){this.mapConfig=l.default.dataAllCover({},u.default.getResources(p._EGameJsonRes.Map)),this.roleConfig=l.default.dataAllCover({},u.default.getResources(p._EGameJsonRes.Role)),this.role=fgui.UIPackage.createObject("ClimbMountainsView","Role").asCom,this.createUnit.parent.addChild(this.role),this.role.setPivot(.5,.5,!0),this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y),this.role.node.zIndex=6,r.default.onEvent(d.default.Game_ReadyStartGame,this,this.onReadyStartGame,1),r.default.onEvent(d.default.SDK.SDK_Hit,this,this.onHit),r.default.onEvent(d.default.SDK.SDK_Action,this,this.onJump),r.default.onEvent(d.default.SDK.SDK_JumpComplete,this,this.onJumpComplete),r.default.onEvent(d.default.SDK.SDK_StopMove,this,this.onStopMove),r.default.onEvent(d.default.SDK.SDK_Move,this,this.onMoveEvent)},t.prototype.createComponents=function(){this.createFrameAnimation(),this.addComponentIntance(new m.default(this)),this.addComponentIntance(new v.default(this,this.roleConfig))},t.prototype.createFrameAnimation=function(){for(var e=[{name:"Idle",loop:0,count:5,res:"ui://ClimbMountainsView/animation_"},{name:"Move",loop:0,count:3,res:"ui://ClimbMountainsView/qierpaobu_"},{name:"Jump",loop:0,count:1,res:"ui://ClimbMountainsView/tiao_"}],t={target:this.role._children[0].asCom,animations:[]},n=0;n<e.length;n++){for(var o={name:e[n].name,loop:e[n].loop,res:[],frame:f.default.eval("1/15")},i=0;i<e[n].count;i++)o.res.push(e[n].res+i);t.animations.push(o)}this.frameAnimation=this.addComponentIntance(new a.default(t)),this.onStopMove()},t.prototype.onReadyStartGame=function(){l.default.Tween.destroy(this.fgui.id),this._isUpdate=!0,this._createUnit.layer=0,this.fgui.scaleX=1,this.fgui.rotation=0,this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y),this.onStopMove()},t.prototype.onHit=function(e,t){var n=this;this._isUpdate=!1,c.default.schedule(this,this.onShake,1/30,10),l.default.Tween.destroy(this.fgui.id),l.default.Tween.tweenTo(this.fgui,cc.tween(this.fgui).bezierTo(.7,cc.v2(this.fgui.x,this.fgui.y),cc.v2(this.fgui.x+(t>=this.fgui.x?-200:200),this.fgui.y-200),cc.v2(this.fgui.x+(t>=this.fgui.x?-400:400),this.fgui.y+200)).call(function(){n.fgui.y=cc.winSize.height+300,r.default.sendEvent(d.default.Game_EndGame),n.unschedule(n.onShake),n.onStopMove()}).start()),l.default.Tween.tweenTo(this.fgui,cc.tween(this.fgui).to(.7,{rotation:this.fgui.rotation+(t>=this.fgui.x?-700:700)}).start());var o={url:_.default.GameEnd,callback:null};r.default.sendEvent(d.default.Audio.Audio_PlaySound,o)},t.prototype.onShake=function(){this.fgui.parent.x+=20*Math.random()-10,this.fgui.parent.y+=20*Math.random()-10},t.prototype.onJump=function(){if(p.ConstObject.GameState==s._ECommonState.Runing){this.frameAnimation.play("Jump");var e={url:_.default.Jump,callback:null};r.default.sendEvent(d.default.Audio.Audio_PlaySound,e)}},t.prototype.onJumpComplete=function(e){0!=e?this.onMoveEvent():this.onStopMove();var t={url:_.default.Fall,callback:null};r.default.sendEvent(d.default.Audio.Audio_PlaySound,t)},t.prototype.onStopMove=function(){this.frameAnimation.play("Idle")},t.prototype.onMoveEvent=function(){p.ConstObject.GameState==s._ECommonState.Runing&&this.frameAnimation.play("Move")},t}(h.default);n.default=y,cc._RF.pop()},{"../../../Engine/Component/Object/FrameAnimation/FrameAnimation":"FrameAnimation","../../../Engine/Data/CommonDataType":"CommonDataType","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Resources/JsonResources":"JsonResources","../../../Engine/Time/TimeManager":"TimeManager","../../../Engine/Tool/Tool":"Tool","../../../Engine/Tool/Tool/Eval":"Eval","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName","../../Unit/Unit":"Unit","../Component/RoleCollision":"RoleCollision","../Component/RoleMove":"RoleMove","../Data/GameMusicResData":"GameMusicResData","../Data/Unit/UnitConfig":"UnitConfig"}],RootScene:[function(e,t,n){"use strict";cc._RF.push(t,"e1b90/rohdEk4SdmmEZANaD","RootScene");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__decorate||function(e,t,n,o){var i,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var s=e("./Engine/Data/CommonDataType"),r=e("./Engine/Engine"),u=e("./Engine/Event/EventManager"),c=e("./Engine/Resources/JsonResources"),l=e("./Game/GameFlowTree/GameFlowTree"),f=e("./Game/Data/DataManager"),p=e("./Game/Data/GameDataType"),d=e("./Game/Event/GameEventName"),h=e("./Game/Unit/UnitManager"),m=e("./Game/View/InitLoadView/InitLoadView"),v=e("./Engine/Tool/Tool"),_=e("./Game/SDK/SDKManager"),g=cc._decorator,y=g.ccclass,E=(g.property,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.start=function(){var e=this;v.default.isLog=!1,p.ConstObject.IsEnableTouch=!1,cc.game.setFrameRate(59),cc.assetManager.loadBundle("res/cocos",function(){cc.assetManager.loadBundle("res/fgui",function(t,n){var o=[s._EJsonRes.Game,s._EJsonRes.View,s._EJsonRes.GameFlowTree,p._EGameJsonRes.UserData];c.default.loadJsonResources(p.ConstObject.ResPath,o,0,0,function(){new r.default(function(t){u.default.onEvent(d.default.UserData.UserData_ReadUserData,e,function(t){new l.default(e.node,c.default.getResources(s._EJsonRes.GameFlowTree));var o=n._config.paths._map,i=[];for(var a in o)1==a.includes(m.default.resPath)&&i.push(a);n.load(i,function(){u.default.sendEventByTargetID(d.default.Behavior.Behavior_EnterBehavior,p.ConstObject.GameFlowTreeID,t)})}),t.managers.push(new h.default),t.managers.push(new _.default),t.managers.push(new f.default)})})})})},a([y],t)}(cc.Component));n.default=E,cc._RF.pop()},{"./Engine/Data/CommonDataType":"CommonDataType","./Engine/Engine":"Engine","./Engine/Event/EventManager":"EventManager","./Engine/Resources/JsonResources":"JsonResources","./Engine/Tool/Tool":"Tool","./Game/Data/DataManager":"DataManager","./Game/Data/GameDataType":"GameDataType","./Game/Event/GameEventName":"GameEventName","./Game/GameFlowTree/GameFlowTree":"GameFlowTree","./Game/SDK/SDKManager":"SDKManager","./Game/Unit/UnitManager":"UnitManager","./Game/View/InitLoadView/InitLoadView":"InitLoadView"}],SDKEventName:[function(e,t,n){"use strict";cc._RF.push(t,"b234eJRQDBIIoybJhxboVVr","SDKEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.SDK_Confirm="SDK_Confirm",this.SDK_Cancel="SDK_Cancel",this.SDK_Up="SDK_Up",this.SDK_Down="SDK_Down",this.SDK_Action="SDK_Action",this.SDK_UpgradeDifficulty="SDK_UpgradeDifficulty",this.SDK_Collision="SDK_Collision",this.SDK_CollisionComplete="SDK_CollisionComplete",this.SDK_Move="SDK_Move",this.SDK_StopMove="SDK_StopMove",this.SDK_JumpComplete="SDK_JumpComplete",this.SDK_MoveMap="SDK_MoveMap",this.SDK_MoveMapComplete="SDK_MoveMapComplete",this.SDK_MoveLayerComplete="SDK_MoveLayerComplete",this.SDK_Hit="SDK_Hit",this.SDK_Coin="SDK_Coin"},cc._RF.pop()},{}],SDKManager:[function(e,t,n){"use strict";cc._RF.push(t,"3794f8A3rdAS4K54H5Q9oIc","SDKManager");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Basic/BasicManager"),s=e("../../Engine/Event/EventManager"),r=e("../../Engine/Tool/Tool"),u=e("../Event/GameEventName"),c=e("../Game/GameManager"),l=e("./sdk"),f=function(e){function t(){var t=e.call(this)||this;return r.default.log("\u751f\u6210SDK\u7ba1\u7406\u5668"),l.SDK.on(l.CMD.ENTER_KEY.toString(),t.confirm,t),l.SDK.on(l.CMD.CANCLE_KEY.toString(),t.cancel,t),l.SDK.on(l.CMD.BACK_LEFT.toString(),t.up,t),l.SDK.on(l.CMD.BACK_RIGHT.toString(),t.down,t),s.default.onEvent(l.CMD.ENTER_KEY.toString(),t,t.confirm),s.default.onEvent(l.CMD.CANCLE_KEY.toString(),t,t.cancel),s.default.onEvent(l.CMD.BACK_LEFT.toString(),t,t.up),s.default.onEvent(l.CMD.BACK_RIGHT.toString(),t,t.down),l.SDK.on(c.default.ActionEvent,t.action,t),s.default.onEvent(c.default.ActionEvent,t,t.action),t}return i(t,e),t.addButton=function(e){t.buttons.length>0&&null!=t.buttons[t.buttons.length-1][t.buttonIndex]&&(t.buttons[t.buttons.length-1][t.buttonIndex].button.getChildAt(1).visible=!1,t.buttons[t.buttons.length-1][t.buttonIndex].button.getChildAt(2).asTextField.color=t.buttons[t.buttons.length-1][t.buttonIndex].color[0]),t.buttons.push(e),t.buttonIndex=0,t.updateButton(0)},t.removeButton=function(e){void 0===e&&(e=1),t.buttons.splice(t.buttons.length-e,e),t.buttons.length>0&&null!=t.buttons[t.buttons.length-1][t.buttonIndex]&&t.updateButton(0)},t.updateButton=function(e){t.buttons.length>0&&null!=t.buttons[t.buttons.length-1][t.buttonIndex]&&(0!=e&&(t.buttons[t.buttons.length-1][t.buttonIndex].button.getChildAt(1).visible=!1,t.buttons[t.buttons.length-1][t.buttonIndex].button.getChildAt(2).asTextField.color=t.buttons[t.buttons.length-1][t.buttonIndex].color[0],t.buttonIndex+=e,t.buttonIndex<0?t.buttonIndex=t.buttons[t.buttons.length-1].length-1:t.buttonIndex>=t.buttons[t.buttons.length-1].length&&(t.buttonIndex=0)),t.buttons[t.buttons.length-1][t.buttonIndex].button.getChildAt(1).visible=!0,t.buttons[t.buttons.length-1][t.buttonIndex].button.getChildAt(2).asTextField.color=t.buttons[t.buttons.length-1][t.buttonIndex].color[1])},t.prototype.confirm=function(){t.buttons.length>0&&null!=t.buttons[t.buttons.length-1][t.buttonIndex]&&t.buttons[t.buttons.length-1][t.buttonIndex].callback&&t.buttons[t.buttons.length-1][t.buttonIndex].callback(),s.default.sendEvent(u.default.SDK.SDK_Confirm)},t.prototype.cancel=function(){s.default.sendEvent(u.default.SDK.SDK_Cancel)},t.prototype.up=function(){s.default.sendEvent(u.default.SDK.SDK_Up),t.updateButton(-1)},t.prototype.down=function(){s.default.sendEvent(u.default.SDK.SDK_Down),t.updateButton(1)},t.prototype.action=function(){s.default.sendEvent(u.default.SDK.SDK_Action)},t.prototype._destroy=function(){r.default.log("\u9500\u6bc1SDK\u7ba1\u7406\u5668"),t.buttons=null,l.SDK.onBackPressed(),e.prototype._destroy.call(this)},t.buttons=[],t.buttonIndex=0,t}(a.default);n.default=f,cc._RF.pop()},{"../../Engine/Basic/BasicManager":"BasicManager","../../Engine/Event/EventManager":"EventManager","../../Engine/Tool/Tool":"Tool","../Event/GameEventName":"GameEventName","../Game/GameManager":"GameManager","./sdk":"sdk"}],SkillEventName:[function(e,t,n){"use strict";cc._RF.push(t,"e3425mfMJlN7ZwRinMbet7n","SkillEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Skill_EmitSkill="Skill_EmitSkill",this.Skill_AgainEmitSkill="Skill_AgainEmitSkill",this.Skill_ProhibitEmitSkill="Skill_ProhibitEmitSkill",this.Skill_RemoveSkill="Skill_RemoveSkill",this.Skill_EmitSkillComplete="Skill_EmitSkillComplete",this.Skill_FlyingMaxDistance="Skill_FlyingMaxDistance"},cc._RF.pop()},{}],StoneMove:[function(e,t,n){"use strict";cc._RF.push(t,"4d195WLwIpFjooO2b9zkIgi","StoneMove");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Basic/BasicObject"),s=e("../../../Engine/Event/EventManager"),r=e("../../../Engine/Resources/JsonResources"),u=e("../../../Engine/Tool/Tool"),c=e("../../Data/GameDataType"),l=e("../../Event/GameEventName"),f=function(e){function t(t){var n=e.call(this)||this;return n._isUpdate=!1,n._id=t.id,n.mapConfig=u.default.dataAllCover({},r.default.getResources(c._EGameJsonRes.Map)),n.roleConfig=u.default.dataAllCover({},r.default.getResources(c._EGameJsonRes.Role)),n.roleConfig.moveSpeed*=1.3,n.stone=t,n.startPosY=cc.winSize.height-n.mapConfig.startPosY,n.initMoveSpeed=n.roleConfig.moveSpeed,n.moveSpeed=cc.v2(),n.movePos=cc.v2(),n.moveLayerCount=0,n.movePosX=[n.roleConfig.movePos[0],n.roleConfig.movePos[1],n.roleConfig.moveRange-n.roleConfig.movePos[2],n.roleConfig.moveRange-n.roleConfig.movePos[3]],n.moveIndex=1,s.default.onEvent(l.default.Game_ReadyStartGame,n,n.onReadyStartGame),s.default.onEvent(l.default.SDK.SDK_MoveMap,n,n.onMoveMap),s.default.onEvent(l.default.SDK.SDK_MoveMapComplete,n,n.onMoveMapComplete),s.default.onEvent(l.default.SDK.SDK_MoveLayerComplete,n,n.onMoveLayerComplete),n}return i(t,e),t.prototype._update=function(e){this.moveLayerCount<this.roleConfig.moveLayerCount&&(this.movePos.x+=this.moveSpeed.x*e),1==this.moveIndex?this.stone.fgui.rotation+=5*this.stone.fgui.scaleX:2==this.moveIndex?(this.stone.fgui.rotation+=10*this.stone.fgui.scaleX,this.movePos.y+=this.moveSpeed.y*e):3==this.moveIndex&&(this.stone.fgui.rotation+=5*this.stone.fgui.scaleX),this.moveLayerCount<this.roleConfig.moveLayerCount&&(this.movePos.x>=this.movePosX[this.moveIndex]&&this.stone.fgui.scaleX>0||this.movePos.x<=this.movePosX[this.movePosX.length-1-this.moveIndex]&&this.stone.fgui.scaleX<0)&&(this.moveIndex++,this.moveIndex>=this.movePosX.length&&(this._isUpdate=!1,this.moveLayerCount++,this.moveLayerCount>=this.roleConfig.moveLayerCount&&(this.movePos.x=this.stone.fgui.scaleX>0?this.movePosX[this.movePosX.length-1]:this.movePosX[0]),this.moveIndex=1,this.moveSpeed.x*=-1,this.movePos.y=this.startPosY-this.stone.createUnit.layer*this.mapConfig.itemGap-20)),this.stone.fgui.x=this.movePos.x,this.stone.fgui.y=this.movePos.y},t.prototype.onReadyStartGame=function(){this._isUpdate=!1},t.prototype.onMoveMap=function(){this._isUpdate=!1},t.prototype.onMoveMapComplete=function(e){e==this.stone.createUnit.layer&&1==this.isEnabled&&(this._isUpdate=!0)},t.prototype.onMoveLayerComplete=function(e){e==this.stone.createUnit.layer&&1==this.isEnabled&&(this._isUpdate=!0,this.roleConfig.moveSpeed=this.initMoveSpeed,this.moveSpeed=cc.v2(),this.moveLayerCount=0,this.movePos.x=this.stone.fgui.x,this.movePos.y=this.stone.fgui.y,this.moveIndex=1,this.moveSpeed=cc.v2(this.roleConfig.moveRange/this.roleConfig.moveSpeed,(this.mapConfig.itemGap+64)/this.roleConfig.moveSpeed),this.stone.fgui.x>=this.movePosX[2]&&(this.stone.fgui.scaleX=-1*this.stone.fgui.scaleX,this.moveSpeed.x=-1*this.moveSpeed.x))},t}(a.default);n.default=f,cc._RF.pop()},{"../../../Engine/Basic/BasicObject":"BasicObject","../../../Engine/Event/EventManager":"EventManager","../../../Engine/Resources/JsonResources":"JsonResources","../../../Engine/Tool/Tool":"Tool","../../Data/GameDataType":"GameDataType","../../Event/GameEventName":"GameEventName"}],Stone:[function(e,t,n){"use strict";cc._RF.push(t,"022d1tkA19AN74L7zBu5weR","Stone");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Engine/Event/EventManager"),s=e("../../Event/GameEventName"),r=e("../../Unit/Unit"),u=e("../Component/Recovery"),c=e("../Component/StoneMove"),l=e("../Data/GameMusicResData"),f=e("../Data/Unit/UnitConfig"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"fgui",{get:function(){return this.stone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return f._EUnitType.Stone},enumerable:!1,configurable:!0}),t.prototype.createNode=function(){this.stone=fgui.UIPackage.createObject("ClimbMountainsView","Stone").asCom,this.createUnit.parent.addChild(this.stone),this.stone.setPivot(.5,.5,!0),this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y),this.stone.node.zIndex=3,a.default.onEvent(s.default.SDK.SDK_Hit,this,this.onHit)},t.prototype.createComponents=function(){this.addComponentIntance(new c.default(this)),this.addComponentIntance(new u.default(this))},t.prototype.onReuseUnit=function(t){e.prototype.onReuseUnit.call(this,t),this.fgui.visible=!0,this.fgui.scaleX=1,this.fgui.rotation=0,this.fgui.setPosition(this.createUnit.pos.x,this.createUnit.pos.y)},t.prototype.onHit=function(){var e={url:l.default.Stone,callback:null};a.default.sendEvent(s.default.Audio.Audio_PlaySound,e)},t}(r.default);n.default=p,cc._RF.pop()},{"../../../Engine/Event/EventManager":"EventManager","../../Event/GameEventName":"GameEventName","../../Unit/Unit":"Unit","../Component/Recovery":"Recovery","../Component/StoneMove":"StoneMove","../Data/GameMusicResData":"GameMusicResData","../Data/Unit/UnitConfig":"UnitConfig"}],TeamDynamicPlan:[function(e,t,n){"use strict";cc._RF.push(t,"5bb08OM7N1NXbAOGgrb7W2S","TeamDynamicPlan");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../../Basic/BasicObject"),s=e("./DynamicPlan"),r=function(e){function t(t,n){var o=e.call(this)||this;return o.dynamicPlanConfig=t,o.dynamicPlanTaskConfig=n,o.dynamicPlans=new Map,o.dynamicPlanTasks=new Map,o}return i(t,e),t.prototype.getDynamicPlan=function(e){return this.dynamicPlans.get(e)},t.prototype.getDynamicPlanTask=function(e){return this.dynamicPlanTasks.get(e)},t.prototype.hasDynamicPlanTask=function(e){return this.dynamicPlanTasks.has(e)},t.prototype.addUnit=function(e){0==this.dynamicPlans.has(e)&&this.dynamicPlans.set(e,new s.default(e,this.dynamicPlanConfig))},t.prototype.removeUnit=function(e){1==this.dynamicPlans.has(e)&&(this.dynamicPlans.get(e)._destroy(),this.dynamicPlans.delete(e))},t.prototype.addDynamicPlan=function(e,t){1==this.dynamicPlans.has(e)&&this.dynamicPlans.get(e).addDynamicPlan(t)},t.prototype.removeDynamicPlan=function(e,t){1==this.dynamicPlans.has(e)&&(this.dynamicPlans.get(e).removeDynamicPlan(t),this.removeDynamicPlanTaskUnit(e,t))},t.prototype.isAddDynamicPlanTask=function(e,t){if(0==this.dynamicPlanTasks.has(t))return!0;var n=this.dynamicPlanTasks.get(t);return n.unitCount>n.unitIDs.length||n.unitIDs.includes(e)},t.prototype.addDynamicPlanTask=function(e,t){0==this.dynamicPlanTasks.has(e)&&this.dynamicPlanTasks.set(e,t)},t.prototype.removeDynamicPlanTask=function(e){1==this.dynamicPlanTasks.has(e)&&this.dynamicPlanTasks.delete(e)},t.prototype.addDynamicPlanTaskUnit=function(e,t){if(1==this.dynamicPlanTasks.has(t)){var n=this.dynamicPlanTasks.get(t);1==this.isAddDynamicPlanTask(e,t)&&0==n.unitIDs.includes(e)&&(n.unitIDs.push(e),this.dynamicPlanTasks.set(t,n))}},t.prototype.removeDynamicPlanTaskUnit=function(e,t){if(1==this.dynamicPlanTasks.has(t)){var n=this.dynamicPlanTasks.get(t);1==n.unitIDs.includes(e)&&(n.unitIDs.splice(n.unitIDs.indexOf(e),1),n.unitIDs.length>0?this.dynamicPlanTasks.set(t,n):this.dynamicPlanTasks.delete(t))}},t}(a.default);n.default=r,cc._RF.pop()},{"../../../Basic/BasicObject":"BasicObject","./DynamicPlan":"DynamicPlan"}],TimeEventName:[function(e,t,n){"use strict";cc._RF.push(t,"c70c94KLsJKLoPrOAjaDhQ9","TimeEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Time_Pause="Time_Pause",this.Time_Resume="Time_Resume",this.Time_ConstFrame="Time_ConstFrame",this.Time_ConstSecond="Time_ConstSecond"},cc._RF.pop()},{}],TimeManager:[function(e,t,n){"use strict";cc._RF.push(t,"6411brXP8tJ3KLjKkhN42wP","TimeManager");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../Basic/BasicManager"),s=e("../Event/EventManager"),r=e("../Event/EventName"),u=e("../Tool/Tool"),c=function(e){function t(){var n=e.call(this)||this;return u.default.log("\u751f\u6210\u8ba1\u65f6\u7ba1\u7406\u5668"),t.schedule(n,n.frame,1/60),t.schedule(n,n.second,1),n}return i(t,e),t.prototype.frame=function(e){s.default.sendEvent(r.EventName.Time.Time_ConstFrame,e)},t.prototype.second=function(e){s.default.sendEvent(r.EventName.Time.Time_ConstSecond,e)},t.pause=function(e){null!=e?(cc.director.getScheduler().pauseTarget(e),cc.director.getActionManager().pauseTarget(e.node)):(t.tweens=cc.director.getActionManager().pauseAllRunningActions(),s.default.sendEvent(r.EventName.Time.Time_Pause),t.isPause=!0,t.times.forEach(function(e,n){null==e||1!=e.isValid||null!=e.isDestroy&&0!=e.isDestroy?t.times.delete(n):cc.director.getScheduler().pauseTarget(e)}))},t.resume=function(e){null!=e?(cc.director.getScheduler().resumeTarget(e),cc.director.getActionManager().resumeTarget(e.node)):(cc.director.getActionManager().resumeTargets(t.tweens),s.default.sendEvent(r.EventName.Time.Time_Resume),t.isPause=!1,t.times.forEach(function(e,n){null==e||1!=e.isValid||null!=e.isDestroy&&0!=e.isDestroy?t.times.delete(n):cc.director.getScheduler().resumeTarget(e)}))},t.schedule=function(e,n,o,i,a){t.times.set(e.id,e),e.schedule(n,o,i,a),1==t.isPause&&cc.director.getScheduler().pauseTarget(e)},t.scheduleOnce=function(e,n,o){t.times.set(e.id,e),e.scheduleOnce(n,o),1==t.isPause&&cc.director.getScheduler().pauseTarget(e)},t.prototype._destroy=function(){u.default.log("\u9500\u6bc1\u8ba1\u65f6\u7ba1\u7406\u5668"),t.times=null,t.tweens=null,this.unscheduleAllCallbacks(),e.prototype._destroy.call(this)},t.times=new Map,t.isPause=!1,t.tweens=[],t}(a.default);n.default=c,cc._RF.pop()},{"../Basic/BasicManager":"BasicManager","../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Tool/Tool":"Tool"}],Tool2D_Button:[function(e,t,n){"use strict";cc._RF.push(t,"25d5bAe87RJCJGFYHl9Ykm9","Tool2D_Button"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../../Audio/Data/AudioResData"),i=e("../../Event/EventManager"),a=e("../../Event/EventName"),s=e("../Tool"),r=function(){function e(){this.tweens=new Map,this.nodes=new Map}return e.prototype.addEvent=function(e,t,n,r,u,c,l){this.removeEvent(e,n);var f=e.scaleX,p=e.scaleY,d=!1,h=0;r=r||.9,u=u||.9,c=c||0;var m=this.getEventName(e,n);this.tweens.set(m[0],function(n){0==h&&(d=!0,s.default.Tween.tweenTo(e,cc.tween(e).to(.1,{scaleX:f*r,scaleY:p*u}).start()),t[cc.Node.EventType.TOUCH_START]&&t[cc.Node.EventType.TOUCH_START](n),0!=l&&i.default.sendEvent(a.EventName.Audio.Audio_PlaySound,{url:o.default.ClickButton,callback:null}))}),this.tweens.set(m[1],function(e){1==d&&t[cc.Node.EventType.TOUCH_MOVE]&&t[cc.Node.EventType.TOUCH_MOVE](e)}),this.tweens.set(m[2],function(n){1==d&&(d=!1,s.default.Tween.tweenTo(e,cc.tween(e).to(.1,{scaleX:f,scaleY:p}).call(function(){t[cc.Node.EventType.TOUCH_CANCEL]&&t[cc.Node.EventType.TOUCH_CANCEL](n)}).start()))}),this.tweens.set(m[3],function(n){1==d&&(d=!1,(h=c)>0&&s.default.Tween.tweenTo(e,cc.tween(e).delay(h).call(function(){h=0}).start()),s.default.Tween.tweenTo(e,cc.tween(e).to(.1,{scaleX:f,scaleY:p}).call(function(){t[cc.Node.EventType.TOUCH_END]&&t[cc.Node.EventType.TOUCH_END](n)}).start()))}),this.nodes.set(n+"_"+e.id,e);var v=this.getTween(m);e.on(cc.Node.EventType.TOUCH_START,v[0],this),e.on(cc.Node.EventType.TOUCH_MOVE,v[1],this),e.on(cc.Node.EventType.TOUCH_CANCEL,v[2],this),e.on(cc.Node.EventType.TOUCH_END,v[3],this)},e.prototype.removeEvent=function(e,t){var n=this;if(null!=e){if(1==this.nodes.has(t+"_"+e.id)){var o=this.getEventName(e,t);this.tweens.delete(o[0]),this.tweens.delete(o[1]),this.tweens.delete(o[2]),this.tweens.delete(o[3]),this.nodes.delete(t+"_"+e.id);var i=this.getTween(o);e.off(cc.Node.EventType.TOUCH_START,i[0],this),e.off(cc.Node.EventType.TOUCH_MOVE,i[1],this),e.off(cc.Node.EventType.TOUCH_CANCEL,i[2],this),e.off(cc.Node.EventType.TOUCH_END,i[3],this),s.default.Tween.destroy(e.id)}}else this.nodes.forEach(function(e,o){1==o.includes(t)&&n.removeEvent(e,t)})},e.prototype.getEventName=function(e,t){return[t+"_"+e.id+cc.Node.EventType.TOUCH_START,t+"_"+e.id+cc.Node.EventType.TOUCH_MOVE,t+"_"+e.id+cc.Node.EventType.TOUCH_CANCEL,t+"_"+e.id+cc.Node.EventType.TOUCH_END]},e.prototype.getTween=function(e){return[this.tweens.get(e[0]),this.tweens.get(e[1]),this.tweens.get(e[2]),this.tweens.get(e[3])]},e}();n.default=r,cc._RF.pop()},{"../../Audio/Data/AudioResData":"AudioResData","../../Event/EventManager":"EventManager","../../Event/EventName":"EventName","../Tool":"Tool"}],Tool2D:[function(e,t,n){"use strict";cc._RF.push(t,"74d8bsLMiZAWq57d9wRXNsT","Tool2D"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("./Tool2D/Tool2D_Button"),i=function(){function e(){}return Object.defineProperty(e.prototype,"Button",{get:function(){return null==this.button&&(this.button=new o.default),this.button},enumerable:!1,configurable:!0}),e}();n.default=i,cc._RF.pop()},{"./Tool2D/Tool2D_Button":"Tool2D_Button"}],Tool3D_Tween:[function(e,t,n){"use strict";cc._RF.push(t,"2e16bFB1N1PJ4XckiIcNCaf","Tool3D_Tween"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.tweenType={move:"move",scale:"scale",rotation:"rotation"},this.tweens={move:new Map,scale:new Map,rotation:new Map}},cc._RF.pop()},{}],Tool3D:[function(e,t,n){"use strict";cc._RF.push(t,"3d9d5qYwK5MJI7mjhw+xag6","Tool3D"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("./Tool3D/Tool3D_Tween"),i=function(){function e(){}return Object.defineProperty(e.prototype,"Tween",{get:function(){return null==this.tween&&(this.tween=new o.default),this.tween},enumerable:!1,configurable:!0}),e.prototype.getNewVector3=function(e){return void 0===e&&(e=null),null==e?new cc.Vec3:new cc.Vec3(e.x,e.y,e.z)},e.prototype.getDistanceV3=function(e,t,n){var o=this.getNewVector3(e),i=this.getNewVector3(t);return 1==n.includes("x")&&(o.x=0,i.x=0),1==n.includes("y")&&(o.y=0,i.y=0),1==n.includes("z")&&(o.z=0,i.z=0),cc.Vec3.distance(o,i)},e.prototype.getAngle=function(e,t,n,o){var i=Math.abs(e-n),a=Math.abs(t-o),s=a/Math.sqrt(Math.pow(i,2)+Math.pow(a,2)),r=Math.acos(s),u=Math.floor(180/(Math.PI/r));return n>e&&o>t&&(u=180-u),n==e&&o>t&&(u=180),n>e&&o==t&&(u=90),n<e&&o>t&&(u=180+u),n<e&&o==t&&(u=270),n<e&&o<t&&(u=360-u),u},e}();n.default=i,cc._RF.pop()},{"./Tool3D/Tool3D_Tween":"Tool3D_Tween"}],Tool_Tween:[function(e,t,n){"use strict";cc._RF.push(t,"164216JJf1DFJGihJ6cHrty","Tool_Tween"),Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){this.tweens=new Map}return e.prototype.tweenTo=function(e,t){var n=0==this.tweens.has(e.id)?[]:this.tweens.get(e.id);return n.push(t),this.tweens.set(e.id,n),t},e.prototype.destroy=function(e){if(1==this.tweens.has(e)){var t=this.tweens.get(e);for(var n in t)t[n].stop(),t[n].removeSelf();this.tweens.delete(e)}},e}();n.default=o,cc._RF.pop()},{}],Tool:[function(e,t,n){"use strict";cc._RF.push(t,"555c98ZfaxBEbpAMjg8Ziwe","Tool"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("./Tool/Tool_Tween"),i=e("./Tool2D"),a=e("./Tool3D"),s=function(){function e(){}return Object.defineProperty(e,"Tween",{get:function(){return null==this.tween&&(this.tween=new o.default),this.tween},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Tool2D",{get:function(){return null==this.tool2D&&(this.tool2D=new i.default),this.tool2D},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Tool3D",{get:function(){return null==this.tool3D&&(this.tool3D=new a.default),this.tool3D},enumerable:!1,configurable:!0}),e.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];1==this.isLog&&console.log.apply(console,e)},e.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];1==this.isLog&&console.error.apply(console,e)},e.dataProofreadCover=function(e,t){if(null!=e&&null!=t)for(var n in e)void 0!==t[n]&&("object"==typeof e[n]&&null!=t[n]?this.dataProofreadCover(e[n],t[n]):e[n]=t[n]);return e},e.dataSupplementCover=function(e,t){if(null!=e&&null!=t)for(var n in t)null==e[n]&&("object"==typeof e[n]&&null!=t[n]?(e[n]=Array.isArray(t[n])?[]:{},this.dataSupplementCover(e[n],t[n])):e[n]=t[n]);return e},e.dataAllCover=function(e,t){if(null!=e&&null!=t)for(var n in t)"object"==typeof t[n]&&null!=t[n]?(e[n]=Array.isArray(t[n])?[]:{},this.dataAllCover(e[n],t[n])):e[n]=t[n];return e},e.findKey=function(e,t,n){return void 0===n&&(n=function(e,t){return e===t}),Object.keys(e).find(function(o){return n(e[o],t)})},e.random=function(e){return Math.round(Math.random()*e+.4-.4)},e.randomArray=function(e,t){void 0===t&&(t=1e4);for(var n=function(e){for(var t=[],n=e.length,o=0;o<n;o++){var i=Math.round(Math.random()*(e.length-1));t[o]=e[i],e.splice(i,1)}return t},o=0;o<t;o++)e=n(e),e=n(e);return e},e.clamp=function(e,t,n){return n<e?n=e:n>t&&(n=t),n},e.clampProperty=function(e,t,n,o){return void 0===o&&(o=!0),NaN!=e.max&&NaN!=t.max&&null!=e.max&&null!=t.max&&(n.max=e.max+t.max),NaN!=e.min&&NaN!=t.min&&null!=e.min&&null!=t.min&&(n.min=e.min+t.min),NaN!=e.value&&NaN!=t.value&&null!=e.value&&null!=t.value&&(n.value=e.value+t.value,1==o&&(n.value=this.clamp(n.min,n.max,n.value))),n},e.formatter=function(e,t){var n=["K","M","B","T","aa","ab","ac","ad","ae","af","bb","bc","bd"];if(e>=1e3)for(var o=n.length;o>0;o--)if(e>=Math.pow(1e3,o)){return""+((e/Math.pow(1e3,o)).toFixed(t)+n[o-1])}return e+""},e.getAngle=function(e,t,n,o){var i=Math.abs(e-n),a=Math.abs(t-o),s=a/Math.sqrt(Math.pow(i,2)+Math.pow(a,2)),r=Math.acos(s),u=Math.floor(180/(Math.PI/r));return n>e&&o>t&&(u=180-u),n==e&&o>t&&(u=180),n>e&&o==t&&(u=90),n<e&&o>t&&(u=180+u),n<e&&o==t&&(u=270),n<e&&o<t&&(u=360-u),u},e.getVector=function(e){var t=Math.PI/180*e,n=Math.cos(t),o=Math.sin(t);return cc.v2(n,o).normalize()},e.bezier3=function(e,t,n,o){return(1-o)*(1-o)*e+2*o*(1-o)*t+o*o*n},e.isChinese=function(e){return!!/[\u4e00-\u9fa5]+/.test(e)},e.convertNumberToChinese=function(e){for(var t="",n=["0","1","2","3","4","5","6","7","8","9"],o=["\u96f6","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"],i=["\u5341","\u767e","\u5343","\u4e07","\u5341\u4e07","\u767e\u4e07","\u5343\u4e07","\u4ebf"],a=(""+e).split("").reverse(),s=!1,r=0;r<a.length;r++){var u=n.indexOf(a[r]);0==r?0!=u&&(t=o[u]):0!=u?(t=o[u]+(t=i[r-1]+t),s=!1):0==s&&(t=o[u]+t,s=!0)}return"\u4e00\u5341"==t.substring(0,2)&&(t=t.replace("\u4e00\u5341","\u5341")),t[t.length-1]==o[0]&&(t=t.substring(0,t.length-1)),t},e.converNumberToDate=function(e){var t=this.converNumberToTime(e),n=t.month<10?"0"+t.month:t.month,o=t.day<10?"0"+t.day:t.day,i=t.hour<10?"0"+t.hour:t.hour,a=t.minute<10?"0"+t.minute:t.minute,s=t.second<10?"0"+t.second:t.second;return t.year+"-"+n+"-"+o+" "+i+":"+a+":"+s},e.converNumberToTime=function(e){var t=new Date(1e3*Math.round(e));return{year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()}},e.converNumberToTimeText=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e=e<0?0:e;var o=Math.ceil(e),i=Math.floor(o/3600),a=Math.floor(o%3600/60),s=Math.floor(o%60),r=i>=10?i+"":"0"+i,u=a>=10?a+"":"0"+a,c=s>=10?s+"":"0"+s,l="";return i>0?(1==n&&"0"==r.charAt(0)&&(r=r.substring(1,r.length)),l=1==t?r+"\u65f6"+u+"\u5206"+c+"\u79d2":r+":"+u+":"+c):(1==n&&"0"==u.charAt(0)&&(u=u.substring(1,u.length)),l=1==t?u+"\u5206"+c+"\u79d2":u+":"+c),l},e.isLog=!0,e}();n.default=s,cc._RF.pop()},{"./Tool/Tool_Tween":"Tool_Tween","./Tool2D":"Tool2D","./Tool3D":"Tool3D"}],UnitBehaviorClass:[function(e,t,n){"use strict";cc._RF.push(t,"46551vsu7hAVpCQlu0Xi+ww","UnitBehaviorClass"),Object.defineProperty(n,"__esModule",{value:!0}),n.UnitBehaviorClass=void 0,n.UnitBehaviorClass={},cc._RF.pop()},{}],UnitClass:[function(e,t,n){"use strict";cc._RF.push(t,"5664bbZvNRDCruydsrh0uvB","UnitClass"),Object.defineProperty(n,"__esModule",{value:!0}),n.UnitClass=void 0;var o=e("../../../../Engine/Tool/Tool"),i=e("../../../Unit/Unit"),a=e("../../Unit/Boom"),s=e("../../Unit/Coin"),r=e("../../Unit/Indicator"),u=e("../../Unit/Role"),c=e("../../Unit/Stone");n.UnitClass={Unit:i.default,Role:u.default,Coin:s.default,Boom:a.default,Stone:c.default,Indicator:r.default,getKey:function(e){return o.default.findKey(n.UnitClass,e)}},cc._RF.pop()},{"../../../../Engine/Tool/Tool":"Tool","../../../Unit/Unit":"Unit","../../Unit/Boom":"Boom","../../Unit/Coin":"Coin","../../Unit/Indicator":"Indicator","../../Unit/Role":"Role","../../Unit/Stone":"Stone"}],UnitComponent:[function(e,t,n){"use strict";cc._RF.push(t,"13ffcGsj8VIkbnxFODbXjIP","UnitComponent"),Object.defineProperty(n,"__esModule",{value:!0}),n.UnitComponent=void 0,n.UnitComponent={},cc._RF.pop()},{}],UnitConfig:[function(e,t,n){"use strict";cc._RF.push(t,"55d80jDzLtJtbMS4dnMcfPy","UnitConfig"),Object.defineProperty(n,"__esModule",{value:!0}),n._EUnitType=void 0,function(e){e.Score="Score",e.Role="Role",e.Coin="Coin",e.Boom="Boom",e.Stone="Stone",e.Indicator="Indicator"}(n._EUnitType||(n._EUnitType={})),cc._RF.pop()},{}],UnitDecisionClass:[function(e,t,n){"use strict";cc._RF.push(t,"9a3aaj8gMJMrYKWT1xDXjCo","UnitDecisionClass"),Object.defineProperty(n,"__esModule",{value:!0}),n.UnitDecisionClass=void 0,n.UnitDecisionClass={},cc._RF.pop()},{}],UnitEventName:[function(e,t,n){"use strict";cc._RF.push(t,"a7b4e6GaLNFWrlsjHGrUsPd","UnitEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.Unit_CreateUnit="Unit_CreateUnit",this.Unit_CreateUnitComplete="Unit_CreateUnitComplete",this.Unit_ReuseUnit="Unit_ReuseUnit",this.Unit_GetUnit="Unit_GetUnit",this.Unit_RemoveUnit="Unit_RemoveUnit",this.Unit_UpdateData="Unit_UpdateData",this.Unit_GetDynamicData="Unit_GetDynamicData",this.Unit_GetInitEntry="Unit_GetInitEntry",this.Unit_GetDynamicEntry="Unit_GetDynamicEntry",this.Unit_SetProperty="Unit_SetProperty",this.Unit_Controling="Unit_Controling",this.Unit_ControlEnd="Unit_ControlEnd",this.Unit_SetAnimation="Unit_SetAnimation",this.Unit_MoveMapEdge="Unit_MoveMapEdge",this.Unit_SetSkillCD="Unit_SetSkillCD",this.Unit_Injured="Unit_Injured",this.Unit_InjuredComplete="Unit_InjuredComplete",this.Unit_Death="Unit_Death",this.Unit_Revive="Unit_Revive"},cc._RF.pop()},{}],UnitManager:[function(e,t,n){"use strict";cc._RF.push(t,"b3676u4qeJKoaN10Dn/ETUo","UnitManager");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Event/EventManager"),s=e("../../Engine/Tool/Tool"),r=e("../Game/Data/Unit/UnitClass"),u=e("../Event/GameEventName"),c=function(e){function t(){var t=e.call(this)||this;return s.default.log("\u751f\u6210\u5b9e\u4f53\u5355\u5143\u7ba1\u7406\u5668"),t.units=new Map,t.unitTypes=new Map,a.default.onEvent(u.default.Time.Time_ConstFrame,t,t._update),a.default.onEvent(u.default.Unit.Unit_CreateUnit,t,t.onCreateUnit),a.default.onEvent(u.default.Unit.Unit_CreateUnitComplete,t,t.onCreateUnitEnd,1),a.default.onEvent(u.default.Unit.Unit_GetUnit,t,t.getUnitByunitID),a.default.onEvent(u.default.Unit.Unit_RemoveUnit,t,t.onRemoveUnit),a.default.onEvent(u.default.Game_EndGame,t,t.onEndGame),t}return i(t,e),t.prototype.onEndGame=function(){var e=this;this.updateComponents.forEach(function(t,n){var o=t.size;t.forEach(function(e,n){1==e.createUnit.isDestroy&&t.delete(n)}),o!=t.size&&(t.size>0?e.updateComponents.set(n,t):e.updateComponents.delete(n))})},t.prototype.onCreateUnit=function(e){var t,n=this.unitTypes.get(e.type)||new Map;if(!(null!=n&&n.size>0&&(n.forEach(function(n){if(0==n.fgui.visible&&0==n.isEnabled&&null==t)return(t=n).isEnabled=!0,void a.default.sendEventByTargetID(u.default.Unit.Unit_ReuseUnit,t.id,e)}),null!=t))){var o=new r.UnitClass[e.type](e);this.units.set(o.id,o),n.set(o.id,o),this.unitTypes.set(e.type,n)}},t.prototype.onCreateUnitEnd=function(e){if(1==e.isUpdate){var t=this.updateComponents.get(e.createUnit.type)||new Map;t.set(e.id,e),this.updateComponents.set(e.createUnit.type,t)}},t.prototype.onRemoveUnit=function(e){var t=this;if(null==e)this.units.forEach(function(e,n){1==e.createUnit.isDestroy&&t.onRemoveUnit(n)});else if(1==this.units.has(e)){var n=this.units.get(e);this.units.delete(e),this.unitTypes.get(n.createUnit.type).delete(e),this.updateComponents.delete(e);var o=n.fgui;n._destroy(),o.removeFromParent()}},t.prototype.getUnitByunitID=function(e){if(null!=e.unitID){var t=this.units.get(e.unitID);null!=t&&e.callback(t)}else if(null!=e.teamID){var n=new Map;this.units.forEach(function(t){1==e.teamID.includes(t.createUnit.teamID)&&(null!=e.type?e.type==t.createUnit.type&&n.set(t.id,t):n.set(t.id,t))}),e.callback(n)}else e.callback(this.units)},t.prototype._destroy=function(){s.default.log("\u9500\u6bc1\u5b9e\u4f53\u5355\u5143\u7ba1\u7406\u5668"),this.units.forEach(function(e){e._destroy()}),this.units=null,this.unitTypes=null,e.prototype._destroy.call(this)},t}(e("../../Engine/Basic/BasicManager").default);n.default=c,cc._RF.pop()},{"../../Engine/Basic/BasicManager":"BasicManager","../../Engine/Event/EventManager":"EventManager","../../Engine/Tool/Tool":"Tool","../Event/GameEventName":"GameEventName","../Game/Data/Unit/UnitClass":"UnitClass"}],Unit:[function(e,t,n){"use strict";cc._RF.push(t,"87aaeWkRUJOB4R9mCzBlhgC","Unit");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Event/EventManager"),s=e("../../Engine/Tool/Tool"),r=e("../Event/GameEventName"),u=function(e){function t(t){var n=e.call(this)||this;return n._createUnit=t,n._isUpdate=t.isUpdate,null!=n._createUnit.unitID&&(n._id=n._createUnit.unitID),n.createNode(),n.createComponents(),s.default.log(n),a.default.sendEvent(r.default.Unit.Unit_CreateUnitComplete,n),a.default.onEvent(r.default.Unit.Unit_ReuseUnit,n,n.onReuseUnit,1),n}return i(t,e),Object.defineProperty(t.prototype,"createUnit",{get:function(){return this._createUnit},enumerable:!1,configurable:!0}),t.prototype.onReuseUnit=function(e){this._createUnit=e,this._isUpdate=e.isUpdate},t}(e("../../Engine/Basic/BasicObject").default);n.default=u,cc._RF.pop()},{"../../Engine/Basic/BasicObject":"BasicObject","../../Engine/Event/EventManager":"EventManager","../../Engine/Tool/Tool":"Tool","../Event/GameEventName":"GameEventName"}],UserConfig:[function(e,t,n){"use strict";cc._RF.push(t,"49a76ClgVdDgLRy+hzNyPfZ","UserConfig"),Object.defineProperty(n,"__esModule",{value:!0}),cc._RF.pop()},{}],UserDataEventName:[function(e,t,n){"use strict";cc._RF.push(t,"f78dexpmy5AU5zktNveXlxv","UserDataEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.UserData_ReadUserData="UserData_ReadUserData",this.UserData_SetUserData="UserData_SetUserData",this.UserData_GetUserData="UserData_GetUserData",this.UserData_UpdateUserData="UserData_UpdateUserData"},cc._RF.pop()},{}],UserData:[function(e,t,n){"use strict";cc._RF.push(t,"71b6f8WsNNNV6swcUHn7uyY","UserData");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../../Engine/Basic/BasicObject"),s=e("../../Engine/Event/EventManager"),r=e("../../Engine/Resources/JsonResources"),u=e("../../Engine/Tool/Tool"),c=e("../Data/GameDataType"),l=e("../Event/GameEventName"),f=function(e){function t(){var t=e.call(this)||this;return t.read(),t.save(),s.default.onEvent(l.default.UserData.UserData_SetUserData,t,t.onSetUserData),s.default.onEvent(l.default.UserData.UserData_GetUserData,t,t.onGetUserData),t}return i(t,e),t.prototype.save=function(){var e=new Date;this.userData.offLineTime={year:e.getFullYear(),month:e.getMonth(),day:e.getDay(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds()},s.default.sendEvent(l.default.UserData.UserData_UpdateUserData,this.userData)},t.prototype.read=function(){var e;e=cc.sys.platform==cc.sys.DESKTOP_BROWSER?window.sessionStorage.getItem("UserInfo"):cc.sys.localStorage.getItem("UserInfo");var t=r.default.getResources(c._EGameJsonRes.UserData),n=t.userData;this.userData=u.default.dataAllCover({},t.userData),null!=e&&""!=e&&(n=JSON.parse(e),this.userData=u.default.dataSupplementCover(n,this.userData)),s.default.sendEvent(l.default.UserData.UserData_ReadUserData,c._EGameBehavior.InitLoad)},t.prototype.onSetUserData=function(e){this.userData=u.default.dataSupplementCover(this.userData,e),this.save()},t.prototype.onGetUserData=function(e){e(u.default.dataAllCover({},this.userData))},t.prototype._destroy=function(){this.userData=null,e.prototype._destroy.call(this)},t}(a.default);n.default=f,cc._RF.pop()},{"../../Engine/Basic/BasicObject":"BasicObject","../../Engine/Event/EventManager":"EventManager","../../Engine/Resources/JsonResources":"JsonResources","../../Engine/Tool/Tool":"Tool","../Data/GameDataType":"GameDataType","../Event/GameEventName":"GameEventName"}],ViewConfig:[function(e,t,n){"use strict";cc._RF.push(t,"dde4cTacXxNs7H89y4nFBTj","ViewConfig"),Object.defineProperty(n,"__esModule",{value:!0}),cc._RF.pop()},{}],ViewEventName:[function(e,t,n){"use strict";cc._RF.push(t,"3628eN8qGNCbJZ4sJlzih3A","ViewEventName"),Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){this.View_ShowView="View_ShowView",this.View_HideView="View_HideView",this.View_DestroyView="View_DestroyView",this.View_IsShowView="View_IsShowView",this.View_MoveView="View_MoveView"},cc._RF.pop()},{}],ViewManager:[function(e,t,n){"use strict";cc._RF.push(t,"88447zPPWlABZr1NVxgzhJ5","ViewManager");var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a=e("../Basic/BasicEvent"),s=e("../Basic/BasicManager"),r=e("../Data/CommonDataType"),u=e("../Event/EventName"),c=e("../Event/EventManager"),l=e("../Resources/JsonResources"),f=e("../Tool/Tool"),p=function(e){function t(){var t=e.call(this)||this;return f.default.log("\u751f\u6210\u89c6\u7a97\u7ba1\u7406\u5668"),t.views=new Array,t.loadStates=new Array,fgui.GRoot.create(),fgui.GRoot.inst.node.z=1,c.default.onEvent(u.EventName.View.View_ShowView,t,t.onShow),c.default.onEvent(u.EventName.View.View_HideView,t,t.onHide),c.default.onEvent(u.EventName.View.View_DestroyView,t,t._onDestroy),c.default.onEvent(u.EventName.View.View_IsShowView,t,t.isShow),t}return i(t,e),t.prototype.isShow=function(e,t){null==this.views[e.resPath]||null==this.views[e.resPath].fgui||1!=this.views[e.resPath].fgui.visible?t(!1):t(!0)},t.prototype.onShow=function(e,t){var n=this;t instanceof a.default==1&&(t=null),null==this.loadStates[e.resPath]?(this.loadStates[e.resPath]=0,cc.assetManager.loadBundle("res/fgui",function(o,i){fgui.UIPackage.loadPackage(i,e.resPath,function(o){f.default.log(o),n.loadStates[e.resPath]=1;var i=fgui.UIPackage.createObject(e.resPath,"Main").asCom;i.makeFullScreen(),fgui.GRoot.inst.addChild(i);var a=l.default.getResources(r._EJsonRes.View);null!=a.ZIndex[e.resPath]&&(i.node.zIndex=a.ZIndex[e.resPath]);var s=i.node.addComponent(e);n.views[e.resPath]=s,s.initView(i,t)})})):1==this.loadStates[e.resPath]&&(this.views[e.resPath].customData=t||{},this.views[e.resPath].refreshView(),this.views[e.resPath].fgui.visible=!0),this.currentView=e.resPath,f.default.log("show: "+this.currentView)},t.prototype.onHide=function(e){null!=this.views[e.resPath]&&(f.default.log("hide: "+e.resPath),this.views[e.resPath].clearView(),this.views[e.resPath].fgui.visible=!1)},t.prototype._onDestroy=function(e){if(null==e){for(var t in this.views)null!=this.views[t]&&(f.default.log("destroy: "+t),this.views[t].clearView(),this.views[t]._destroy());this.views=[],this.loadStates=[]}else null!=this.views[e.resPath]&&(f.default.log("destroy: "+e.resPath),this.views[e.resPath].clearView(),this.views[e.resPath]._destroy(),this.views[e.resPath]=null,this.loadStates[e.resPath]=null)},t.prototype._destroy=function(){for(var t in f.default.log("\u9500\u6bc1\u89c6\u7a97\u7ba1\u7406\u5668"),this.views)null!=this.views[t]&&(this.views[t].clearView(),this.views[t]._destroy());fgui.GRoot.inst.node.destroy(),this.views=null,e.prototype._destroy.call(this)},t}(s.default);n.default=p,cc._RF.pop()},{"../Basic/BasicEvent":"BasicEvent","../Basic/BasicManager":"BasicManager","../Data/CommonDataType":"CommonDataType","../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Resources/JsonResources":"JsonResources","../Tool/Tool":"Tool"}],ViewResources:[function(e,t,n){"use strict";cc._RF.push(t,"fd3f1Ee/spF2b7eQ2HmsoIS","ViewResources"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../Event/EventManager"),i=e("../Event/EventName"),a=e("../Tool/Tool"),s=function(){function e(){}return e.loadViewResources=function(e,t,n,s,r){var u=this;a.default.log("\u52a0\u8f7d\u89c6\u7a97\u8d44\u6e90");var c=e.length-1,l=t.length,f=c+l,p=0,d=function(){cc.assetManager.loadBundle("res/cocos",function(e,c){u.bundle=c,u.bundle.load(t,cc.SpriteFrame,function(){o.default.sendEvent(i.EventName.Res.Res_LoadProgress,p/f*n+s),p++},function(e,t){a.default.log(e);var n=u.resources.cocos||[];for(var s in t)n[t[s].name]=t[s];u.resources.cocos=n,a.default.log(u.resources),a.default.log("\u52a0\u8f7d\u5b8c\u6bd5"),a.default.log(""),null==r?o.default.sendEvent(i.EventName.Res.Res_LoadComplete):r()})})};e.length>0?cc.assetManager.loadBundle("res/fgui",function(t,r){for(var l=0;l<e.length;l++)fgui.UIPackage.loadPackage(r,e[l],function(e,t){a.default.log(e),u.resources.push(t),p<c?o.default.sendEvent(i.EventName.Res.Res_LoadProgress,p/f*n+s):d(),p++})}):d()},e.getResources=function(e){var t=e;return 1==e.includes("/")&&(t=e.substring(e.indexOf("/")+1)),this.resources.cocos[t]||this.bundle.get(e)},e.resources=new Array,e.bundle=null,e}();n.default=s,cc._RF.pop()},{"../Event/EventManager":"EventManager","../Event/EventName":"EventName","../Tool/Tool":"Tool"}],sdk:[function(e,t,n){"use strict";var o,i,a;cc._RF.push(t,"5ead8/UyexMcKcEz4bZjCsv","sdk"),Object.defineProperty(n,"__esModule",{value:!0}),n.CMD=n.MOTION=n.SDK=void 0,function(e){e[e.NONE_INTERATION=2e3]="NONE_INTERATION",e[e.FRONT_LEFT=2001]="FRONT_LEFT",e[e.FRONT_RIGHT=2002]="FRONT_RIGHT",e[e.BACK_LEFT=2003]="BACK_LEFT",e[e.BACK_RIGHT=2004]="BACK_RIGHT",e[e.ENTER_KEY=2005]="ENTER_KEY",e[e.CANCLE_KEY=2006]="CANCLE_KEY"}(o||(o={})),n.CMD=o,function(e){e[e.MOTION_STOP=0]="MOTION_STOP",e[e.MOTION_RUN=1]="MOTION_RUN",e[e.MOTION_JUMP=2]="MOTION_JUMP",e[e.MOTION_DOWN=3]="MOTION_DOWN",e[e.MOTION_LEFT=4]="MOTION_LEFT",e[e.MOTION_RIGHT=5]="MOTION_RIGHT",e[e.MOTION_FRONT=6]="MOTION_FRONT",e[e.MOTION_BACK=7]="MOTION_BACK",e[e.MOTION_LEFT_UP=8]="MOTION_LEFT_UP",e[e.MOTION_LEFT_DOWN=9]="MOTION_LEFT_DOWN",e[e.MOTION_RIGHT_UP=10]="MOTION_RIGHT_UP",e[e.MOTION_RIGHT_DOWN=11]="MOTION_RIGHT_DOWN",e[e.MOTION_STEP=12]="MOTION_STEP",e[e.MOTION_JUMP_OC=13]="MOTION_JUMP_OC",e[e.MOTION_JUMP_VERTICAL=14]="MOTION_JUMP_VERTICAL",e[e.MOTION_ROCK=15]="MOTION_ROCK",e[e.MOTION_SCISSORS=16]="MOTION_SCISSORS",e[e.MOTION_PAPER=17]="MOTION_PAPER",e[e.MOTION_STRETCH_LEFT=18]="MOTION_STRETCH_LEFT",e[e.MOTION_LIFT_LEFT=19]="MOTION_LIFT_LEFT",e[e.MOTION_STRETCH_RIGHT=20]="MOTION_STRETCH_RIGHT",e[e.MOTION_LIFT_RIGHT=21]="MOTION_LIFT_RIGHT",e[e.MOTION_STRETCH_FRONT_LEFT=22]="MOTION_STRETCH_FRONT_LEFT",e[e.MOTION_STRETCH_FRONT_RIGHT=23]="MOTION_STRETCH_FRONT_RIGHT",e[e.MOTION_DOWN_FRONT=24]="MOTION_DOWN_FRONT",e[e.NUMBERS_OF_MOTION=25]="NUMBERS_OF_MOTION"}(i||(i={})),n.MOTION=i,function(e){e[e.FREQ=1e3]="FREQ"}(a||(a={}));var s=function(e,t){this._target=e,this._fn=t},r=new(function(){function e(){this._ver=1,this._events={},this._motion=[0,0,0,0],this._motionTime=[0,0,0,0],this._responseCallMap={string:Function},this._inited=!1}return e.prototype.callback=function(e,t){console.log("callback "+e+" "+t);var n=this._responseCallMap[e];n&&n.call(n,t)},e.prototype.isMotion=function(e,t){var n=new Date,o=this._motion[e]>0&&n.getTime()-this._motionTime[e]<=t;return o&&(this._motion[e]=0),o},e.prototype.isLeftFootDown=function(e){return void 0===e&&(e=1e3/60),this.isMotion(0,e)},e.prototype.isRightFootDown=function(e){return void 0===e&&(e=1e3/60),this.isMotion(1,e)},e.prototype.getCmd=function(){var e=this._cmd;return e>0&&(this._cmd=0),e},e.prototype.cmd=function(e,t){this._cmd=t+o.NONE_INTERATION;var n=(new Date).getTime();n-this._cmdTime<500||(this._cmdTime=n,console.log("cmd set "+t+" "+this._cmd),this.emit(this._cmd.toString(),n))},e.prototype.getMotion=function(){return this._motion},e.prototype.motion=function(e,t,n,o,a,s){this._motion[0]=n,this._motion[1]=o,this._motion[2]=a,this._motion[3]=s,console.log("motion set "+this._motion);for(var r=(new Date).getTime(),u=this._motion,c=0;c<u.length;c++)if(u[c]>0){if(r-this._motionTime[c]<10)continue;this._motionTime[c]=r;var l=u[c],f=l.toString();this.emit(f,r),console.log("motion set "+l+" -> "+f+" "+i[l])}},e.prototype.getStepFreq=function(){return this._stepFreq},e.prototype.getStepCount=function(){return this._stepCount},e.prototype.getVelocity=function(){return this._velocity},e.prototype.stepFreq=function(e){this._stepFreq=e,console.log("step freq "+e),this.emit(a.FREQ.toString(),e)},e.prototype.step=function(e,t){this.stepFreq(e),this._stepCount=t,console.log("step count "+t)},e.prototype.stepData=function(e,t,n){this.stepFreq(e),this._stepCount=t,this._velocity=n},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this._events[e]||[];return o.length>0&&(console.log("motion emit "+e+", "+o.length),o.forEach(function(e){return e._fn.apply(e._target||e._fn,t)})),this},e.prototype.on=function(e,t,n){this._inited||(this._inited=!0,this.onSdkLoaded());var o=this._events[e]||[];return t&&o.push(new s(n||this,t)),console.log("motion set on "+e+", "+o.length),this._events[e]=o,this},e.prototype.once=function(e,t,n){var o=this,i=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];t&&t.apply(n||o,a),o.off(e,i)};return this.on(e,i),this},e.prototype.off=function(e,t){var n=this._events[e]||[];return this._events[e]=n.filter(function(e){return e._fn!==t}),this},e.prototype.remove=function(e,t){return this._events[e]=[],t&&t(),this},e.prototype.onSdkLoaded=function(){this._callsdk("onLoad",{ver:this._ver})},e.prototype.onBackPressed=function(e){void 0===e&&(e=!1),this._callsdk("onBackPressed",{foot:e})},e.prototype.onGameStart=function(){this._callsdk("onGameStart",{})},e.prototype.onGameEnd=function(e,t,n,o,i,a){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),a&&(this._responseCallMap.onGameEnd_callback=a),this._callsdk("onGameEnd",{level:e,score:t,record:n,mode:o,opponentId:i})},e.prototype.getUserInfo=function(e){var t="getUserInfo_callback";this._responseCallMap[t]=e,this._callsdk(t,{callback:t})},e.prototype.getRank=function(e,t){var n="getRank_callback";this._responseCallMap[n]=t,this._callsdk(n,{callback:n,type:e})},e.prototype.vibrate=function(e,t){void 0===t&&(t=0),this._callsdk("vibrate",{duration:e,leftOrRight:t})},e.prototype.openGameData=function(e,t){this._gameDataCallback=t,this._callsdk("openGameData",{open:e})},e.prototype.gameData=function(e){this._gameDataCallback&&this._gameDataCallback.call(this._gameDataCallback,e)},e.prototype._callsdk=function(e,t){console.log("sdk call "+e),window.SDKBridge&&window.SDKBridge.postMessage(JSON.stringify({method:e,args:t}))},e}());n.SDK=r,window.SHOES_SDK=r,cc._RF.pop()},{}]},{},["AudioManager","AudioConfig","AudioResData","BasicEvent","BasicManager","BasicObject","BasicTreeBehaviorNode","BasicTreeControlNode","BasicTreePreconditionNode","BasicView","DynamicPlanConfig","DynamicPlan","TeamDynamicPlan","FrameConfig","FrameAnimation","LoadProgress","Popup","CommonDataType","Engine","AudioEventName","BehaviorEventName","ComponentEventName","EventManager","EventName","PhoneEventName","ResEventName","TimeEventName","ViewEventName","AudioResources","JsonResources","PrefabResources","ViewResources","TimeManager","Tool","Tool2D","Tool2D_Button","Tool3D","Tool3D_Tween","AStar","CreateID","Eval","Tool_Tween","ViewConfig","ViewManager","KeyBoardControl","DataManager","GameDataType","UserConfig","BuffEventName","EffectEventName","FightEventName","GameEventName","PropEventName","RobotEventName","SDKEventName","SkillEventName","UnitEventName","UserDataEventName","GameFlowConfig","GameFlowTree","GameFlowTree_Precondition","Game_Gameing_Flow","Game_Hall_Flow","Game_Hall_Precondition","Game_InitLoad_Flow","Game_Login_Flow","Game_Over_Flow","Game_WaitStart_Flow","GameMap","Recovery","RoleCollision","RoleMove","StoneMove","GameMusicResData","UnitBehaviorClass","UnitClass","UnitComponent","UnitConfig","UnitDecisionClass","GameManager","Boom","Coin","Indicator","Role","Stone","ClimbMountainsView","ExplainView","SDKManager","sdk","Unit","UnitManager","UserData","GameView","HallView","HintView","InitLoadView","OverView","PauseView","RootScene"]);