1 |
- window.__require=function t(e,o,n){function i(c,l){if(!o[c]){if(!e[c]){var s=c.split("/");if(s=s[s.length-1],!e[s]){var a="function"==typeof __require&&__require;if(!l&&a)return a(s,!0);if(r)return r(s,!0);throw new Error("Cannot find module '"+c+"'")}c=s}var u=o[c]={exports:{}};e[c][0].call(u.exports,function(t){return i(e[c][1][t]||t)},u,u.exports,t,e,o,n)}return o[c].exports}for(var r="function"==typeof __require&&__require,c=0;c<n.length;c++)i(n[c]);return i}({ConfigDef:[function(t,e,o){"use strict";cc._RF.push(e,"f2501P4mcRAcoSXFSb85E9/","ConfigDef"),Object.defineProperty(o,"__esModule",{value:!0}),o.jsonNames=o.ConfigConst=void 0,o.ConfigConst={nest:"nest",smallLevel:"smallLevel"},o.jsonNames=Object.values(o.ConfigConst),cc._RF.pop()},{}],EventMgr:[function(t,e,o){"use strict";cc._RF.push(e,"2dedfEqQqhMNLhKV3xnj6e4","EventMgr");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.EventMgr=void 0;var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e,"inst",{get:function(){return null==this._inst&&(this._inst=new e),this._inst},enumerable:!1,configurable:!0}),e}(cc.EventTarget);o.EventMgr=r,cc._RF.pop()},{}],GameAnimation:[function(t,e,o){"use strict";cc._RF.push(e,"133ffBsZwRE0ajydPBekQF9","GameAnimation");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.GameAnimation=void 0;var r=t("./logic"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.update=function(){r.GameLogicMgr.inst.isGamePause?this.enabled&&(this.enabled=!1):this.enabled||(this.enabled=!0)},e}(cc.Animation);o.GameAnimation=c,cc._RF.pop()},{"./logic":"logic"}],GameLogic:[function(t,e,o){"use strict";cc._RF.push(e,"07144hDDh5BHqV3tBvLEZM8","GameLogic");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.GameLogic=void 0;var r=t("./logic"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.update=function(t){r.GameLogicMgr.inst.isGamePause||this.gameUpdate(t)},e.prototype.gameUpdate=function(){},e}(cc.Component);o.GameLogic=c,cc._RF.pop()},{"./logic":"logic"}],ModuleContext:[function(t,e,o){"use strict";cc._RF.push(e,"778faiC32xH5qvdcq6i/b+I","ModuleContext"),Object.defineProperty(o,"__esModule",{value:!0}),o.ModuleContext=void 0;var n="resources",i=function(){function t(){}return t.setDefaultModule=function(t){n=t},t.attachModule=function(t,e){t.__module__name__=e},t.getClassModule=function(t){return t.__module__name__||n},t.attachImplClass=function(t,e){t.__impl__class__=e},t.attachModuleAndImplClass=function(t,e,o){t.__module__name__=e,t.__impl__class__=o},t.getImplClass=function(t){return t.__impl__class__||t},t.createFromModule=function(t){return new(this.getImplClass(t)||t)},t}();o.ModuleContext=i,cc._RF.pop()},{}],Rocker:[function(t,e,o){"use strict";cc._RF.push(e,"0ed59bwy7NFfquN6tFgB5jF","Rocker");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../Script/Core/Base/EventMgr"),l=t("./eventDef"),s=cc._decorator,a=s.ccclass,u=s.property,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$bg_node=null,e.$point_node=null,e.$arrow_node=null,e.temp={bgOriginPos:null,id:-1},e}return i(e,t),e.prototype.onLoad=function(){this.temp.bgOriginPos=this.$bg_node.getPosition()},e.prototype.onEnable=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onDisable=function(){this.node.off(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onTouchStart=function(t){if(-1==this.temp.id){var e=t.getLocation();e=this.node.convertToNodeSpaceAR(e),this.$bg_node.setPosition(e),this.temp.id=t.getID()}},e.prototype.onTouchMove=function(t){if(this.temp.id==t.getID()){var e=t.getLocation().sub(t.getStartLocation()),o=0;e.equals(cc.Vec2.ZERO)||(o=cc.v2(0,1).signAngle(e)/Math.PI*180),this.$arrow_node.angle=Math.round(100*o)/100;var n=e.normalize();e.mag()>85?this.$point_node.setPosition(85*n.x,85*n.y):this.$point_node.setPosition(e.x,e.y),c.EventMgr.inst.emit(l.Roker_Move,n)}},e.prototype.onTouchEnd=function(t){this.temp.id==t.getID()&&(this.$bg_node.setPosition(this.temp.bgOriginPos),this.$arrow_node.angle=0,this.$point_node.setPosition(0,0),this.temp.id=-1,c.EventMgr.inst.emit(l.Roker_End))},r([u({type:cc.Node,displayName:""})],e.prototype,"$bg_node",void 0),r([u({type:cc.Node,displayName:""})],e.prototype,"$point_node",void 0),r([u({type:cc.Node,displayName:""})],e.prototype,"$arrow_node",void 0),r([a],e)}(cc.Component);o.default=p,cc._RF.pop()},{"../../Script/Core/Base/EventMgr":"EventMgr","./eventDef":"eventDef"}],Start:[function(t,e,o){"use strict";cc._RF.push(e,"62a49ItD35F/77o+FdWPyV+","Start");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c},c=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function c(t){try{s(n.next(t))}catch(e){r(e)}}function l(t){try{s(n.throw(t))}catch(e){r(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,l)}s((n=n.apply(t,e||[])).next())})},l=this&&this.__generator||function(t,e){var o,n,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(r){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return c.label++,{value:r[1],done:!1};case 5:c.label++,n=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){c.label=r[1];break}if(6===r[0]&&c.label<i[1]){c.label=i[1],i=r;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(r);break}i[2]&&c.ops.pop(),c.trys.pop();continue}r=e.call(t,c)}catch(l){r=[6,l],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0});var s=t("./Collide/lq_collide_system/lq_collide_system"),a=t("./Core/Ui/UIDef"),u=t("./Core/Ui/UILayers"),p=t("./Core/Ui/UIMgr"),d=t("./game/bullet"),_=t("./game/cfg/configMgr"),h=t("./levelMgr"),f=cc._decorator,y=f.ccclass,g=f.property,v=function(t){function e(){var e=t.call(this)||this;return e.$bulletLayer_node=null,e.$level_node=null,e.$levelTitle_lb=null,e.$ui_node=null,e.bulletPrefab=null,e}var o;return i(e,t),o=e,e.prototype.onLoad=function(){return c(this,void 0,Promise,function(){return l(this,function(t){switch(t.label){case 0:return o.inst=this,p.UIMgr.inst.setup(this.$ui_node,u.UILayerNames.length,u.UILayerNames),s.LQCollideSystem.is_enable=!0,cc.director.getPhysicsManager().enabled=!0,cc.director.getPhysicsManager().gravity=cc.v2(0,0),[4,_.ConfigMgr.inst.init()];case 1:return t.sent(),h.LevelMgr.inst.parent=this.$level_node,h.LevelMgr.inst.title=this.$levelTitle_lb,h.LevelMgr.inst.begin(),p.UIMgr.inst.showUI(a.UIList.debug),[2]}})})},e.prototype.testUI=function(){p.UIMgr.inst.showUI(a.UIList.loading),p.UIMgr.inst.showUI(a.UIList.loading),setTimeout(function(){p.UIMgr.inst.hideUI(a.UIList.loading)},1e4)},e.prototype.createPlayerBullet=function(t){var e=cc.instantiate(this.bulletPrefab),o=e.getComponent(d.default).getMoveCpt();o.dirction=cc.v2(0,1),o.speed=1e3,this.$bulletLayer_node.addChild(e),e.setPosition(t)},r([g({type:cc.Node,displayName:""})],e.prototype,"$bulletLayer_node",void 0),r([g({type:cc.Node,displayName:""})],e.prototype,"$level_node",void 0),r([g({type:cc.Label,displayName:""})],e.prototype,"$levelTitle_lb",void 0),r([g({type:cc.Node,displayName:""})],e.prototype,"$ui_node",void 0),r([g(cc.Prefab)],e.prototype,"bulletPrefab",void 0),o=r([y],e)}(cc.Component);o.default=v,cc._RF.pop()},{"./Collide/lq_collide_system/lq_collide_system":"lq_collide_system","./Core/Ui/UIDef":"UIDef","./Core/Ui/UILayers":"UILayers","./Core/Ui/UIMgr":"UIMgr","./game/bullet":"bullet","./game/cfg/configMgr":"configMgr","./levelMgr":"levelMgr"}],UIController:[function(t,e,o){"use strict";cc._RF.push(e,"7019cTE15tDJL3FDogZGsld","UIController");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.UIController=o.AutoEventHandler=o.__NodeEventAgent__=void 0;var r=cc._decorator,c=(r.ccclass,r.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onButtonClicked=function(t,e){for(var o=t.target.getComponent(cc.Button),n=o.clickEvents,i=0;i<n.length;++i){var r=n[i];if(r.customEventData==e){var c=r.$cb$,l=r.$target$,s=r.$args$;c.apply(l,[o,s])}}},e.prototype.onToggleEvent=function(t,e){for(var o=t.checkEvents,n=0;n<o.length;++n){var i=o[n];if(i.customEventData==e){var r=i.$cb$,c=i.$target$,l=i.$args$;r.apply(c,[t,l])}}},e}(cc.Component));o.__NodeEventAgent__=c;var l=function(){function t(){this._handlers=[]}return t.prototype.on=function(t,e,o,n){this._handlers.push({event:t,cb:e,target:o,once:n}),cc.game.on(t,e,o,n)},t.prototype.off=function(t,e,o,n){cc.game.off(t,e,o);for(var i=0;i<this._handlers.length;++i){var r=this._handlers[i];if(r.event==t&&r.cb==e&&r.target==o&&r.once==n)return void this._handlers.splice(i,1)}},t.prototype.dispose=function(){for(var t=0;t<this._handlers.length;++t){var e=this._handlers[t];cc.game.off(e.event,e.cb,e.target)}},t}();o.AutoEventHandler=l;var s=function(t){function e(o,n,i){var r=t.call(this)||this;return r._instId=0,r._destroyed=!1,r._prefab=o,r._layer=n,r._layout=i,r._instId=e._idBase++,e._controllers.push(r),r}return i(e,t),Object.defineProperty(e.prototype,"instId",{get:function(){return this._instId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prefab",{get:function(){return this._prefab},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layer",{get:function(){return this._layer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},enumerable:!1,configurable:!0}),e.hideAll=function(){for(;this._controllers.length;)this._controllers[0].hide()},e.updateAll=function(){for(var t=0;t<this._controllers.length;++t){var e=this._controllers[t];e.node&&cc.isValid(e.node)&&this._controllers[t].onUpdate()}},e.prototype.setup=function(t){this.node=t,this._layout&&(this._layout=this.node.getComponent(this._layout)),this.onCreated(),this._destroyed&&this.hide()},e.prototype.hide=function(){if(this._destroyed=!0,this.node){this.node.removeFromParent();for(var t=0;t<e._controllers.length;++t)if(e._controllers[t]==this){e._controllers.splice(t,1);break}this.onDispose(),this.node.destroy(),this.node=null}},e.prototype.getRes=function(){return[]},e.prototype.onCreated=function(){},e.prototype.onDispose=function(){},e.prototype.onUpdate=function(){},e._idBase=1e3,e._controllers=[],e}(cc.EventTarget);o.UIController=s,cc._RF.pop()},{}],UIDef:[function(t,e,o){"use strict";cc._RF.push(e,"cb4cdwQxgBLAK4IOT9Bm5ks","UIDef"),Object.defineProperty(o,"__esModule",{value:!0}),o.UIList=void 0;var n=t("./UILayers");o.UIList={loading:{prefab:"loading",layer:n.UILayers.popup},debug:{prefab:"ui/debug",layer:n.UILayers.debug}},cc._RF.pop()},{"./UILayers":"UILayers"}],UILayers:[function(t,e,o){"use strict";var n;cc._RF.push(e,"e1cbcwrhd1KQYd7RDtffSNU","UILayers"),Object.defineProperty(o,"__esModule",{value:!0}),o.UILayerNames=o.UILayers=void 0,function(t){t[t.game=0]="game",t[t.popup=1]="popup",t[t.alert=2]="alert",t[t.debug=3]="debug",t[t.loading=4]="loading",t[t.num=5]="num"}(n||(n={})),o.UILayers=n;var i=[];o.UILayerNames=i;for(var r=0;r<n.num;r++){var c=n[r];i.push(c)}cc._RF.pop()},{}],UIMgr:[function(t,e,o){"use strict";cc._RF.push(e,"dba72L13BRByI/C+1B1Me/R","UIMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.UIMgr=void 0;var n,i=cc._decorator;i.ccclass,i.property,function(t){t[t.none=0]="none",t[t.loading=1]="loading",t[t.show=2]="show",t[t.close=3]="close"}(n||(n={}));var r=function(){function t(){this._instId=0,this.state=n.loading,this._instId=t._idBase++}return Object.defineProperty(t.prototype,"instId",{get:function(){return this._instId},enumerable:!1,configurable:!0}),t.prototype.destory=function(){cc.isValid(this.node,!0)&&this.node.destroy(),this.asset&&this.asset.decRef(),this.state=n.close},t._idBase=0,t}(),c=function(){function t(){this.handleArr=[]}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.createFullScreenNode=function(){var t=this._uiCanvas,e=new cc.Node;e.group=this._uiCanvas.group,e.width=t.width,e.height=t.height;var o=e.addComponent(cc.Widget);return o.isAlignBottom=!0,o.isAlignTop=!0,o.isAlignLeft=!0,o.isAlignRight=!0,o.left=0,o.right=0,o.top=0,o.bottom=0,e},t.prototype.setup=function(t,e,o){if(!this._uiCanvas)if(t){t instanceof cc.Node?this._uiCanvas=t:(this._uiCanvas=cc.instantiate(t),cc.director.getScene().addChild(this._uiCanvas)),this._uiCanvas.name="$tgxUICanvas$",o||(o=[]),this._uiRoot=this.createFullScreenNode(),this._uiRoot.name="ui_root",this._uiCanvas.addChild(this._uiRoot);for(var n=0;n<e;++n){var i=this.createFullScreenNode();i.name="ui_layer_"+(o[n]?o[n]:n),this._uiRoot.addChild(i),i.on(cc.Node.EventType.CHILD_REMOVED,this.uiRemove,this)}}else cc.error("uiCanvas must be a cc.Node or cc.Prefab")},t.prototype.uiRemove=function(t){var e=this.handleArr.findIndex(function(e){return e.node.uuid==t.uuid});-1!=e&&this.hideUIIndex(e)},t.prototype.getLayerNode=function(t){return this._uiRoot.children[t]||this._uiRoot},t.prototype.getUI=function(t){return this.handleArr.find(function(e){return e.uiData.prefab==t.prefab})},t.prototype.isShowing=function(t){var e=this.getUI(t);return!!e&&(e.state==n.loading||e.state==n.show)},t.prototype.showUI=function(t){var e=this,o=new r;return o.state=n.loading,o.uiData=t,this.handleArr.push(o),cc.resources.load(t.prefab,cc.Prefab,function(i,r){if(i)return console.log(i),void e.showUI(t);if(o.state==n.loading){var c=cc.instantiate(r);e.getLayerNode(t.layer).addChild(c),o.state=n.show,o.asset=r,o.node=c,r.addRef()}else cc.assetManager.releaseAsset(r)}),o},t.prototype.hideUI=function(t){var e=this.handleArr.findIndex(function(e){return e.uiData.prefab==t.prefab});-1!=e&&this.hideUIIndex(e)},t.prototype.hideUIIndex=function(t){this.handleArr[t].destory(),this.handleArr.splice(t,1)},t}();o.UIMgr=c,window.uiMgr=function(){return c.inst},cc._RF.pop()},{}],aniList:[function(t,e,o){"use strict";cc._RF.push(e,"48dfaPtVhdL55Wy24GR/KOY","aniList");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../common/editorSet"),l=cc._decorator,s=l.ccclass,a=l.property,u=l.executeInEditMode,p=l.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.monster=null,e.aniClip=[],e}return i(e,t),e.prototype.onLoad=function(){var t=new cc.Node("monsterGroup");this.monsterNode=t,c.EditorSet.DontShow(t),this.node.addChild(t),this.play()},e.prototype.end=function(){this.monsterNode.destroyAllChildren()},e.prototype.play=function(){var t=this;if(this.monsterNode.destroyAllChildren(),this.monster){var e=cc.instantiate(this.monster),o=0,n=function(){var i=new cc.Node("AniItem"),r=e.parent?e.parent:t.monsterNode;e.removeFromParent(!1),i.addChild(e),r.addChild(i);var c=i.addComponent(cc.Animation);c.addClip(t.aniClip[o],"path"),c.play("path"),c.once(cc.Animation.EventType.FINISHED,function(){++o<t.aniClip.length&&(i.angle=0,n())})};n()}else cc.log("\u8bbe\u7f6e\u602a\u7269\u8d44\u6e90")},r([a(cc.Prefab)],e.prototype,"monster",void 0),r([a([cc.AnimationClip])],e.prototype,"aniClip",void 0),r([s,u,p],e)}(cc.Component);o.default=d,cc._RF.pop()},{"../common/editorSet":"editorSet"}],bullet:[function(t,e,o){"use strict";cc._RF.push(e,"ea727IfRsRLMpwc+QysHqX5","bullet");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../Script/Collide/lq_collide_system/lq_collide"),l=t("../../Script/Collide/lq_collide_system/lq_collide_config"),s=t("./update/move"),a=cc._decorator,u=a.ccclass,p=a.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$dragon_bone=null,e.moveCpt=null,e}return i(e,t),e.prototype.onLoad=function(){var t=this;this.$dragon_bone.playAnimation("appear",1),this.$dragon_bone.addEventListener("complete",function(){t.$dragon_bone.playAnimation("bullet_1",0)})},e.prototype.on_enter=function(t){this.node.destroy(),t.collide_group_index==l.LQCollideInfoList.enemy&&(t.node.destroy(),cc.log("@@ -- ",t.node.name))},e.prototype.getMoveCpt=function(){return this.moveCpt||(this.moveCpt=this.node.getComponent(s.default),this.moveCpt||(this.moveCpt=this.node.addComponent(s.default))),this.moveCpt},r([p({type:dragonBones.ArmatureDisplay,displayName:""})],e.prototype,"$dragon_bone",void 0),r([u],e)}(c.LQCollide);o.default=d,cc._RF.pop()},{"../../Script/Collide/lq_collide_system/lq_collide":"lq_collide","../../Script/Collide/lq_collide_system/lq_collide_config":"lq_collide_config","./update/move":"move"}],configMgr:[function(t,e,o){"use strict";cc._RF.push(e,"61b51CM8LZJt7TUn6viH3Ik","configMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.ConfigMgr=void 0;var n=t("./ConfigDef"),i=function(){function t(){this.config=new cc.AssetManager.Cache}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.init=function(){var t=this,e=n.jsonNames.map(function(t){return"json/"+t+".json"}),o=[];return e.forEach(function(e,i){var r=new Promise(function(o){cc.assetManager.loadRemote(e,function(e,r){r&&(t.config.add(n.jsonNames[i],r.json),cc.assetManager.releaseAsset(r)),o()})});o.push(r)}),Promise.all(o)},t.prototype.getCfgKeys=function(t){var e=this.config.get(t);return Object.keys(e)},t.prototype.getCfgById=function(t,e){return this.config.get(t)[e]},t.prototype.getCfgClassById=function(t,e,o){return new o(e,this.config.get(t)[e])},t}();o.ConfigMgr=i,cc._RF.pop()},{"./ConfigDef":"ConfigDef"}],debug:[function(t,e,o){"use strict";cc._RF.push(e,"9be2foFR/dPMrS0dlthIN09","debug");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../levelMgr"),l=t("../player"),s=t("../update/logic"),a=cc._decorator,u=a.ccclass,p=a.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$gamePlay_btn=null,e.$decLevel_btn=null,e.$addLevel_btn=null,e.$levelSkip_btn=null,e.$attck_btn=null,e.$level_edit=null,e}return i(e,t),e.prototype.onGameplayTouchEnd=function(){s.GameLogicMgr.inst.switch()},e.prototype.onDeclevelTouchEnd=function(){c.LevelMgr.inst.pre()},e.prototype.onAddlevelTouchEnd=function(){c.LevelMgr.inst.next()},e.prototype.onLevelskipTouchEnd=function(){var t=this.$level_edit.string;c.LevelMgr.inst.skip(Number(t))},e.prototype.onAttckTouchEnd=function(){l.default.PlayerAttack=!l.default.PlayerAttack},e.prototype.onLoad=function(){this.$level_edit.string=c.LevelMgr.inst.getMax().toString()},r([p({type:cc.Button,displayName:""})],e.prototype,"$gamePlay_btn",void 0),r([p({type:cc.Button,displayName:""})],e.prototype,"$decLevel_btn",void 0),r([p({type:cc.Button,displayName:""})],e.prototype,"$addLevel_btn",void 0),r([p({type:cc.Button,displayName:""})],e.prototype,"$levelSkip_btn",void 0),r([p({type:cc.Button,displayName:""})],e.prototype,"$attck_btn",void 0),r([p({type:cc.EditBox,displayName:""})],e.prototype,"$level_edit",void 0),r([u],e)}(cc.Component);o.default=d,cc._RF.pop()},{"../../levelMgr":"levelMgr","../player":"player","../update/logic":"logic"}],editorSet:[function(t,e,o){"use strict";cc._RF.push(e,"827a74V/ddBf7ZqYjMo33pE","editorSet"),Object.defineProperty(o,"__esModule",{value:!0}),o.EditorSet=void 0,(o.EditorSet||(o.EditorSet={})).DontShow=function(){},cc._RF.pop()},{}],eventDef:[function(t,e,o){"use strict";cc._RF.push(e,"f6e330HhbVJBLbMuaPUeUxQ","eventDef"),Object.defineProperty(o,"__esModule",{value:!0}),o.Touch_End=o.Touch_Move=o.Touch_Start=o.Roker_End=o.Roker_Move=void 0,o.Roker_Move="roker_move",o.Roker_End="roker_end",o.Touch_Start="Touch_Start",o.Touch_Move="Touch_Move",o.Touch_End="Touch_End",cc._RF.pop()},{}],flyImg:[function(t,e,o){"use strict";cc._RF.push(e,"09583eOmypGVb3f5sErEHEE","flyImg");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./update/GameLogic"),l=cc._decorator,s=l.ccclass,a=l.property,u=l.executeInEditMode,p=l.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pos=cc.v2(0,0),e.uvSpeed=0,e.mat=null,e._speed=100,e}return i(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.uvSpeed=t/this.node.height},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){this.getComponent(cc.Sprite).getMaterial(0).setProperty("center",this.pos),this.speed=100,this.mat=this.node.getComponent(cc.Sprite).getMaterial(0)},e.prototype.gameUpdate=function(t){var e=this.uvSpeed*t;this.pos.y-=e,this.mat.setProperty("center",this.pos)},r([a({type:cc.Integer})],e.prototype,"speed",null),r([s,u,p],e)}(c.GameLogic);o.default=d,cc._RF.pop()},{"./update/GameLogic":"GameLogic"}],levelMgr:[function(t,e,o){"use strict";cc._RF.push(e,"4e226LcBG1AUrUjgcc4NxLI","levelMgr");var n=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function c(t){try{s(n.next(t))}catch(e){r(e)}}function l(t){try{s(n.throw(t))}catch(e){r(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,l)}s((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var o,n,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(r){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return c.label++,{value:r[1],done:!1};case 5:c.label++,n=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){c.label=r[1];break}if(6===r[0]&&c.label<i[1]){c.label=i[1],i=r;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(r);break}i[2]&&c.ops.pop(),c.trys.pop();continue}r=e.call(t,c)}catch(l){r=[6,l],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0}),o.LevelMgr=void 0;var r,c=t("./Collide/lq_collide_system/lq_collide"),l=t("./game/cfg/ConfigDef"),s=t("./game/cfg/configMgr"),a=t("./game/cfg/smallLevelItem"),u=t("./game/common/utils"),p=t("./game/level/levelempty"),d=t("./game/nest/nestPlay"),_=t("./game/res/resMgr"),h=5;(function(t){t[t.none=0]="none",t[t.loading=1]="loading",t[t.playing=2]="playing"})(r||(r={}));var f=function(){function t(){this.passCnt=0,this.state=r.none}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t,this._inst.init()),this._inst},enumerable:!1,configurable:!0}),t.prototype.init=function(){cc.director.getScheduler().enableForTarget(this),cc.director.getScheduler().schedule(this.update,this,1,cc.macro.REPEAT_FOREVER,0,!1)},t.prototype.update=function(){this.state==r.playing&&(this.parent.getComponentsInChildren(c.LQCollide).length>0||this.next())},t.prototype.end=function(){cc.director.getScheduler().unschedule(this.update,this)},t.prototype.begin=function(){return n(this,void 0,void 0,function(){return i(this,function(){return this.passCnt=0,h=s.ConfigMgr.inst.getCfgKeys(l.ConfigConst.smallLevel).length,this.load(),[2]})})},t.prototype.load=function(){this.title.string="level"+(this.passCnt+1),this.loadSmallLevel()},t.prototype.loadSmallLevel=function(){return n(this,void 0,void 0,function(){var t,e,o,n,c,d=this;return i(this,function(i){switch(i.label){case 0:return this.parent.destroyAllChildren(),this.state=r.loading,[4,_.ResMgr.inst.loadPrefab("level/levelEmpty",this.parent)];case 1:return t=i.sent(),e=t.getComponent(p.default),o=s.ConfigMgr.inst.getCfgClassById(l.ConfigConst.smallLevel,this.passCnt+1,a.SmallLevelItem),n=o.getNestId(),c=[],n.forEach(function(t){var o=u.Utils.createNode(e.$top_node,"nest"),n=d.fillNest(o,t);c.push(n)}),[4,Promise.all(c)];case 2:return i.sent(),this.state=r.playing,[2]}})})},t.prototype.fillNest=function(t,e){return n(this,void 0,void 0,function(){var o;return i(this,function(n){switch(n.label){case 0:return[4,(o=t.addComponent(d.NestPlay)).init(e)];case 1:return n.sent(),[4,o.waitDone()];case 2:return n.sent(),[2]}})})},t.prototype.skip=function(t){cc.log("skip-",t),t>h||t<1||(this.passCnt=t-1,this.load())},t.prototype.next=function(){this.passCnt+1>=h||(this.passCnt++,this.load())},t.prototype.pre=function(){this.passCnt<=0||(this.passCnt--,this.load())},t.prototype.getMax=function(){return h},t.prototype.loadPrefabLevel=function(){var t=this;this.state=r.loading,this.title.string="level"+(this.passCnt+1),this.parent.destroyAllChildren(),_.ResMgr.inst.loadPrefab("level/level"+(this.passCnt+1),this.parent).then(function(){t.state=r.playing})},t}();o.LevelMgr=f,cc._RF.pop()},{"./Collide/lq_collide_system/lq_collide":"lq_collide","./game/cfg/ConfigDef":"ConfigDef","./game/cfg/configMgr":"configMgr","./game/cfg/smallLevelItem":"smallLevelItem","./game/common/utils":"utils","./game/level/levelempty":"levelempty","./game/nest/nestPlay":"nestPlay","./game/res/resMgr":"resMgr"}],levelempty:[function(t,e,o){"use strict";cc._RF.push(e,"2f855CJRftJBq+e1rBSJT1T","levelempty");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,l=c.ccclass,s=c.property,a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$top_node=null,e}return i(e,t),r([s({type:cc.Node,displayName:""})],e.prototype,"$top_node",void 0),r([l],e)}(cc.Component);o.default=a,cc._RF.pop()},{}],loading:[function(t,e,o){"use strict";cc._RF.push(e,"61057L8SgdKBL6yugliubUV","loading");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,l=c.ccclass,s=(c.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),r([l],e)}(cc.Component));o.default=s,cc._RF.pop()},{}],logic:[function(t,e,o){"use strict";cc._RF.push(e,"721325RsEFGt6uG4FoA75+t","logic"),Object.defineProperty(o,"__esModule",{value:!0}),o.GameLogicMgr=void 0;var n=function(){function t(){this.isGamePause=!1}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t,this._inst.init()),this._inst},enumerable:!1,configurable:!0}),t.prototype.switch=function(){this.isGamePause=!this.isGamePause,dragonBones.timeScale=this.isGamePause?0:1},t.prototype.init=function(){var e=cc.director.getAnimationManager();e._oldUpdate=e.update,e.update=function(o){t.inst.isGamePause||e._oldUpdate(o)}},t}();o.GameLogicMgr=n,cc._RF.pop()},{}],lq_base_util:[function(t,e,o){"use strict";cc._RF.push(e,"b1594dXFXBAz7OcUYK7qK7P","lq_base_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQBaseUtil=void 0;var n=t("./lq_platform_util"),i=t("../data/lq_const"),r=cc.view,c=function(){function t(){}return t.has_value=function(t,e){for(var o=!1,n=0;n<t.length;n++)if(t[n]===e){o=!0;break}return o},t.get_value_by_duration=function(t,e){if(0===e.length)return 1;for(var o=-1,n=1;n<e.length;n++)if(e[n].x>t){o=n;break}if(-1===o)return e[e.length-1].y;var i=o-1;return e[i].y+(e[o].y-e[i].y)*((t-e[i].x)/(e[o].x-e[i].x))},t.number_to_counting=function(t){return t<1e3?t+"":t<1e6?Math.floor(t/1e3)+"K":t<1e9?Math.floor(t/1e6)+"M":t<1e12?Math.floor(t/1e9)+"B":Math.floor(t/1e12)+"T"},t.number_to_time=function(t){var e=Math.floor(t/3600);t-=3600*e;var o=e.toString(),n=Math.floor(t/60).toString(),i=(t%60).toString();return 1===o.length&&(o="0"+o),1===n.length&&(n="0"+n),1===i.length&&(i="0"+i),[o,n,i]},t.set_normal_angle=function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t},t.compare_version=function(t,e){for(var o=t.split("."),n=e.split("."),i=Math.max(o.length,n.length);o.length<i;)o.push("0");for(;n.length<i;)n.push("0");for(var r=0;r<i;r++){var c=parseInt(o[r]),l=parseInt(n[r]);if(c>l)return 1;if(c<l)return-1}return 0},t.is_today=function(t){var e,o=new Date;return t&&""!==t?e=new Date(t):(e=new Date).setDate(e.getDate()-1),o.getFullYear()===e.getFullYear()&&o.getMonth()===e.getMonth()&&o.getDate()===e.getDate()},t.is_safe_area=function(){var t=function(t,e){return 2280===t&&1080===e||1792===t&&828===e||2436===t&&1125===e||2688===t&&1242===e};switch(n.LQPlatformUtil.get_platform()){case i.LQPlatformType.baidu:var e=swan.getSystemInfoSync();return t(e.pixelRatio*e.screenWidth,e.pixelRatio*e.screenHeight);case i.LQPlatformType.qq:var o=qq.getSystemInfoSync();return t(o.pixelRatio*o.screenWidth,o.pixelRatio*o.screenHeight);case i.LQPlatformType.tt:var c=tt.getSystemInfoSync();return t(c.pixelRatio*c.screenWidth,c.pixelRatio*c.screenHeight);case i.LQPlatformType.oppo:case i.LQPlatformType.vivo:var l=qg.getSystemInfoSync();return t(l.pixelRatio*l.screenWidth,l.pixelRatio*l.screenHeight);case i.LQPlatformType.wx:var s=wx.getSystemInfoSync();return t(s.pixelRatio*s.screenWidth,s.pixelRatio*s.screenHeight);case i.LQPlatformType.android:break;case i.LQPlatformType.ios:var a=r.getFrameSize();return t(a.width,a.height)}return!1},t.deep_clone=function(t){if("object"!=typeof t)return t;var e=t instanceof Array?[]:{};for(var o in t)"object"==typeof t[o]?e[o]=this.deep_clone(t[o]):e[o]=t[o];return e},t}();o.LQBaseUtil=c,cc._RF.pop()},{"../data/lq_const":"lq_const","./lq_platform_util":"lq_platform_util"}],lq_collide_base:[function(t,e,o){"use strict";cc._RF.push(e,"3491dCwpnhFEqX9BL4D2ZCF","lq_collide_base");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollideBase=void 0;var c=cc._decorator.ccclass,l=cc._decorator.executeInEditMode,s=(cc.PolygonCollider,cc._decorator.property),a=t("./lq_collide"),u=(t("../lq_base/data/lq_const"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.auto_update_point=!0,e}return i(e,t),e.prototype.find_collide=function(){var t=this.node.getComponent(a.LQCollide);if(t)return t;console.error(this.node.name+":\u6ca1\u6709\u627e\u5230LQCollide\u7ec4\u4ef6")},e.prototype.onLoad=function(){var t=this.find_collide();t&&t.init_lq_collide()},e.prototype.onEnable=function(){var t=this.find_collide();t&&t.enable_lq_collide()},e.prototype.onDisable=function(){var t=this.find_collide();t&&t.disable_lq_collide()},e.prototype.onDestroy=function(){this.find_collide()},e.prototype.onFocusInEditor=function(){this.find_collide()},e.prototype.onLostFocusInEditor=function(){this.find_collide()},e.prototype.resetInEditor=function(){this.find_collide()},e.prototype.update=function(){},r([s({tooltip:"\u591a\u8fb9\u5f62\u81ea\u52a8\u540c\u6b65cocos PolygonCollider \u7ec4\u4ef6\u4e2d\u7684\u78b0\u649e\u70b9"})],e.prototype,"auto_update_point",void 0),r([c,l],e)}(cc.Component));o.LQCollideBase=u,cc._RF.pop()},{"../lq_base/data/lq_const":"lq_const","./lq_collide":"lq_collide"}],lq_collide_config:[function(t,e,o){"use strict";cc._RF.push(e,"a7388G06nJN9a7Qh8tcl84U","lq_collide_config"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollideConfig=o.LQCollideInfoList=void 0,function(t){t[t.default=0]="default",t[t.role=1]="role",t[t.role_bullet=2]="role_bullet",t[t.enemy=3]="enemy",t[t.enemy_bullet=4]="enemy_bullet",t[t.prop=5]="prop"}(o.LQCollideInfoList||(o.LQCollideInfoList={}));var n=function(){function t(){}return t.switch_auto_run=!0,t.switch_print_log=!1,t.switch_quad_tree=!0,t.max_node_len=10,t.per_frame=60,t.max_node_level=4,t.active_area_x=0,t.active_area_y=0,t.active_area_width=1e3,t.active_area_height=1e3,t.collide_group_map={default:{id:1,category:1,index:0,mask:1},role:{id:2,category:2,index:1,mask:56},role_bullet:{id:3,category:4,index:2,mask:40},enemy:{id:4,category:8,index:3,mask:6},enemy_bullet:{id:5,category:16,index:4,mask:2},prop:{id:6,category:32,index:5,mask:6}},t}();o.LQCollideConfig=n,cc._RF.pop()},{}],lq_collide_system:[function(t,e,o){"use strict";cc._RF.push(e,"1459eaDBFhFPZbiRADWgq6V","lq_collide_system"),o.__esModule=!0,o.LQCollideSystem=void 0;var n=t("../lq_base/data/lq_const"),i=t("../lq_base/util/lq_math_util"),r=t("./lq_collide_config"),c=t("../lq_base/data/lq_data"),l=cc.Vec2,s=cc.game,a=cc.director,u=cc.Scheduler,p=cc.misc,d=function(){function t(t,e,o,n){this.collide_arr=[],this.node_arr=[],this.max_object=e||10,this.max_level=o||4,this.level=n||0,this.rect=t,this.collide_arr=[],this.node_arr=[]}return t.prototype.split=function(){var e=this.level+1,o=.5*this.rect.width,n=.5*this.rect.height,i=this.rect.x,r=this.rect.y;this.node_arr[0]=new t(new c.LQRect(i+o,r,o,n),this.max_object,this.max_level,e),this.node_arr[1]=new t(new c.LQRect(i,r,o,n),this.max_object,this.max_level,e),this.node_arr[2]=new t(new c.LQRect(i,r+n,o,n),this.max_object,this.max_level,e),this.node_arr[3]=new t(new c.LQRect(i+o,r+n,o,n),this.max_object,this.max_level,e)},t.prototype.get_index=function(t){var e=[],o=this.rect.x+this.rect.half_width,n=this.rect.y+this.rect.half_height,i=t.world_rect.y+t.world_rect.half_height>n,r=t.world_rect.x-t.world_rect.half_width<o,c=t.world_rect.x+t.world_rect.half_width>o,l=t.world_rect.y-t.world_rect.half_height<n;return c&&i&&e.push(0),r&&i&&e.push(1),r&&l&&e.push(2),l&&c&&e.push(3),e},t.prototype.insert=function(t){var e;if(this.node_arr.length){e=this.get_index(t);for(var o=0;o<e.length;o++)this.node_arr[e[o]].insert(t)}else if(this.collide_arr.push(t),this.collide_arr.length>this.max_object&&this.level<this.max_level){for(this.node_arr.length||this.split(),o=0;o<this.collide_arr.length;o++){var n=this.collide_arr[o];e=this.get_index(n);for(var i=0;i<e.length;i++)this.node_arr[e[i]].insert(n)}this.collide_arr=[]}},t.prototype.retrieve=function(e){var o,n=this.get_index(e);if(this.collide_arr.length&&(o=t.temp_collide_arr).push.apply(o,this.collide_arr),this.node_arr.length)for(var i=0;i<n.length;i++)this.node_arr[n[i]].retrieve(e)},t.prototype.get_all_area=function(){if(this.collide_arr.length&&t.all_collide_arr.push(this.collide_arr),this.node_arr.length)for(var e=0;e<4;e++)this.node_arr[e].get_all_area()},t.prototype.clear=function(){this.collide_arr=[];for(var t=0;t<this.node_arr.length;t++)this.node_arr.length&&this.node_arr[t].clear();this.node_arr=[]},t.temp_collide_arr=[],t.all_collide_arr=[],t}(),_=function(){function t(){}return t.cache_polygon=function(t){if(t._collide_shape===n.LQCollideShape.Rect){t.cache_polygon_points=[];var e=t.world_rect.top_left();t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y),e=t.world_rect.bottom_left(),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y),e=t.world_rect.bottom_right(),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y),e=t.world_rect.top_right(),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y)}else if(t._collide_shape===n.LQCollideShape.Polygon)if(t.cache_polygon_points=[],0==t.node.angle)for(var o=0;o<t._polygon_points.length;o++)e=t.world_rect.add(t._polygon_points[o]),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y);else{var i=p.degreesToRadians(t.node.angle),r=Math.sin(i),c=Math.cos(i);for(o=0;o<t._polygon_points.length;o++)s=t._polygon_points[o],e=new l(s.x*c-s.y*r+t.world_rect.x,s.x*r+s.y*c+t.world_rect.y),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y)}var s},t._updateWorldMatrix=function(e){if(e._parent&&t._updateWorldMatrix(e._parent),e._worldMatDirty){this.tmp_bool=!0,e._calculWorldMatrix();for(var o=e._children,n=0,i=o.length;n<i;n++)o[n]._worldMatDirty=!0}},t.transformMat4=function(t,e,o){var n=o.m;return t.x=n[0]*e.x+n[4]*e.y+n[12],t.y=n[1]*e.x+n[5]*e.y+n[13],t},t.update_world_rect=function(e){e.world_rect&&(this.tmp_bool=!1,this._updateWorldMatrix(e.node),this.tmp_bool&&(e.cache_polygon_points=void 0),t.transformMat4(e.world_rect,e._offset,e.node._worldMatrix))},t.update_collide_logic=function(t){if(t.is_open_func)for(var e in t.collide_map){var o=t.collide_map[e];1===o.status?o.status=2:(delete t.collide_map[e],t.on_exit(o.collide))}t.update_lq_collide()},t.collide_other=function(t,e){if(t.is_open_func){var o=t.collide_map[e.collide_id];o?o.status=1:(t.collide_map[e.collide_id]={collide:e,status:1},t.on_enter(e))}if(e.is_open_func){var n=e.collide_map[t.collide_id];n?n.status=1:(e.collide_map[t.collide_id]={collide:t,status:1},e.on_enter(t))}t.on_collide(e),e.on_collide(t)},t.add_collide=function(t){this.update_world_rect(t),this.collide_arr.push(t)},t.remove_collide=function(t){for(var e=this.collide_arr.length-1;e>=0;e--)if(this.collide_arr[e].collide_id===t.collide_id){this.collide_arr.splice(e,1);break}},t.line_point=function(t,e,o,n,i,r){return Math.abs(this.distanceSquared(t,e,o,n)-(this.distanceSquared(t,e,i,r)+this.distanceSquared(o,n,i,r)))<=1},t.distanceSquared=function(t,e,o,n){return Math.sqrt(Math.pow(t-o,2)+Math.pow(e-n,2))},t.polygon_point=function(t,e,o){var n,i,r=t.length,c=!1;for(n=0,i=r-2;n<r;n+=2)t[n+1]>o!=t[i+1]>o&&e<(t[i]-t[n])*(o-t[n+1])/(t[i+1]-t[n+1])+t[n]&&(c=!c),i=n;if(c)return!0;for(n=0;n<r;n+=2){var l=t[n],s=t[n+1],a=void 0,u=void 0;if(n===r-2?(a=t[0],u=t[1]):(a=t[n+2],u=t[n+3]),this.line_point(l,s,a,u,e,o))return!0}return!1},t.polygon_circle=function(t,e,o,n){if(this.polygon_point(t,e,o))return!0;for(var i=t.length,r=0;r<i-2;r+=2)if(this.line_circle(t[r],t[r+1],t[r+2],t[r+3],e,o,n))return!0;return this.line_circle(t[0],t[1],t[i-2],t[i-1],e,o,n)},t.line_circle=function(t,e,o,n,i,r,c){var l=[i-t,r-e],s=[o-t,n-e],a=this.dot(s,s),u=this.dot(l,s)/a,p=[s[0]*(u=(u=u<0?0:u)>1?1:u)+t-i,s[1]*u+e-r];return this.dot(p,p)<=c*c},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},t.update_logic=function(){if(this.is_enable)if(r.LQCollideConfig.switch_quad_tree){this.quad_tree.clear();for(var t=this.collide_arr.length-1;t>=0;t--){if(!(s=this.collide_arr[t]))return;s.isValid?(this.update_collide_logic(s),s.is_enable&&(this.update_world_rect(s),this.quad_tree.insert(s))):this.collide_arr.splice(t,1)}d.all_collide_arr=[],this.quad_tree.get_all_area();for(var e=0;e<d.all_collide_arr.length;e++){var o=d.all_collide_arr[e];for(t=0;t<o.length;t++)for(var n=o[t],c=t+1;c<o.length;c++){var l=o[c];n.collide_category&l.collide_mask&&n!==l&&(1===n._collide_shape&&1===l._collide_shape?i.LQMathUtil.intersects_rect(n.world_rect,l.world_rect)&&this.collide_other(n,l):1===n._collide_shape&&2===l._collide_shape?i.LQMathUtil.intersects_circle_rect(l.world_rect,l.radius,n.world_rect)&&this.collide_other(n,l):2===n._collide_shape&&1===l._collide_shape?i.LQMathUtil.intersects_circle_rect(n.world_rect,n.radius,l.world_rect)&&this.collide_other(n,l):2===n._collide_shape&&2===l._collide_shape?i.LQMathUtil.intersects_circle(n.world_rect,n.radius,l.world_rect,l.radius)&&this.collide_other(n,l):3==n._collide_shape&&2==l._collide_shape?(n.cache_polygon_points||this.cache_polygon(n),this.polygon_circle(n.cache_polygon_points,l.world_rect.x,l.world_rect.y,l.radius)&&this.collide_other(n,l)):2==n._collide_shape&&3==l._collide_shape?(l.cache_polygon_points||this.cache_polygon(l),this.polygon_circle(l.cache_polygon_points,n.world_rect.x,n.world_rect.y,n.radius)&&this.collide_other(n,l)):(n.cache_polygon_points||this.cache_polygon(n),l.cache_polygon_points||this.cache_polygon(l),this.polygon_polygon(n.cache_polygon_points,l.cache_polygon_points)&&this.collide_other(n,l)))}}}else{for(o=[],t=this.collide_arr.length-1;t>=0;t--){var s;if(!(s=this.collide_arr[t]))return;s.isValid?(this.update_collide_logic(s),s.is_enable&&(this.update_world_rect(s),o.push(s))):this.collide_arr.splice(t,1)}var a=o.length;for(t=0;t<a;t++)for(n=o[t],c=t+1;c<a;c++)l=o[c],n.collide_category&l.collide_mask&&(1===n._collide_shape&&1===l._collide_shape?i.LQMathUtil.intersects_rect(n.world_rect,l.world_rect)&&this.collide_other(n,l):1===n._collide_shape&&2===l._collide_shape?i.LQMathUtil.intersects_circle_rect(l.world_rect,l.radius,n.world_rect)&&this.collide_other(n,l):2===n._collide_shape&&1===l._collide_shape?i.LQMathUtil.intersects_circle_rect(n.world_rect,n.radius,l.world_rect)&&this.collide_other(n,l):2===n._collide_shape&&2===l._collide_shape?i.LQMathUtil.intersects_circle(n.world_rect,n.radius,l.world_rect,l.radius)&&this.collide_other(n,l):3==n._collide_shape&&2==l._collide_shape?(n.cache_polygon_points||this.cache_polygon(n),this.polygon_circle(n.cache_polygon_points,l.world_rect.x,l.world_rect.y,l.radius)&&this.collide_other(n,l)):2==n._collide_shape&&3==l._collide_shape?(l.cache_polygon_points||this.cache_polygon(l),this.polygon_circle(l.cache_polygon_points,n.world_rect.x,n.world_rect.y,n.radius)&&this.collide_other(n,l)):(n.cache_polygon_points||this.cache_polygon(n),l.cache_polygon_points||this.cache_polygon(l),this.polygon_polygon(n.cache_polygon_points,l.cache_polygon_points)&&this.collide_other(n,l)))}},t.polygon_polygon=function(t,e){for(var o,n,i,r,c,l,s=t,a=e,u=[s,a],p=0;p<u.length;p++)for(var d=u[p],_=0;_<d.length;_+=2){var h=(_+2)%d.length,f={x:d[h+1]-d[_+1],y:d[_]-d[h]};for(o=null,n=null,l=0;l<s.length;l+=2)i=f.x*s[l]+f.y*s[l+1],(null===o||i<o)&&(o=i),(null===n||i>n)&&(n=i);for(r=null,c=null,l=0;l<a.length;l+=2)i=f.x*a[l]+f.y*a[l+1],(null===r||i<r)&&(r=i),(null===c||i>c)&&(c=i);if(n<r||c<o)return!1}return!0},t.get_group_by_index=function(t){for(var e in r.LQCollideConfig.collide_group_map){var o=r.LQCollideConfig.collide_group_map[e];if(o.index===t)return o}},t.get_info_by_id=function(t){var e;for(var o in r.LQCollideConfig.collide_group_map){var n=r.LQCollideConfig.collide_group_map[o];if(n.id===t)return n;e||(e=n)}return e},t.find_nearest_collide=function(e){for(var o=[],n=t.collide_arr.length-1;n>=0;n--){var i=t.collide_arr[n];e!==i&&i.is_enable&&(e.follow_target_category?i.collide_category===e.follow_target_category&&o.push(i):0!=(i.collide_category&e.collide_mask)&&o.push(i))}return o.sort(function(t,o){return e.world_rect.sub(t.world_rect).magSqr()-e.world_rect.sub(o.world_rect).magSqr()}),o[0]},t.clear=function(t){if(void 0===t&&(t=!1),t)for(var e=this.collide_arr.length-1;e>=0;e--){var o=this.collide_arr[e];o.isValid&&o.node.destroy()}this.collide_arr=[]},t.check_collide=function(t){var e,o=[];r.LQCollideConfig.switch_quad_tree?(d.temp_collide_arr=[],this.quad_tree.retrieve(t),e=d.temp_collide_arr):e=this.collide_arr;for(var n=0;n<e.length;n++){var c=e[n];t!==c&&t.collide_category&c.collide_mask&&(1===t._collide_shape&&1===c._collide_shape?i.LQMathUtil.intersects_rect(t.world_rect,c.world_rect)&&o.push(c):1===t._collide_shape&&2===c._collide_shape?i.LQMathUtil.intersects_circle_rect(c.world_rect,c.radius,t.world_rect)&&o.push(c):2===t._collide_shape&&1===c._collide_shape?i.LQMathUtil.intersects_circle_rect(t.world_rect,t.radius,c.world_rect)&&o.push(c):2===t._collide_shape&&2===c._collide_shape?i.LQMathUtil.intersects_circle(t.world_rect,t.radius,c.world_rect,c.radius)&&o.push(c):this.polygon_polygon(t,c)&&o.push(c))}return o},t.is_enable=!1,t.collide_arr=[],t.quad_tree=new d(new c.LQRect(r.LQCollideConfig.active_area_x,r.LQCollideConfig.active_area_y,r.LQCollideConfig.active_area_width,r.LQCollideConfig.active_area_height),r.LQCollideConfig.max_node_len,r.LQCollideConfig.max_node_level),t}();o.LQCollideSystem=_;var h=function(){function t(){this.flag=!0}return t.prototype.update=function(t){60===r.LQCollideConfig.per_frame?_.update_logic(t):this.flag?(this.flag=!1,_.update_logic(t)):this.flag=!0},t}();s.on(s.EVENT_GAME_INITED,function(){if(r.LQCollideConfig.switch_auto_run){var t=new h;a.getScheduler().enableForTarget(t),a.getScheduler().scheduleUpdate(t,u.PRIORITY_SYSTEM,!1)}}),cc._RF.pop()},{"../lq_base/data/lq_const":"lq_const","../lq_base/data/lq_data":"lq_data","../lq_base/util/lq_math_util":"lq_math_util","./lq_collide_config":"lq_collide_config"}],lq_collide:[function(t,e,o){"use strict";cc._RF.push(e,"43ca4XWdF1CwJKowXL8JAQ/","lq_collide");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollide=void 0;var c=cc._decorator.ccclass,l=cc._decorator.property,s=cc._decorator.requireComponent,a=cc._decorator.menu,u=cc.Component,p=cc.Enum,d=cc.Size,_=cc.Vec2,h=cc.Graphics,f=cc.Node,y=cc.macro,g=cc.Color,v=t("../lq_base/data/lq_const"),m=t("./lq_collide_config"),b=t("./lq_collide_system"),w=t("../lq_base/data/lq_data"),C=t("./lq_collide_base"),L=t("../lq_base/util/lq_game_util"),O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._draw_collide=!1,e._collide_shape=v.LQCollideShape.Rect,e._collide_group_index=-1,e.collide_group_id=0,e._radius=50,e._size=new d(100,100),e._polygon_points=[new _(-45,-45),new _(45,-45),new _(60,40),new _(0,70),new _(-60,40)],e._offset=new _(0,0),e.data_string="",e.collide_id=0,e.collide_status=v.LQCollideStatus.Idle,e.is_enable=!0,e.is_open_func=!0,e.collide_category=0,e.collide_mask=0,e.collide_map={},e}var o;return i(e,t),o=e,Object.defineProperty(e.prototype,"draw_collide",{get:function(){return this._draw_collide},set:function(t){this._draw_collide=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collide_shape",{get:function(){return this._collide_shape},set:function(t){this._collide_shape=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collide_group_index",{get:function(){return-1===this._collide_group_index&&(this._collide_group_index=b.LQCollideSystem.get_info_by_id(this.collide_group_id).index),this._collide_group_index},set:function(t){this._collide_group_index!==t&&(this._collide_group_index=t,this.collide_group_id=b.LQCollideSystem.get_group_by_index(t).id)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this._radius},set:function(t){this._radius=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t,this.world_rect&&(this.world_rect.width=t.width,this.world_rect.height=t.height,this.world_rect.half_width=.5*t.width,this.world_rect.half_height=.5*t.height),this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(t){this._offset=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polygon_points",{get:function(){return this._polygon_points},set:function(t){this._polygon_points=t,this.draw_shape()},enumerable:!1,configurable:!0}),e.prototype.checkDebugDrawValid=function(){if(!this._debugDrawer||!this._debugDrawer.isValid){var t=this.node.getChildByName("Collide");t?this._debugDrawer=t.getComponent(h):((t=new f("Collide")).zIndex=y.MAX_ZINDEX,this.node.addChild(t),t._objFlags=1096,this._debugDrawer=t.addComponent(h),this._debugDrawer.lineWidth=3,this._debugDrawer.strokeColor=new g(255,0,0),this._debugDrawer.fillColor=new g(255,0,0))}},e.prototype.draw_shape=function(){if(this._draw_collide){this.checkDebugDrawValid(),this._debugDrawer.clear();var t={key:"scaleX",value:this.node.scaleX},e={key:"scaleY",value:this.node.scaleY};if(L.LQGameUtil.recursion_node_property(this.node,t),L.LQGameUtil.recursion_node_property(this.node,e),0!==t.value&&0!==e.value)switch(this._debugDrawer.node.scaleX=1/t.value,this._debugDrawer.node.scaleY=1/e.value,this._collide_shape){case v.LQCollideShape.Circle:this._debugDrawer.circle(+this._offset.x,+this._offset.y,this._radius),this._debugDrawer.stroke();break;case v.LQCollideShape.Rect:this._debugDrawer.moveTo(.5*-this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*-this._size.width+this._offset.x,.5*+this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*this._size.width+this._offset.x,.5*+this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*-this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.stroke();break;case v.LQCollideShape.Polygon:this._debugDrawer.moveTo(this._polygon_points[0].x+this._offset.x,this._polygon_points[0].y+this._offset.y);for(var o=1;o<this._polygon_points.length;o++)this._debugDrawer.lineTo(this._polygon_points[o].x+this._offset.x,this._polygon_points[o].y+this._offset.y);this._debugDrawer.lineTo(this._polygon_points[0].x+this._offset.x,this._polygon_points[0].y+this._offset.y),this._debugDrawer.stroke()}}else this._debugDrawer&&this._debugDrawer.clear()},e.prototype.update_size=function(t,e){this._size.width=t,this.world_rect.width=t,this.world_rect.half_width=.5*t,this._size.height=e,this.world_rect.height=e,this.world_rect.half_height=.5*e,this.draw_shape()},e.prototype.init_lq_collide=function(){this.world_rect=new w.LQRect(0,0,this._size.width,this._size.height),this.draw_shape();var t=b.LQCollideSystem.get_info_by_id(this.collide_group_id);this.collide_mask=t.mask,this.collide_category=t.category,this.collide_id=o.id_maker++},e.prototype.enable_lq_collide=function(){this.collide_status!==v.LQCollideStatus.Live?(this.is_enable=!0,this.collide_status=v.LQCollideStatus.Live,b.LQCollideSystem.add_collide(this)):console.warn(this.node.name+"\u91cd\u590d\u6dfb\u52a0")},e.prototype.disable_lq_collide=function(){this.collide_status===v.LQCollideStatus.Live&&(this.is_enable=!1,this.collide_status=v.LQCollideStatus.Idle,b.LQCollideSystem.remove_collide(this))},e.prototype.update_lq_collide=function(){},e.prototype.on_collide=function(){m.LQCollideConfig.switch_print_log&&console.log(this.node.name+" collide")},e.prototype.on_enter=function(){m.LQCollideConfig.switch_print_log&&console.log(this.node.name+" on_enter")},e.prototype.on_exit=function(){m.LQCollideConfig.switch_print_log&&console.log(this.node.name+" on_exit")},e.id_maker=1,r([l({displayName:"\u7ed8\u5236\u5f62\u72b6"})],e.prototype,"draw_collide",null),r([l],e.prototype,"_draw_collide",void 0),r([l({tooltip:"\u78b0\u649e\u5f62\u72b6\uff0cNone\u5c31\u662f\u65e0\u654c\uff0c\u4e0d\u53c2\u4e0e\u78b0\u649e",type:p(v.LQCollideShape),displayName:"\u78b0\u649e\u5f62\u72b6"})],e.prototype,"collide_shape",null),r([l()],e.prototype,"_collide_shape",void 0),r([l({type:p(m.LQCollideInfoList),tooltip:"\u78b0\u649e\u7c7b\u522b",displayName:"\u78b0\u649e\u7c7b\u522b"})],e.prototype,"collide_group_index",null),r([l({serializable:!1})],e.prototype,"_collide_group_index",void 0),r([l({visible:!1})],e.prototype,"collide_group_id",void 0),r([l({tooltip:"collide\u534a\u5f84",visible:function(){return this._collide_shape===v.LQCollideShape.Circle},displayName:"\u534a\u5f84"})],e.prototype,"radius",null),r([l()],e.prototype,"_radius",void 0),r([l({tooltip:"collide\u957f\u5bbd",visible:function(){return this._collide_shape===v.LQCollideShape.Rect},displayName:"\u957f\u5bbd"})],e.prototype,"size",null),r([l()],e.prototype,"_size",void 0),r([l({displayName:"\u4f4d\u7f6e\u504f\u79fb"})],e.prototype,"offset",null),r([l({type:_,visible:function(){return this._collide_shape===v.LQCollideShape.Polygon},displayName:"\u591a\u8fb9\u5f62\u78b0\u649e\u70b9"})],e.prototype,"polygon_points",null),r([l()],e.prototype,"_polygon_points",void 0),r([l()],e.prototype,"_offset",void 0),r([l({displayName:"\u81ea\u5b9a\u4e49\u5b57\u7b26\u4e32"})],e.prototype,"data_string",void 0),o=r([c,s(C.LQCollideBase),a("lq/collide")],e)}(u);o.LQCollide=O,cc._RF.pop()},{"../lq_base/data/lq_const":"lq_const","../lq_base/data/lq_data":"lq_data","../lq_base/util/lq_game_util":"lq_game_util","./lq_collide_base":"lq_collide_base","./lq_collide_config":"lq_collide_config","./lq_collide_system":"lq_collide_system"}],lq_const:[function(t,e,o){"use strict";cc._RF.push(e,"5bde8mEz7pI74BMiH5tY/Gf","lq_const"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQConst=o.LQOperateType=o.LQLevelStatus=o.LQAdErrStr=o.LQCallAd=o.LQCallBase=o.LQAnalysisTag=o.LQByteDanceType=o.LQPlatformType=o.LQHttpDataType=o.LQHttpRequestType=o.LQEasing=o.LQCollideStatus=o.LQFollowTargetMode=o.LQCollideShape=o.LQBulletEmitterStatus=o.LQRecordStatus=void 0;var n=cc.Vec2;(function(t){t[t.Idle=0]="Idle",t[t.Start=1]="Start",t[t.Pause=2]="Pause"})(o.LQRecordStatus||(o.LQRecordStatus={})),function(t){t[t.Idle=0]="Idle",t[t.Start=1]="Start",t[t.End=2]="End"}(o.LQBulletEmitterStatus||(o.LQBulletEmitterStatus={})),function(t){t[t.Rect=1]="Rect",t[t.Circle=2]="Circle",t[t.Polygon=3]="Polygon"}(o.LQCollideShape||(o.LQCollideShape={})),function(t){t[t.Always=0]="Always",t[t.Once=1]="Once",t[t.Pass=2]="Pass"}(o.LQFollowTargetMode||(o.LQFollowTargetMode={})),function(t){t[t.Idle=0]="Idle",t[t.Live=1]="Live"}(o.LQCollideStatus||(o.LQCollideStatus={})),function(t){t.BackIn="backIn",t.BackOut="backOut",t.quadIn="quadIn",t.quadOut="quadOut",t.quadInOut="quadInOut",t.cubicIn="cubicIn",t.expoOut="expoOut"}(o.LQEasing||(o.LQEasing={})),function(t){t.Get="get",t.Post="post"}(o.LQHttpRequestType||(o.LQHttpRequestType={})),function(t){t[t.Text=0]="Text",t[t.Binary=1]="Binary"}(o.LQHttpDataType||(o.LQHttpDataType={})),function(t){t.unknown="\u672a\u77e5\u5e73\u53f0",t.all="\u5168\u5e73\u53f0",t.wx="\u5fae\u4fe1",t.tt="\u5b57\u8282\u8df3\u52a8",t.oppo="oppo",t.vivo="vivo",t.qq="qq",t.baidu="\u767e\u5ea6",t.kwaigame="\u5feb\u624b",t.android="\u5b89\u5353",t.ios="\u82f9\u679c",t.browser="\u6d4f\u89c8\u5668"}(o.LQPlatformType||(o.LQPlatformType={})),function(t){t.tt="\u5934\u6761",t.tt_lite="\u5934\u6761\u6781\u901f\u7248",t.douyin="\u6296\u97f3",t.douyin_lite="\u6296\u97f3\u6781\u901f\u7248",t.ppx="\u76ae\u76ae\u867e",t.devtools="\u5b57\u8282\u5f00\u53d1\u5de5\u5177"}(o.LQByteDanceType||(o.LQByteDanceType={})),function(t){t.VideoComplete="video_complete",t.VideoBegin="video_begin",t.VideoInterrupt="video_interrupt",t.InterstitialShow="interstitial_show",t.BannerShow="banner_show",t.ExportShow="export_show",t.NativeShow="native_show",t.NativeClick="native_show"}(o.LQAnalysisTag||(o.LQAnalysisTag={})),function(t){t[t.InitSdk=0]="InitSdk",t[t.KeepScreenOn=1]="KeepScreenOn",t[t.Vibrate=2]="Vibrate",t[t.GetVersionCode=3]="GetVersionCode",t[t.GetVersionName=4]="GetVersionName",t[t.OpenUrl=5]="OpenUrl",t[t.DeleteDir=6]="DeleteDir",t[t.DeleteFile=7]="DeleteFile"}(o.LQCallBase||(o.LQCallBase={})),function(t){t[t.ShowBanner=0]="ShowBanner",t[t.HideBanner=1]="HideBanner",t[t.ShowVideo=2]="ShowVideo",t[t.ShowInterstitial=3]="ShowInterstitial",t[t.ShowNative=4]="ShowNative",t[t.CacheAd=5]="CacheAd"}(o.LQCallAd||(o.LQCallAd={})),function(t){t.Unsupported="\u4e0d\u652f\u6301",t.NoParameters="\u6ca1\u6709\u914d\u7f6e\u53c2\u6570",t.NoAD="\u6682\u65e0\u5e7f\u544a",t.VersionOld="\u7248\u672c\u8fc7\u4f4e",t.VideoInterrupt="\u4e2d\u65ad\u64ad\u653e",t.InstanceErr="\u5b9e\u4f8b\u4e3a\u7a7a",t.AlreadyExist="\u5df2\u7ecf\u5b58\u5728",t.IntervalTooShort="\u95f4\u9694\u592a\u77ed"}(o.LQAdErrStr||(o.LQAdErrStr={})),function(t){t[t.Begin=0]="Begin",t[t.Failed=1]="Failed",t[t.Complete=2]="Complete"}(o.LQLevelStatus||(o.LQLevelStatus={})),function(t){t[t.ClickNode=0]="ClickNode",t[t.ClickScreen=1]="ClickScreen",t[t.Move=2]="Move",t[t.Null=3]="Null"}(o.LQOperateType||(o.LQOperateType={}));var i=function(){function t(){}return t.VEC_ZERO=n.ZERO,t}();o.LQConst=i,cc._RF.pop()},{}],lq_data:[function(t,e,o){"use strict";cc._RF.push(e,"95cdagIuoFGBZHeaAUzIeQ6","lq_data"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQPlatformData=o.LQShareData=o.LQNativeComponent=o.LQRect=void 0;var n=cc.Vec2,i=cc.Rect,r=function(){function t(t,e,o,n){this.x=t,this.y=e,this.width=o,this.height=n,this.half_width=.5*o,this.half_height=.5*n}return t.prototype.top_left=function(){return new n(this.x-this.half_width,this.y+this.half_height)},t.prototype.top_right=function(){return new n(this.x+this.half_width,this.y+this.half_height)},t.prototype.bottom_left=function(){return new n(this.x-this.half_width,this.y-this.half_height)},t.prototype.bottom_right=function(){return new n(this.x+this.half_width,this.y-this.half_height)},t.prototype.pos=function(){return new n(this.x,this.y)},t.prototype.sub=function(t){return new n(t.x-this.x,t.y-this.y)},t.prototype.add=function(t){return new n(t.x+this.x,t.y+this.y)},t.prototype.to_cocos_rect=function(){return new i(this.x-this.half_width,this.y-this.half_height,this.width,this.height)},t}();o.LQRect=r;o.LQNativeComponent=function(){this.node_btn_arr=[]};o.LQShareData=function(t){t.title&&(this.title=t.title),t.remote_url&&(this.remote_url=t.remote_url),t.url_id&&(this.url_id=t.url_id),t.query&&(this.query=t.query),t.content&&(this.content=t.content),t.extra&&(this.extra=t.extra),t.type&&(this.type=t.type)};o.LQPlatformData=function(){},cc._RF.pop()},{}],lq_game_util:[function(t,e,o){"use strict";cc._RF.push(e,"de6c60Kq6RFArJfitr5Akod","lq_game_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQGameUtil=void 0;var n=cc.SpriteFrame,i=cc.director,r=cc.tween,c=cc.visibleRect,l=cc.find,s=function(){function t(){}return t.get_image=function(t,e,o){var i=this;void 0===o&&(o=!0),t&&""!==t?this.image_cache[t]?e(!0,this.image_cache[t]):cc.loader.load({url:t,type:"png"},function(r,c){if(r)return console.error("err:"+r),void e(!1,void 0);var l=new n(c);e(!0,l),o&&(i.image_cache[t]=l)}):e(!1,void 0)},t.canvas_policy=function(t,e,o){return c.height/c.width>o/e?(t.fitHeight=!1,t.fitWidth=!0):(t.fitHeight=!0,t.fitWidth=!1),t.fitHeight},t.recursion_node_property=function(t,e){t.parent&&(e.value*=t.parent[e.key],this.recursion_node_property(t.parent,e))},t.find_node=function(t){if(!t||t.length<=0)console.warn("\u8def\u5f84\u4e0d\u6b63\u786e");else{var e=t.split("/"),o=l(e[0]);if(o){for(var n=o,i=1;i<e.length;i++){var r=n.getChildByName(e[i]);if(!r)return void console.warn("\u6ca1\u627e\u5230\u8282\u70b9:"+e[i]);n=r}return n}console.warn("\u6ca1\u627e\u5230\u8282\u70b9:"+e[0])}},t.wait=function(t){return new Promise(function(e){r(i.getScene()).delay(t).call(function(){e()}).start()})},t.set_clip=function(t,e,o,n){for(var i=function(t){for(var i=0;i<t.length;i++)i%2==0?(o&&(t[i]=-t[i]),t[i]+=e.x):(n&&(t[i]=-t[i]),t[i]+=e.y)},r=t.curveData.props.position,c=0;c<r.length;c++){var l=r[c].motionPath,s=r[c].value;if(l)for(var a=0;a<l.length;a++)i(l[a]);i(s)}},t.scroll_layout=function(t,e){void 0===e&&(e=50),t.updateLayout();var o=(t.type===cc.Layout.Type.HORIZONTAL?t.node.width:t.node.height)/e;if(t.type===cc.Layout.Type.HORIZONTAL){var n=1===t.node.anchorX?.5*t.node.width:.5*-t.node.width;t.node.runAction(cc.repeatForever(cc.sequence(cc.moveBy(o,cc.v2(n,0)),cc.callFunc(function(){t.node.x-=n}))))}else if(t.type===cc.Layout.Type.VERTICAL||t.type===cc.Layout.Type.GRID){var i=1===t.node.anchorY?.5*t.node.height:.5*-t.node.height;t.node.runAction(cc.repeatForever(cc.sequence(cc.moveBy(o,cc.v2(0,i)),cc.callFunc(function(){t.node.y-=i}))))}},t.image_cache={},t}();o.LQGameUtil=s,cc._RF.pop()},{}],lq_interface:[function(t,e,o){"use strict";cc._RF.push(e,"34678w3gNdGf6r6YFC/iNBm","lq_interface"),Object.defineProperty(o,"__esModule",{value:!0}),cc._RF.pop()},{}],lq_math_util:[function(t,e,o){"use strict";cc._RF.push(e,"ebf56owVKxAu5mJI/gWw2Tf","lq_math_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQMathUtil=void 0;var n=function(){function t(){}return t.random=function(t,e){return t===e?t:t<e?Math.random()*(e-t)+t:Math.random()*(t-e)+e},t.random_int=function(t,e){return Math.floor(this.random(t,e))},t.get_radians=function(t,e){var o=Math.atan2(e.y-t.y,e.x-t.x);return o>0?o:o+6.28},t.intersects_rect=function(t,e){return Math.abs(t.x-e.x)<t.half_width+e.half_width&&Math.abs(t.y-e.y)<t.half_height+e.half_height},t.intersects_point_rect=function(t,e){return t.x>e.x-.5*e.width&&t.x<e.x+.5*e.width&&t.y>e.y-.5*e.height&&t.y<e.y+.5*e.height},t.intersects_point_circle=function(t,e,o){return t.sub(e).magSqr()<o*o},t.intersects_circle=function(t,e,o,n){return t.sub(o).mag()<e+n},t.intersects_circle_rect=function(t,e,o){var n=t.x-o.x,i=t.y-o.y,r=Math.min(n,o.half_width),c=Math.max(r,-o.half_width),l=Math.min(i,o.half_height),s=Math.max(l,-o.half_height);return(c-n)*(c-n)+(s-i)*(s-i)<=e*e},t}();o.LQMathUtil=n,cc._RF.pop()},{}],lq_platform_util:[function(t,e,o){"use strict";cc._RF.push(e,"c661eGRNIZABKsZVzpnKejD","lq_platform_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQPlatformUtil=void 0;var n=t("../data/lq_const"),i=function(){function t(){}return t.init=function(){if("undefined"!=typeof qq)this.platform_type=n.LQPlatformType.qq;else if("undefined"!=typeof swan)this.platform_type=n.LQPlatformType.baidu;else if("undefined"!=typeof tt)switch(this.platform_type=n.LQPlatformType.tt,tt.getSystemInfoSync().appName){case"Toutiao":this.byte_dance_type=n.LQByteDanceType.tt;break;case"news_article_lite":this.byte_dance_type=n.LQByteDanceType.tt_lite;break;case"Douyin":this.byte_dance_type=n.LQByteDanceType.douyin;break;case"douyin_lite":this.byte_dance_type=n.LQByteDanceType.douyin_lite;break;case"PPX":this.byte_dance_type=n.LQByteDanceType.ppx;break;case"devtools":this.byte_dance_type=n.LQByteDanceType.devtools}else"undefined"!=typeof qg?qg.getBattle?this.platform_type=n.LQPlatformType.oppo:this.platform_type=n.LQPlatformType.vivo:"undefined"!=typeof wx?this.platform_type=n.LQPlatformType.wx:"undefined"!=typeof jsb?cc.sys.os===cc.sys.OS_ANDROID?this.platform_type=n.LQPlatformType.android:cc.sys.os===cc.sys.OS_IOS?this.platform_type=n.LQPlatformType.ios:this.platform_type=n.LQPlatformType.unknown:cc.sys.isBrowser&&(this.platform_type=n.LQPlatformType.browser)},t.get_platform=function(){return this.platform_type},t.get_byte_dance=function(){return this.byte_dance_type},t.is_wx=function(){return this.platform_type===n.LQPlatformType.wx},t.is_tt=function(){return this.platform_type===n.LQPlatformType.tt},t.is_oppo=function(){return this.platform_type===n.LQPlatformType.oppo},t.is_vivo=function(){return this.platform_type===n.LQPlatformType.vivo},t.is_ov=function(){return this.platform_type===n.LQPlatformType.oppo||this.platform_type===n.LQPlatformType.vivo},t.is_browser=function(){return this.platform_type===n.LQPlatformType.browser},t.is_android=function(){return this.platform_type===n.LQPlatformType.android},t.is_ios=function(){return this.platform_type===n.LQPlatformType.ios},t.is_native=function(){return this.platform_type===n.LQPlatformType.android||this.platform_type===n.LQPlatformType.ios},t.is_qq=function(){return this.platform_type===n.LQPlatformType.qq},t.is_baidu=function(){return this.platform_type===n.LQPlatformType.baidu},t.is_kwaigame=function(){return this.platform_type===n.LQPlatformType.kwaigame},t}();o.LQPlatformUtil=i,i.init(),i.is_tt()?console.log("---------\u5f53\u524d\u5e73\u53f0:"+i.get_byte_dance()):console.log("---------\u5f53\u524d\u5e73\u53f0:"+i.get_platform()),cc._RF.pop()},{"../data/lq_const":"lq_const"}],lq_pool_util:[function(t,e,o){"use strict";cc._RF.push(e,"744e380xmxJW7b6RQxjzC70","lq_pool_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQPoolUtil=void 0;var n=cc.Animation,i=cc.ParticleSystem,r=cc.instantiate,c=function(){function t(){}return t.reset_ani=function(t){var e=t.getComponent(n);if(e){var o=e.currentClip?e.currentClip:e.defaultClip;if(!o)return;e.playOnLoad&&o&&o.wrapMode===cc.WrapMode.Normal&&e.play(o.name)}else{var i=t.getComponent(sp.Skeleton);i&&!i.loop&&i.setAnimation(0,i.animation,!1)}for(var r=0;r<t.childrenCount;r++){var c=t.children[r];this.reset_ani(c)}},t.recursion_stop_particle=function(t,e){var o=t.getComponent(i);o&&(o.stopSystem(),e.has=!0,o.node.opacity=0);for(var n=0;n<t.childrenCount;n++){var r=t.children[n];this.recursion_stop_particle(r,e)}},t.recursion_reset_particle=function(t){if(t.isValid){var e=t.getComponent(i);e&&(e.resetSystem(),e.node.opacity=255);for(var o=0;o<t.childrenCount;o++){var n=t.children[o];this.recursion_reset_particle(n)}}},t.get_node_from_pool=function(t,e){var o=this.any_pool[e.uuid];o||(this.any_pool[e.uuid]=[],o=[]);var n=o.pop();return n&&n.isValid?(n.active=!0,n.is_from_pool=!0,this.reset_ani(n)):((n=r(e)).recovery_uuid=e.uuid,n.is_from_pool=!1,t.addChild(n)),n},t.check_pool_push=function(t,e){for(var o=0;o<t.length;o++)if(t[o]===e)return void console.warn("\u6c60\u5b50\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u8282\u70b9",e.name,e.recovery_uuid);e.active=!1,t.push(e)},t.push_node_to_pool=function(t){var e=this;if(t.recovery_uuid&&this.any_pool[t.recovery_uuid]){var o={has:!1};if(this.recursion_stop_particle(t,o),o.has){var n=t.opacity;t.opacity=0,setTimeout(function(){e.recursion_reset_particle(t),t.opacity=n,e.check_pool_push(e.any_pool[t.recovery_uuid],t)},500)}else this.check_pool_push(this.any_pool[t.recovery_uuid],t)}else t.isValid&&t.destroy()},t.any_pool={},t}();o.LQPoolUtil=c,cc._RF.pop()},{}],m2:[function(t,e,o){"use strict";cc._RF.push(e,"37e54QPZ2pBMr/zg2i7rOZu","m2");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,l=c.ccclass,s=(c.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.start=function(){},e.prototype.onDestroy=function(){},r([l],e)}(cc.Component));o.default=s,cc._RF.pop()},{}],monsterFactory:[function(t,e,o){"use strict";cc._RF.push(e,"4d3fcHTBlpMkp4oVmYBBuEb","monsterFactory");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../common/editorSet"),l=cc._decorator,s=l.ccclass,a=l.property,u=l.executeInEditMode,p=l.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.monster=null,e.aniClip=null,e._num=1,e._time=1,e._delay=0,e.timeArr=[],e}return i(e,t),Object.defineProperty(e.prototype,"num",{get:function(){return this._num},set:function(t){this._num=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this._time},set:function(t){this._time=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this._delay},set:function(t){this._delay=t},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){var t=new cc.Node("monsterGroup");this.monsterNode=t,c.EditorSet.DontShow(t),this.node.addChild(t),this.play()},e.prototype.onFocusInEditor=function(){},e.prototype.onLostFocusInEditor=function(){},e.prototype.end=function(){this.monsterNode.destroyAllChildren(),this.timeArr.forEach(function(t){clearTimeout(t)}),this.timeArr=[]},e.prototype.play=function(){var t=this;if(this.monsterNode.destroyAllChildren(),this.timeArr.forEach(function(t){clearTimeout(t)}),this.timeArr=[],this.monster)if(this.aniClip)if(this._delay>0){var e=setTimeout(function(){t.createMonster()},1e3*this._delay);this.timeArr.push(e)}else this.createMonster();else cc.log("\u8bbe\u7f6e\u52a8\u753b");else cc.log("\u8bbe\u7f6e\u602a\u7269\u8d44\u6e90")},e.prototype.createMonster=function(){var t=this;this.monsterCnt=0;for(var e=0;e<this.num;e++){var o=setTimeout(function(){var e=cc.instantiate(t.monster),o=e.addComponent(cc.Animation);o.addClip(t.aniClip,"path"),c.EditorSet.DontShow(e),e.active=!1,t.monsterNode.addChild(e),e.active=!0,o.play("path"),t.monsterCnt++,o.once(cc.Animation.EventType.FINISHED,function(){var t=e.getBoundingBoxToWorld();cc.view.getViewportRect().containsRect(t)||e.destroy()})},1e3*this.time*e);this.timeArr.push(o)}},r([a(cc.Prefab)],e.prototype,"monster",void 0),r([a(cc.AnimationClip)],e.prototype,"aniClip",void 0),r([a(cc.Integer)],e.prototype,"num",null),r([a(cc.Integer)],e.prototype,"_num",void 0),r([a(cc.Integer)],e.prototype,"time",null),r([a(cc.Integer)],e.prototype,"_time",void 0),r([a(cc.Integer)],e.prototype,"_delay",void 0),r([a(cc.Integer)],e.prototype,"delay",null),r([s,u,p],e)}(cc.Component);o.default=d,cc._RF.pop()},{"../common/editorSet":"editorSet"}],monsterPlay:[function(t,e,o){"use strict";cc._RF.push(e,"2ee92PWQr5EBIaSgbtCu5ic","monsterPlay");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./aniList"),l=t("./monsterFactory"),s=cc._decorator,a=s.ccclass,u=(s.property,s.executeInEditMode),p=s.playOnFocus,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onFocusInEditor=function(){this.getComponentsInChildren(l.default).forEach(function(t){t.end(),t.play()}),this.getComponentsInChildren(c.default).forEach(function(t){t.end(),t.play()})},e.prototype.onLostFocusInEditor=function(){this.getComponentsInChildren(l.default).forEach(function(t){t.end()}),this.getComponentsInChildren(c.default).forEach(function(t){t.end()})},r([a,u,p],e)}(cc.Component);o.default=d,cc._RF.pop()},{"./aniList":"aniList","./monsterFactory":"monsterFactory"}],moveDest:[function(t,e,o){"use strict";cc._RF.push(e,"7b3a8QUk0JHAa0YcGXkm+Ku","moveDest");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./GameLogic"),l=cc._decorator,s=l.ccclass,a=(l.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._speed=100,e._destination=cc.v2(0,0),e}return i(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"destination",{get:function(){return this._destination},set:function(t){this._destination=t},enumerable:!1,configurable:!0}),e.prototype.gameUpdate=function(t){var e=this.destination.sub(this.node.getPosition());if(e.mag()<=this.speed*t)this.node.setPosition(this.destination);else{var o=e.normalize();this.node.x+=this.speed*t*o.x,this.node.y+=this.speed*t*o.y}},e.prototype.isDone=function(){return this.node.x==this._destination.x&&this.node.y==this._destination.y},r([s],e)}(c.GameLogic));o.default=a,cc._RF.pop()},{"./GameLogic":"GameLogic"}],move:[function(t,e,o){"use strict";cc._RF.push(e,"8e426MsXztKpq50Juo4gsQU","move");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./GameLogic"),l=cc._decorator,s=l.ccclass,a=(l.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._speed=100,e._dirction=cc.v2(0,0),e}return i(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirction",{get:function(){return this._dirction},set:function(t){this._dirction=t},enumerable:!1,configurable:!0}),e.prototype.gameUpdate=function(t){this.node.x+=this.speed*t*this.dirction.x,this.node.y+=this.speed*t*this.dirction.y},r([s],e)}(c.GameLogic));o.default=a,cc._RF.pop()},{"./GameLogic":"GameLogic"}],nestItem:[function(t,e,o){"use strict";cc._RF.push(e,"a690866iQtGuq3fo/8VYDgw","nestItem"),Object.defineProperty(o,"__esModule",{value:!0}),o.NestItem=void 0;o.NestItem=function(t,e){this.id=t,this.data=e},cc._RF.pop()},{}],nestPlay:[function(t,e,o){"use strict";cc._RF.push(e,"316d75cKThCnY9SsMcqIHL+","nestPlay");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c},c=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function c(t){try{s(n.next(t))}catch(e){r(e)}}function l(t){try{s(n.throw(t))}catch(e){r(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,l)}s((n=n.apply(t,e||[])).next())})},l=this&&this.__generator||function(t,e){var o,n,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(r){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return c.label++,{value:r[1],done:!1};case 5:c.label++,n=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){c.label=r[1];break}if(6===r[0]&&c.label<i[1]){c.label=i[1],i=r;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(r);break}i[2]&&c.ops.pop(),c.trys.pop();continue}r=e.call(t,c)}catch(l){r=[6,l],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0}),o.NestPlay=void 0;var s=t("../res/resMgr"),a=t("../cfg/ConfigDef"),u=t("../cfg/configMgr"),p=t("../cfg/nestItem"),d=t("../common/utils"),_=["monster","pattern","pattern2","monsterboss"],h=[["line-1700"],["yingji","yingji1"],["jiejizhiyuan_L"],["jiejizhiyuan_R"],["zhuiji_L"],["zhuiji_R"],["yingji","loopCricle"],["ani8"],["ani9"],["yingji"],["ani11"],["ani12"],["ani13"],["ani14"],["ani15"],["yingji"],["ani17","ani17_1"],["ani18","ani18_1"]],f=cc._decorator,y=f.ccclass,g=(f.property,f.executeInEditMode,f.playOnFocus,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeArr=[],e}return i(e,t),e.prototype.init=function(t){return c(this,void 0,void 0,function(){var e,o,n,i,r,c,f,y,g,v,m=this;return l(this,function(l){switch(l.label){case 0:return e=u.ConfigMgr.inst.getCfgClassById(a.ConfigConst.nest,t,p.NestItem),o=d.Utils.intDefault(e.data.pattern),n="monster/"+_[o-1],this.num=d.Utils.intDefault(e.data.num,1),i=d.Utils.intDefault(e.data.delay),this.time=d.Utils.intDefault(e.data.time),r=d.Utils.intDefault(e.data.type,1),c=h[r-1].map(function(t){return"level/"+t}),this.node.setPosition(d.Utils.pos2vec2(e.data.pos)),f=this,[4,s.ResMgr.inst.loadAniArr(c,this.node)];case 1:return f.aniClip=l.sent(),y=this,[4,s.ResMgr.inst.getPrefab(n)];case 2:return y.monster=l.sent(),g=new cc.Node("monsterGroup"),this.monsterNode=g,this.node.addChild(g),i>0?(v=setTimeout(function(){m.createMonster()},1e3*i),this.timeArr.push(v)):this.createMonster(),[2]}})})},e.prototype.createMonster=function(){this.aniClip.length,this.createMonster2()},e.prototype.createMonster2=function(){var t=this;this.monsterCnt=0;for(var e=0;e<this.num;e++){var o=setTimeout(function(){t.monsterCnt++;var e=s.ResMgr.inst.createNode(t.monster,t.monsterNode),o=0,n=function(){var i=new cc.Node("AniItem"),r=e.parent?e.parent:t.monsterNode;e.removeFromParent(!1),i.addChild(e),r.addChild(i);var c=i.addComponent(cc.Animation);c.addClip(t.aniClip[o],"path"),c.play("path"),c.once(cc.Animation.EventType.FINISHED,function(){if(++o<t.aniClip.length)i.angle=0,n();else{var e=i.getBoundingBoxToWorld(),r=cc.view.getVisibleSize(),c=cc.rect(0,0,r.width,r.height);cc.log("@@",e.toString(),c.toString()),c.containsRect(e)||i.destroy()}})};n()},1e3*this.time*e);this.timeArr.push(o)}},e.prototype.createMonster1=function(){var t=this;this.monsterCnt=0;for(var e=0;e<this.num;e++){var o=setTimeout(function(){var e=new cc.Node("AniItem");s.ResMgr.inst.createNode(t.monster,e);var o=e.addComponent(cc.Animation);o.addClip(t.aniClip[0],"path"),t.monsterNode.addChild(e),o.play("path"),t.monsterCnt++,o.once(cc.Animation.EventType.FINISHED,function(){var t=e.getBoundingBoxToWorld();cc.view.getViewportRect().containsRect(t)||e.destroy()})},1e3*this.time*e);this.timeArr.push(o)}},e.prototype.isCreateDone=function(){return this.monsterCnt==this.num},e.prototype.waitDone=function(){var t=this;return new Promise(function(e){var o=setInterval(function(){t.isCreateDone&&(clearInterval(o),e())},100)})},r([y],e)}(cc.Component));o.NestPlay=g,cc._RF.pop()},{"../cfg/ConfigDef":"ConfigDef","../cfg/configMgr":"configMgr","../cfg/nestItem":"nestItem","../common/utils":"utils","../res/resMgr":"resMgr"}],nest:[function(t,e,o){"use strict";cc._RF.push(e,"3bf2fi0WR9PF5tEUsRZ5aru","nest");var n=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function c(t){try{s(n.next(t))}catch(e){r(e)}}function l(t){try{s(n.throw(t))}catch(e){r(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,l)}s((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var o,n,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(r){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return c.label++,{value:r[1],done:!1};case 5:c.label++,n=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){c.label=r[1];break}if(6===r[0]&&c.label<i[1]){c.label=i[1],i=r;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(r);break}i[2]&&c.ops.pop(),c.trys.pop();continue}r=e.call(t,c)}catch(l){r=[6,l],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0}),o.Nest=void 0;var r,c=t("../res/resMgr"),l=t("../cfg/ConfigDef"),s=t("../cfg/configMgr"),a=t("../common/utils"),u=t("../update/moveDest");(function(t){t[t.init=0]="init",t[t.moving=1]="moving"})(r||(r={}));var p=function(){function t(t,e){this.step=0,this.state=r.init,this.data=t,this.parent=e;var o=new cc.Node("nest");o.setPosition(a.Utils.pos2vec2(this.data.pos)),e.addChild(o),this.selfNode=o,cc.director.getScheduler().enableForTarget(this);for(var n=this.data.behavior,i=[];""!=n&&n>0;){var c=s.ConfigMgr.inst.getCfgById(l.ConfigConst.behavior,n);i.push(c),n=c.next}this.behaviors=i}return t.prototype.begin=function(){return n(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return this.step=0,[4,this.oneBehavior()];case 1:return t.sent(),cc.director.getScheduler().scheduleUpdate(this,1,!1),[2]}})})},t.prototype.update=function(){if(this.state==r.moving&&!(Date.now()<=this.nextTime)){for(var t=!0,e=0;e<this.selfNode.children.length;e++)if(!this.selfNode.children[e].getComponent(u.default).isDone()){t=!1;break}t&&this.nextBehavior()}},t.prototype.end=function(){cc.director.getScheduler().unscheduleUpdate(this)},t.prototype.oneBehavior=function(){return n(this,void 0,void 0,function(){var t,e,o,n,p,d,_,h,f,y,g;return i(this,function(i){switch(i.label){case 0:return t=this.behaviors[this.step],this.state=r.init,0!=this.step?[3,2]:[4,c.ResMgr.inst.getPrefab("monster/monster")];case 1:for(e=i.sent(),n=0;n<this.data.num;n++)p=new cc.Node("monsterPath"),this.selfNode.addChild(p),c.ResMgr.inst.createNode(e,p),p.addComponent(u.default);i.label=2;case 2:if(""!=t.path)for(o=s.ConfigMgr.inst.getCfgById(l.ConfigConst.path,t.path),n=0;n<this.selfNode.childrenCount;n++)p=this.selfNode.children[n],d=p.children[0],_=d.getContentSize(),h=p.getComponent(u.default),f=a.Utils.pos2vec2(o.value),h.destination=f,h.speed=f.mag()/t.time,y=cc.v2(0,-1).signAngle(f)/Math.PI*180,d.angle=Math.round(100*y)/100,g=f.normalize(),d.y=-n*_.height*g.y,d.x=-n*_.width*g.x;return this.state=r.moving,this.nextTime=Date.now()+1e3*t.time,[2]}})})},t.prototype.nextBehavior=function(){this.step++,this.step>=this.behaviors.length?this.end():this.oneBehavior()},t}();o.Nest=p,cc._RF.pop()},{"../cfg/ConfigDef":"ConfigDef","../cfg/configMgr":"configMgr","../common/utils":"utils","../res/resMgr":"resMgr","../update/moveDest":"moveDest"}],player:[function(t,e,o){"use strict";cc._RF.push(e,"19c49vmHFNOJ5wlVqraSfN6","player");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.PlayerAttack=void 0;var c=t("../Core/Base/EventMgr"),l=t("../Start"),s=t("./eventDef"),a=t("./update/GameLogic"),u=t("./update/moveDest"),p=cc._decorator,d=p.ccclass,_=p.property;o.PlayerAttack=!0;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$role_node=null,e.moveCpt=null,e.bulletCD=.1,e.bulletCDTime=0,e}var o;return i(e,t),o=e,e.prototype.onLoad=function(){this.moveCpt=this.node.getComponent(u.default),this.moveCpt||(this.moveCpt=this.node.addComponent(u.default)),this.moveCpt.speed=800,this.moveCpt.enabled=!1},e.prototype.onEnable=function(){c.EventMgr.inst.on(s.Touch_Start,this.onTouchStart,this),c.EventMgr.inst.on(s.Touch_Move,this.onTouchMove,this),c.EventMgr.inst.on(s.Touch_End,this.onTouchEnd,this)},e.prototype.onDisable=function(){},e.prototype.gameUpdate=function(t){this.bulletCDTime-=t,this.bulletCDTime<=0&&(this.bulletCDTime=this.bulletCD,o.PlayerAttack&&l.default.inst.createPlayerBullet(this.node.getPosition()))},e.prototype.onTouchStart=function(){this.airStartPos=this.node.getPosition(),this.moveCpt.destination=this.airStartPos,this.moveCpt.enabled=!0},e.prototype.onTouchMove=function(t){this.moveCpt.destination=this.airStartPos.add(t)},e.prototype.onTouchEnd=function(){this.moveCpt.enabled=!1},e.PlayerAttack=!1,r([_({type:cc.Node,displayName:""})],e.prototype,"$role_node",void 0),o=r([d],e)}(a.GameLogic);o.default=h,cc._RF.pop()},{"../Core/Base/EventMgr":"EventMgr","../Start":"Start","./eventDef":"eventDef","./update/GameLogic":"GameLogic","./update/moveDest":"moveDest"}],resMgr:[function(t,e,o){"use strict";cc._RF.push(e,"7ccackTKgtEV7DJvOerXNIw","resMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.ResMgr=void 0;var n=t("./resRelease"),i=function(){function t(){}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.loadPrefab=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.Prefab,function(t,i){if(i){var r=cc.instantiate(i);return e.addChild(r),i.addRef(),r.addComponent(n.ResRelease).call=function(){i.decRef()},void o(r)}cc.log(t),o(null)})})},t.prototype.getPrefab=function(t){return new Promise(function(e){cc.resources.load(t,cc.Prefab,function(t,o){o?e(o):(cc.log(t),e(null))})})},t.prototype.createNode=function(t,e){var o=cc.instantiate(t);return e.addChild(o),t.addRef(),o.addComponent(n.ResRelease).call=function(){t.decRef()},o},t.prototype.loadAni=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.AnimationClip,function(t,i){if(i)return i.addRef(),e.addComponent(n.ResRelease).call=function(){i.decRef()},void o(i);cc.log(t),o(null)})})},t.prototype.loadAniArr=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.AnimationClip,function(t,i){if(i)return i.forEach(function(t){return t.addRef()}),e.addComponent(n.ResRelease).call=function(){i.forEach(function(t){return t.decRef()})},void o(i);cc.log(t),o(null)})})},t}();o.ResMgr=i,cc._RF.pop()},{"./resRelease":"resRelease"}],resRelease:[function(t,e,o){"use strict";cc._RF.push(e,"7b967KfRVBJUJntAJxkbpYu","resRelease");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.ResRelease=void 0;var c=cc._decorator,l=c.ccclass,s=(c.property,c.executeInEditMode,c.playOnFocus,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.call=null,e}return i(e,t),e.prototype.onDestroy=function(){this.call&&this.call()},r([l],e)}(cc.Component));o.ResRelease=s,cc._RF.pop()},{}],smallLevelItem:[function(t,e,o){"use strict";cc._RF.push(e,"b3abeFluKdNd4kJ0ufhkRIX","smallLevelItem"),Object.defineProperty(o,"__esModule",{value:!0}),o.SmallLevelItem=void 0;var n=t("../common/utils"),i=function(){function t(t,e){this.id=t,this.data=e}return t.prototype.getNestId=function(){return n.Utils.str2arr(this.data.nest+"",";")},t}();o.SmallLevelItem=i,cc._RF.pop()},{"../common/utils":"utils"}],test:[function(t,e,o){"use strict";cc._RF.push(e,"c8ad6fhb1BESYIiTZAAD3ne","test");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../Script/game/cfg/configMgr"),l=cc._decorator,s=l.ccclass,a=(l.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onLoad=function(){c.ConfigMgr.inst.init()},r([s],e)}(cc.Component));o.default=a,cc._RF.pop()},{"../Script/game/cfg/configMgr":"configMgr"}],touch:[function(t,e,o){"use strict";cc._RF.push(e,"daaa5a9nd1KUqYlgoprfYb9","touch");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../Script/Core/Base/EventMgr"),l=t("./eventDef"),s=cc._decorator,a=s.ccclass,u=(s.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.touchId=-1,e}return i(e,t),e.prototype.onEnable=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onDisable=function(){this.node.off(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onTouchStart=function(t){-1==this.touchId&&(this.touchId=t.getID(),c.EventMgr.inst.emit(l.Touch_Start))},e.prototype.onTouchMove=function(t){if(this.touchId==t.getID()){var e=t.getLocation().sub(t.getStartLocation());c.EventMgr.inst.emit(l.Touch_Move,e)}},e.prototype.onTouchEnd=function(t){this.touchId==t.getID()&&(this.touchId=-1,c.EventMgr.inst.emit(l.Touch_End))},r([a],e)}(cc.Component));o.default=u,cc._RF.pop()},{"../../Script/Core/Base/EventMgr":"EventMgr","./eventDef":"eventDef"}],utils:[function(t,e,o){"use strict";cc._RF.push(e,"a320bXRUs5ITKZa4v3pNW+Q","utils"),Object.defineProperty(o,"__esModule",{value:!0}),o.Utils=void 0,function(t){t.pos2vec2=function(t){var e=t.split(";");return cc.v2(Number(e[0]),-Number(e[1]))},t.str2arr=function(t,e){return t.split(e)},t.createNode=function(t,e){void 0===e&&(e="");var o=new cc.Node(e);return t.addChild(o),o},t.intDefault=function(t,e){return void 0===e&&(e=0),""==t?0:Number(t)}}(o.Utils||(o.Utils={})),cc._RF.pop()},{}]},{},["test","lq_const","lq_data","lq_interface","lq_base_util","lq_game_util","lq_math_util","lq_platform_util","lq_pool_util","lq_collide","lq_collide_base","lq_collide_config","lq_collide_system","EventMgr","ModuleContext","UIController","UIDef","UILayers","UIMgr","Start","Rocker","bullet","ConfigDef","configMgr","nestItem","smallLevelItem","editorSet","utils","eventDef","flyImg","levelempty","loading","m2","aniList","monsterFactory","monsterPlay","nest","nestPlay","debug","player","resMgr","resRelease","touch","GameAnimation","GameLogic","logic","move","moveDest","levelMgr"]);
|