| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- System.register("chunks:///_virtual/AudioManager.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(n){var e,o,t,i,r,a;return{setters:[function(n){e=n.inheritsLoose},function(n){o=n.cclegacy,t=n._decorator,i=n.resources,r=n.AudioClip,a=n.Component}],execute:function(){var c,u;o._RF.push({},"7f554P5SUxDEJnjY8lxUvuh","AudioManager",void 0);var s=t.ccclass;t.property,n("AudioManager",s("AudioManager")(((u=function(n){function o(){return n.apply(this,arguments)||this}return e(o,n),o.getInstance=function(){return this.instance||(this.instance=new o),this.instance},o.prototype.playDynamicAudio=function(n,e,o){i.load(n,r,(function(n,e){n&&console.error("Failed to load audio:",n)}))},o}(a)).instance=void 0,c=u))||c);o._RF.pop()}}}));
- System.register("chunks:///_virtual/BackgroundAnimation.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,r,a,n,i,o,s;return{setters:[function(e){t=e.inheritsLoose},function(e){r=e.cclegacy,a=e._decorator,n=e.resources,i=e.SpriteFrame,o=e.Sprite,s=e.Component}],execute:function(){var m;r._RF.push({},"60bderoc9VHTJcpk4U2X4qb","BackgroundAnimation",void 0);var c=a.ccclass;a.property,e("BackgroundAnimation",c("BackgroundAnimation")(m=function(e){function r(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return(t=e.call.apply(e,[this].concat(a))||this).frameIndex=1,t.maxFrames=54,t.frameRate=12,t.deltaTime=0,t.bgFrames=[],t}t(r,e);var a=r.prototype;return a.start=function(){for(var e=0;e<54;e++)n.load("bg/bg"+(e+1)+"/spriteFrame",i,(function(e,t){!e&&t||console.log(e)}))},a.update=function(e){if(this.deltaTime+=e,this.deltaTime>=1/this.frameRate){this.deltaTime=0,this.frameIndex=(this.frameIndex+1)%(2*this.maxFrames);var t=this.bgFrames[this.frameIndex>=this.maxFrames?2*this.maxFrames-this.frameIndex-1:this.frameIndex];t&&(this.node.getComponent(o).spriteFrame=t)}},r}(s))||m);r._RF.pop()}}}));
- System.register("chunks:///_virtual/debug-view-runtime-control.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,o,i,n,s,l,r,a,g,h,p,c,C,d,m,u,L;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.inheritsLoose,i=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){s=t.cclegacy,l=t._decorator,r=t.Node,a=t.Color,g=t.Canvas,h=t.UITransform,p=t.instantiate,c=t.Label,C=t.RichText,d=t.Toggle,m=t.Button,u=t.director,L=t.Component}],execute:function(){var f,M,b,v,T,S,x,E,I;s._RF.push({},"b2bd1+njXxJxaFY3ymm06WU","debug-view-runtime-control",void 0);var A=l.ccclass,y=l.property;t("DebugViewRuntimeControl",(f=A("internal.DebugViewRuntimeControl"),M=y(r),b=y(r),v=y(r),f((x=e((S=function(t){function e(){for(var e,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return e=t.call.apply(t,[this].concat(s))||this,i(e,"compositeModeToggle",x,n(e)),i(e,"singleModeToggle",E,n(e)),i(e,"EnableAllCompositeModeButton",I,n(e)),e._single=0,e.strSingle=["No Single Debug","Vertex Color","Vertex Normal","Vertex Tangent","World Position","Vertex Mirror","Face Side","UV0","UV1","UV Lightmap","Project Depth","Linear Depth","Fragment Normal","Fragment Tangent","Fragment Binormal","Base Color","Diffuse Color","Specular Color","Transparency","Metallic","Roughness","Specular Intensity","IOR","Direct Diffuse","Direct Specular","Direct All","Env Diffuse","Env Specular","Env All","Emissive","Light Map","Shadow","AO","Fresnel","Direct Transmit Diffuse","Direct Transmit Specular","Env Transmit Diffuse","Env Transmit Specular","Transmit All","Direct Internal Specular","Env Internal Specular","Internal All","Fog"],e.strComposite=["Direct Diffuse","Direct Specular","Env Diffuse","Env Specular","Emissive","Light Map","Shadow","AO","Normal Map","Fog","Tone Mapping","Gamma Correction","Fresnel","Transmit Diffuse","Transmit Specular","Internal Specular","TT"],e.strMisc=["CSM Layer Coloration","Lighting With Albedo"],e.compositeModeToggleList=[],e.singleModeToggleList=[],e.miscModeToggleList=[],e.textComponentList=[],e.labelComponentList=[],e.textContentList=[],e.hideButtonLabel=void 0,e._currentColorIndex=0,e.strColor=["<color=#ffffff>","<color=#000000>","<color=#ff0000>","<color=#00ff00>","<color=#0000ff>"],e.color=[a.WHITE,a.BLACK,a.RED,a.GREEN,a.BLUE],e}o(e,t);var s=e.prototype;return s.start=function(){if(this.node.parent.getComponent(g)){var t=this.node.parent.getComponent(h),e=.5*t.width,o=.5*t.height,i=.1*e-e,n=o-.1*o,s=this.node.getChildByName("MiscMode"),l=p(s);l.parent=this.node,l.name="Buttons";var r=p(s);r.parent=this.node,r.name="Titles";for(var u=0;u<2;u++){var L=p(this.EnableAllCompositeModeButton.getChildByName("Label"));L.setPosition(i+(u>0?450:150),n,0),L.setScale(.75,.75,.75),L.parent=r;var f=L.getComponent(c);f.string=u?"----------Composite Mode----------":"----------Single Mode----------",f.color=a.WHITE,f.overflow=0,this.labelComponentList[this.labelComponentList.length]=f}n-=20;for(var M=0,b=0;b<this.strSingle.length;b++,M++){b===this.strSingle.length>>1&&(i+=200,M=0);var v=b?p(this.singleModeToggle):this.singleModeToggle;v.setPosition(i,n-20*M,0),v.setScale(.5,.5,.5),v.parent=this.singleModeToggle.parent;var T=v.getComponentInChildren(C);T.string=this.strSingle[b],this.textComponentList[this.textComponentList.length]=T,this.textContentList[this.textContentList.length]=T.string,v.on(d.EventType.TOGGLE,this.toggleSingleMode,this),this.singleModeToggleList[b]=v}i+=200,this.EnableAllCompositeModeButton.setPosition(i+15,n,0),this.EnableAllCompositeModeButton.setScale(.5,.5,.5),this.EnableAllCompositeModeButton.on(m.EventType.CLICK,this.enableAllCompositeMode,this),this.EnableAllCompositeModeButton.parent=l;var S=this.EnableAllCompositeModeButton.getComponentInChildren(c);this.labelComponentList[this.labelComponentList.length]=S;var x=p(this.EnableAllCompositeModeButton);x.setPosition(i+90,n,0),x.setScale(.5,.5,.5),x.on(m.EventType.CLICK,this.changeTextColor,this),x.parent=l,(S=x.getComponentInChildren(c)).string="TextColor",this.labelComponentList[this.labelComponentList.length]=S;var E=p(this.EnableAllCompositeModeButton);E.setPosition(i+200,n,0),E.setScale(.5,.5,.5),E.on(m.EventType.CLICK,this.hideUI,this),E.parent=this.node.parent,(S=E.getComponentInChildren(c)).string="Hide UI",this.labelComponentList[this.labelComponentList.length]=S,this.hideButtonLabel=S,n-=40;for(var I=0;I<this.strMisc.length;I++){var A=p(this.compositeModeToggle);A.setPosition(i,n-20*I,0),A.setScale(.5,.5,.5),A.parent=s;var y=A.getComponentInChildren(C);y.string=this.strMisc[I],this.textComponentList[this.textComponentList.length]=y,this.textContentList[this.textContentList.length]=y.string,A.getComponent(d).isChecked=!!I,A.on(d.EventType.TOGGLE,I?this.toggleLightingWithAlbedo:this.toggleCSMColoration,this),this.miscModeToggleList[I]=A}n-=150;for(var D=0;D<this.strComposite.length;D++){var B=D?p(this.compositeModeToggle):this.compositeModeToggle;B.setPosition(i,n-20*D,0),B.setScale(.5,.5,.5),B.parent=this.compositeModeToggle.parent;var w=B.getComponentInChildren(C);w.string=this.strComposite[D],this.textComponentList[this.textComponentList.length]=w,this.textContentList[this.textContentList.length]=w.string,B.on(d.EventType.TOGGLE,this.toggleCompositeMode,this),this.compositeModeToggleList[D]=B}}else console.error("debug-view-runtime-control should be child of Canvas")},s.isTextMatched=function(t,e){var o=new String(t),i=o.search(">");return-1===i?t===e:(o=(o=o.substr(i+1)).substr(0,o.search("<")))===e},s.toggleSingleMode=function(t){for(var e=u.root.debugView,o=t.getComponentInChildren(C),i=0;i<this.strSingle.length;i++)this.isTextMatched(o.string,this.strSingle[i])&&(e.singleMode=i)},s.toggleCompositeMode=function(t){for(var e=u.root.debugView,o=t.getComponentInChildren(C),i=0;i<this.strComposite.length;i++)this.isTextMatched(o.string,this.strComposite[i])&&e.enableCompositeMode(i,t.isChecked)},s.toggleLightingWithAlbedo=function(t){u.root.debugView.lightingWithAlbedo=t.isChecked},s.toggleCSMColoration=function(t){u.root.debugView.csmLayerColoration=t.isChecked},s.enableAllCompositeMode=function(t){var e=u.root.debugView;e.enableAllCompositeMode(!0);for(var o=0;o<this.compositeModeToggleList.length;o++){this.compositeModeToggleList[o].getComponent(d).isChecked=!0}var i=this.miscModeToggleList[0].getComponent(d);i.isChecked=!1,e.csmLayerColoration=!1,(i=this.miscModeToggleList[1].getComponent(d)).isChecked=!0,e.lightingWithAlbedo=!0},s.hideUI=function(t){var e=this.node.getChildByName("Titles"),o=!e.active;this.singleModeToggleList[0].parent.active=o,this.miscModeToggleList[0].parent.active=o,this.compositeModeToggleList[0].parent.active=o,this.EnableAllCompositeModeButton.parent.active=o,e.active=o,this.hideButtonLabel.string=o?"Hide UI":"Show UI"},s.changeTextColor=function(t){this._currentColorIndex++,this._currentColorIndex>=this.strColor.length&&(this._currentColorIndex=0);for(var e=0;e<this.textComponentList.length;e++)this.textComponentList[e].string=this.strColor[this._currentColorIndex]+this.textContentList[e]+"</color>";for(var o=0;o<this.labelComponentList.length;o++)this.labelComponentList[o].color=this.color[this._currentColorIndex]},s.onLoad=function(){},s.update=function(t){},e}(L)).prototype,"compositeModeToggle",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(S.prototype,"singleModeToggle",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(S.prototype,"EnableAllCompositeModeButton",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=S))||T));s._RF.pop()}}}));
- System.register("chunks:///_virtual/gameCtr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./noticePannelCtr.ts","./StoryPannelCtr.ts","./OptionsCtr.ts","./rankCtr.ts","./RoleCtr.ts","./processCtr.ts","./SocketClient.ts"],(function(t){var e,o,n,i,r,s,a,l,c,h,u,p,d,g,y,m,f,C,b,S,v,w,N,I,P,A,k;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.inheritsLoose,n=t.initializerDefineProperty,i=t.assertThisInitialized},function(t){r=t.cclegacy,s=t._decorator,a=t.Node,l=t.Label,c=t.Animation,h=t.ProgressBar,u=t.AudioClip,p=t.AudioSource,d=t.director,g=t.UIOpacity,y=t.tween,m=t.UITransform,f=t.Vec3,C=t.Color,b=t.Sprite,S=t.Component},function(t){v=t.noticePannelCtr},function(t){w=t.StoryPannelCtr},function(t){N=t.OptionsCtr},function(t){I=t.rankCtr},function(t){P=t.RoleCtr},function(t){A=t.processCtr},function(t){k=t.SocketClient}],execute:function(){var O,B,D,_,H,z,U,R,T,L,x,E,F,M,V,G,j,J,W,X,Z,q,K,Q,Y,$,tt,et,ot,nt,it,rt,st,at,lt,ct,ht,ut,pt,dt,gt,yt,mt,ft,Ct;r._RF.push({},"bfc8a/RdN5LOLcUXL8LijTZ","gameCtr",void 0);var bt=s.ccclass,St=s.property;t("GameCtr",(O=bt("GameCtr"),B=St({type:v}),D=St({type:k}),_=St({type:A}),H=St({type:P}),z=St({type:w}),U=St({type:N}),R=St({type:I}),T=St({type:a}),L=St({type:l}),x=St(c),E=St(c),F=St(c),M=St({type:a}),V=St({type:l}),G=St({type:h}),j=St({type:a}),J=St(u),W=St(u),X=St(u),Z=St(p),q=St(p),O((Y=e((Q=function(t){function e(){for(var e,o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return e=t.call.apply(t,[this].concat(r))||this,n(e,"noticeCtr",Y,i(e)),n(e,"socketClient",$,i(e)),n(e,"processCtr",tt,i(e)),n(e,"roleCtr",et,i(e)),n(e,"storyPannelCtr",ot,i(e)),n(e,"optionsCtr",nt,i(e)),n(e,"rankCtr",it,i(e)),n(e,"titlePannel",rt,i(e)),n(e,"dayLabel",st,i(e)),n(e,"SunAnim",at,i(e)),n(e,"MoonAnim",lt,i(e)),n(e,"BgAnim",ct,i(e)),n(e,"BgNode",ht,i(e)),e.sunIsUp=!1,e.num=1,e.roomId=1,e.gameId=1,e.resetNum=1,e.gameInfo=null,e.historyInfo=[],e.initStoryPosition=null,e.initOptionsPosition=null,e.storyActionStatus=0,n(e,"resetLabel",ut,i(e)),n(e,"progressBar",pt,i(e)),n(e,"resetNode",dt,i(e)),e._dotsCounter=0,e._dotsInterval=null,e.options=[],e.optionsLabel=[],e.storyHeight=510,e.selectedOptionNum=4,e.rankInfo=[],e.npc=null,e.player=null,e.roleNodes={},e.modifyHp=void 0,e.realStart=!1,e.noticeStr="",n(e,"moveClip",gt,i(e)),n(e,"showOptionsClip",yt,i(e)),n(e,"selectedOptionClip",mt,i(e)),e.audioSource=null,n(e,"bg1AudioSource",ft,i(e)),n(e,"bg2AudioSource",Ct,i(e)),e.isPlayBgm1=!0,e.originUrl=null,e.hostName=null,e.globalUrl="https://airpg1.izouma.com",e.globalHostname="airpg1.izouma.com",e.moveNum=1,e.lastVote=[0,0,0,0],e.currentDay=0,e}o(e,t);var r=e.prototype;return r.init=function(){var t=this;this.bg1AudioSource.play(),console.log(location.href),"localhost"===location.hostname?(this.originUrl=this.globalUrl,this.hostName=this.globalHostname):(this.originUrl=location.origin,this.hostName=location.hostname);var e=new URLSearchParams(location.search).get("roomId");null!=e?(this.roomId=Number(e),console.log("get roomId from URL:"+e)):console.log("use defult roomId");var o=this.originUrl+"/api/room/"+this.roomId;console.log(o),fetch(o).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(e){console.log(e.currentGameId+" "+e.active),t.gameId=e.currentGameId,t.noticeStr=e.notice,t.socketClient.socket?t.socketClient.socket.disconnect():(t.socketClient.gameId=t.gameId,t.socketClient.initSocketConnection());var o=t.originUrl+"/api/game/"+t.gameId;fetch(o).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(e){console.log(e);var o=t.originUrl+"/api/game/"+t.gameId+"/history";t.gameInfo=e,t.resetNum=e.resetNum,fetch(o).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(e){console.log("history"),console.log(e),t.historyInfo=e,t.updateGame(t.gameInfo,t.historyInfo)})).catch((function(t){console.error("Fetch error:",t)}))})).catch((function(t){console.error("Fetch error:",t)}))})).catch((function(t){console.error("Fetch error:",t)})),this.initRank(o+"/survivalRank")},r.initRank=function(t){var e=this;fetch(t).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(t){console.log("rank"),console.log(t),e.rankInfo=t,e.rankCtr.updateRank(e.rankInfo)})).catch((function(t){console.error("Fetch error:",t)}))},r.start=function(){var t=this;this.audioSource=this.node.getComponent(p),this.startResetAnimation(),this.scheduleOnce((function(){t.init()}),10),this.processCtr.init(this),this.schedule(this.chackGameInfo,300)},r.chackGameInfo=function(){var t=this,e=this.originUrl+"/api/room/"+this.roomId;fetch(e).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(e){if(console.log("轮询检查房间信息:"+e.currentGameId+" "+e.active),t.gameId==e.currentGameId){if(t.noticeStr==e.notice)return;t.noticeCtr.updateText(e.notice),t.noticeStr=e.notice}else d.loadScene("game")})).catch((function(t){console.error("Fetch error:",t)}));var o=this.originUrl+"/api/game/"+this.gameId+"/history";fetch(o).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(e){var o=new Date(e[e.length-1].date),n=new Date(t.historyInfo[0].date),i=(o.getTime()-n.getTime())/864e5+1;console.log("校验游戏进程是否同步:当前天数:"+t.currentDay+" 后台进行天数"+i),i-t.currentDay>2&&d.loadScene("game")})).catch((function(t){console.error("Fetch error:",t)}))},r.update=function(t){},r.onButtonClick=function(){this.moveNum++,this.roleCtr.attack(this.roleCtr.node.getChildByName("role_icon_npc1")),this.roleCtr.treat(this.roleCtr.node.getChildByName("role_icon_npc2"))},r.startResetAnimation=function(){var t=this;this._dotsInterval&&(clearInterval(this._dotsInterval),this._dotsInterval=null),this.resetNode.getComponent(g).opacity=0,this.progressBar.progress=0,this.resetNode.active=!0,this.BgNode.getComponent(g).opacity=0,y(this.resetNode.getComponent(g)).to(1,{opacity:255}).call((function(){return t.showResetTextAndProgress()})).start()},r.showResetTextAndProgress=function(){var t=this;this.updateDots(),this._dotsInterval=setInterval((function(){return t.updateDots()}),500);var e=0,o=setInterval((function(){e+=.1,t.progressBar.progress=e,e>=1&&(clearInterval(o),t.endResetAnimation())}),1e3)},r.updateDots=function(){var t=".".repeat(this._dotsCounter%3+1);this.resetLabel.string="世界重置中"+t,this._dotsCounter++},r.endResetAnimation=function(){var t=this;clearInterval(this._dotsInterval),y(this.resetNode.getComponent(g)).to(1,{opacity:0}).call((function(){t.progressBar.progress=0,t.resetNode.active=!1,t.BgNode.getComponent(g).opacity=255})).start()},r.handleStoryPannelMove=function(t){this.storyPannelCtr.storyContent=t.data,this.storyPannelCtr.isOnProcess=!0,0==this.storyActionStatus||3==this.storyActionStatus?(this.storyPannelCtr?this.storyPannelCtr.updateStory(t.data):console.log("plot error"),this.realStart=!0,this.noticeCtr.updateText(this.noticeStr)):2==this.storyActionStatus&&this.optionsAppearAction()},r.handleOptions=function(t){if(this.realStart){this.options=t.data;for(var e=0;e<4;e++)this.optionsLabel[e]=this.options[e].content;0===this.storyActionStatus||3===this.storyActionStatus?(this.optionsAppearAction(),this.lastVote=[0,0,0,0]):(console.log("handleOptions处理失败 storyActionStatus"+this.storyActionStatus),this.processCtr.doneProcessing())}else console.log("handleOptions处理完成处理下一个"),this.processCtr.doneProcessing()},r.handleVotes=function(t){var e=t.data;this.realStart&&Math.max.apply(Math,e)>0&&JSON.stringify(this.lastVote)!==JSON.stringify(e)?(this.optionsCtr.showVotes(e,this.lastVote,this.processCtr),this.lastVote=e):(console.log("handle votes do nothing:"+this.realStart+" "+this.storyActionStatus+" "+Math.max.apply(Math,t.data)),this.processCtr.doneProcessing())},r.handleVoteResul=function(t){if(this.realStart){this.modifyHp=t.data.modifyHp;for(var e=0;e<4;e++)this.options[e].content==t.data.content&&(this.selectedOptionNum=e);1===this.storyActionStatus?this.optionsAppearAction():console.log("handleVoteResul处理失败 storyActionStatus"+this.storyActionStatus)}else console.log("handleVoteResul未处理"),this.processCtr.doneProcessing()},r.handleNewPlayer=function(t){this.player.push(t.data);var e=this.player.length-1;if(8!==e){var o="role_icon_player"+(e+1),n=this.roleCtr.node.getChildByName(o);n.active=!0,console.log("new player@!!!!!!:"+t.data),this.roleCtr.newPlayer(n,this.player[e]),this.roleNodes[t.data.name]=n,console.log("handleNewPlayer处理完成处理下一个"),this.processCtr.doneProcessing()}},r.handleDeath=function(t){this.roleCtr.deathNodes=t.data,this.processCtr.doneProcessing()},r.handleStateResul=function(t){this.realStart?(console.log("处理开始后的status完成,处理下一个"),this.processCtr.doneProcessing()):(console.log("处理开始前的status"),this.historyInfo.push(t.data),this.updateGame(this.gameInfo,this.historyInfo),console.log("handleStateResul处理完成处理下一个"),this.processCtr.doneProcessing())},r.handleReset=function(t){console.log("处理重置消息"),this.roleCtr.dealDeath(this.roleNodes),this.scheduleOnce((function(){d.loadScene("game")}),5),this.processCtr.doneProcessing()},r.optionsAppearAction=function(){var t=this;if(console.log("storyActionStatus:"+this.storyActionStatus),0==this.storyActionStatus){var e=this.storyPannelCtr.node,o=e.getComponent(m);o.height>this.storyHeight?(this.initStoryPosition=e.position.clone(),y(this.storyPannelCtr.node).by(.5,{position:new f(0,o.height-this.storyHeight,0)}).call((function(){t.optionsCtr.setOptions(t.optionsLabel,t),t.roleCtr.dealDeath(t.roleNodes)})).start()):this.optionsCtr.setOptions(this.optionsLabel,this),this.playShowOptionsOneShot()}else if(1===this.storyActionStatus)this.optionsCtr.resetVotes(),console.log("selectedOptionNum:"+this.selectedOptionNum),this.playSelectedOneShot(),this.optionsCtr.selectOption(this.selectedOptionNum+1,this);else if(2===this.storyActionStatus)this.scheduleOnce((function(){for(var e=0;e<4;e++){var o=t.optionsCtr.optionNodes[e];if(e!==t.selectedOptionNum)y(o.getComponent(g)).to(2.5,{opacity:0}).start()}t.playMoveOneShot(),y(t.storyPannelCtr.node.parent.getComponent(g)).to(2.5,{opacity:0}).call((function(){t.storyPannelCtr.node.getComponent(l).string="",t.storyPannelCtr.node.position=new f(0,0,0),t.initOptionsPosition=t.optionsCtr.node.position.clone();var e=t.storyPannelCtr.node.parent.position.y,o=t.optionsCtr.node.position.y,n=t.optionsCtr.optionNodes[t.selectedOptionNum],i=n.getComponent(m).contentSize.height;y(t.optionsCtr.node).by(1.5,{position:new f(0,e-o-n.position.y-i/2,0)}).call((function(){t.storyPannelCtr.node.parent.getComponent(g).opacity=255,y(t.storyPannelCtr.node).by(.01,{position:new f(0,-i,0)}).call((function(){t.storyPannelCtr.isOnProcess=!0,t.storyPannelCtr.updateStory(t.storyPannelCtr.storyContent),t.storyActionStatus=3,t.scheduleOnce((function(){t.updateHp()}),2)})).start()})).start()})).start()}),2);else if(3==this.storyActionStatus){var n=this.optionsCtr.optionNodes[this.selectedOptionNum];y(n.getComponent(g)).to(.5,{opacity:1}).call((function(){t.optionsCtr.node.position=t.initOptionsPosition,n.getChildByName("text_option").getComponent(l).color=C.WHITE;var e=n.getComponent(b);e&&(e.spriteFrame=t.optionsCtr.notSelectedSprite.spriteFrame),y(t.storyPannelCtr.node).to(.2,{position:new f(0,0,0)}).call((function(){t.storyActionStatus=0,t.optionsAppearAction()})).start()})).start()}},r.updateGame=function(t,e){if(!t||!history)throw new Error("gameInfo or historyInfo is null");this.updateDateByHistory(e[0],e[e.length-1]);e[0];var o=e[e.length-1],n=o.charactors;this.storyPannelCtr?this.storyPannelCtr.initStory(o.plot):console.log("plot error"),this.player=[],this.npc=[],this.roleNodes={};for(var i=0;i<n.length;i++)n[i].danmuUserId?this.player.push(n[i]):this.npc.push(n[i]);for(var r=0;r<this.npc.length;r++){var s="role_icon_npc"+(r+1);console.log(s);var a=this.roleCtr.node.getChildByName(s);a.active=!0,this.roleCtr.newPlayer(a,this.npc[r]),this.roleNodes[this.npc[r].name]=a}for(var l=0;l<this.player.length;l++){var c="role_icon_player"+(l+1),h=this.roleCtr.node.getChildByName(c);h.active=!0,this.roleCtr.newPlayer(h,this.player[l]),this.roleNodes[this.player[l].name]=h}},r.updateDateByHistory=function(t,e){"evening"===e.time&&(this.sunIsUp=!1,this.exchangeTime()),this.titlePannel.getChildByName("text_title").getComponent(l).string=this.gameInfo.name,this.titlePannel.getChildByName("text_gameNo").getComponent(l).string="No."+(this.resetNum+1);var o=new Date(e.date),n=new Date(t.date),i=(o.getTime()-n.getTime())/864e5+1;this.dayLabel.string="第"+i+"天",this.currentDay=i},r.updateDateByWS=function(t){"evening"===t.data.time?(this.sunIsUp=!1,this.exchangeTime()):(this.sunIsUp=!0,this.exchangeTime()),this.titlePannel.getChildByName("text_title").getComponent(l).string=this.gameInfo.name,this.titlePannel.getChildByName("text_gameNo").getComponent(l).string="No."+(this.resetNum+1);var e=new Date(t.data.date),o=new Date(this.historyInfo[0].date),n=(e.getTime()-o.getTime())/864e5+1;this.dayLabel.string="第"+n+"天",this.currentDay=n,console.log("更新日期处理完成,处理下一个"),this.processCtr.doneProcessing()},r.exchangeTime=function(){var t=this;this.sunIsUp?(this.MoonAnim.play("moonUp"),this.MoonAnim.on(c.EventType.FINISHED,(function(){t.SunAnim.play("sunDown"),t.MoonAnim.off(c.EventType.FINISHED)})),this.sunIsUp=!1):(this.SunAnim.play("sunUp"),this.SunAnim.on(c.EventType.FINISHED,(function(){t.MoonAnim.play("moonDown"),t.SunAnim.off(c.EventType.FINISHED)}),this),this.sunIsUp=!0)},r.updateHp=function(){if(this.modifyHp){for(var t=!1,e=0;e<this.modifyHp.length;e++){var o=this.roleNodes[this.modifyHp[e].name],n=o.getChildByName("progressbar_hp"),i=n.getComponent(h).progress;if(0!=i){var r=i+this.modifyHp[e].changeValue/100;r<=0?r=0:r>1&&(r=1),n.getComponent(h).progress=r,console.log("updata HP: name:"+this.modifyHp[e].name+" orgHp:"+i+" newHp:"+r),console.log(n),this.modifyHp[e].changeValue>0?this.roleCtr.treat(o):(this.roleCtr.attack(o),t=!0)}}t&&this.isPlayBgm1?(this.bg1AudioSource.pause(),this.bg2AudioSource.play(),this.isPlayBgm1=!1):t||this.isPlayBgm1||(this.bg2AudioSource.pause(),this.bg1AudioSource.play(),this.isPlayBgm1=!0)}},r.playMoveOneShot=function(){this.audioSource.playOneShot(this.moveClip,.2)},r.playSelectedOneShot=function(){this.audioSource.playOneShot(this.selectedOptionClip,.2)},r.playShowOptionsOneShot=function(){this.audioSource.playOneShot(this.showOptionsClip,.2)},e}(S)).prototype,"noticeCtr",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=e(Q.prototype,"socketClient",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=e(Q.prototype,"processCtr",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=e(Q.prototype,"roleCtr",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=e(Q.prototype,"storyPannelCtr",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nt=e(Q.prototype,"optionsCtr",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e(Q.prototype,"rankCtr",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),rt=e(Q.prototype,"titlePannel",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),st=e(Q.prototype,"dayLabel",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),at=e(Q.prototype,"SunAnim",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lt=e(Q.prototype,"MoonAnim",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ct=e(Q.prototype,"BgAnim",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ht=e(Q.prototype,"BgNode",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ut=e(Q.prototype,"resetLabel",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pt=e(Q.prototype,"progressBar",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),dt=e(Q.prototype,"resetNode",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),gt=e(Q.prototype,"moveClip",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),yt=e(Q.prototype,"showOptionsClip",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),mt=e(Q.prototype,"selectedOptionClip",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ft=e(Q.prototype,"bg1AudioSource",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ct=e(Q.prototype,"bg2AudioSource",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=Q))||K));r._RF.pop()}}}));
- System.register("chunks:///_virtual/main",["./debug-view-runtime-control.ts","./AudioManager.ts","./BackgroundAnimation.ts","./OptionsCtr.ts","./ParticalCode.ts","./RoleCtr.ts","./StoryPannelCtr.ts","./gameCtr.ts","./Person.ts","./noticePannelCtr.ts","./rankCtr.ts","./SocketClient.ts","./processCtr.ts","./temp.ts","./votes.ts"],(function(){return{setters:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}}));
- System.register("chunks:///_virtual/noticePannelCtr.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,l,n,o,i,a,s,r,c,h;return{setters:[function(e){t=e.inheritsLoose},function(e){l=e.cclegacy,n=e._decorator,o=e.Label,i=e.UITransform,a=e.Size,s=e.tween,r=e.v3,c=e.Vec3,h=e.Component}],execute:function(){var u;l._RF.push({},"afce7nbaoJDYZ1hb+eAZsLd","noticePannelCtr",void 0);var b=n.ccclass;n.property,e("noticePannelCtr",b("noticePannelCtr")(u=function(e){function l(){for(var t,l=arguments.length,n=new Array(l),o=0;o<l;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).label=null,t.mask=null,t.label_pos=new c(0,0,0),t.label_length=null,t.rollTween=null,t}t(l,e);var n=l.prototype;return n.start=function(){this.mask=this.node.getChildByName("Mask"),this.label=this.mask.getChildByName("text_notice"),this.label_pos=this.label.getPosition().clone(),this.labelRoll()},n.update=function(e){},n.updateText=function(e){this.rollTween.stop(),this.label.getComponent(o).string=e,this.label.getComponent(i).contentSize=new a(25*e.length,this.label.getComponent(i).contentSize.y),this.label.setPosition(this.label_pos),this.labelRoll()},n.labelRoll=function(){var e=this;this.label_length=this.label.getComponent(i).contentSize.x;var t=s().by(10,{position:r(-this.label_length-850,0)}),l=s().call((function(){e.label.setPosition(e.label_pos)})),n=s().sequence(t,l);this.rollTween=s(this.label).then(n.repeatForever()).start()},l}(h))||u);l._RF.pop()}}}));
- System.register("chunks:///_virtual/OptionsCtr.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,o,n,i,s,r,a,c,l,p,u,d,y,g;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.inheritsLoose,n=t.initializerDefineProperty,i=t.assertThisInitialized},function(t){s=t.cclegacy,r=t._decorator,a=t.Node,c=t.Sprite,l=t.Color,p=t.tween,u=t.Vec3,d=t.Label,y=t.UIOpacity,g=t.Component}],execute:function(){var h,f,v,C,m,w,b,N,O;s._RF.push({},"6afdcKQXHBP95+nWY6Ozn/D","OptionsCtr",void 0);var P=r.ccclass,_=r.property;t("OptionsCtr",(h=P("OptionsCtr"),f=_({type:a}),v=_({type:c}),C=_({type:c}),h((b=e((w=function(t){function e(){for(var e,o=arguments.length,s=new Array(o),r=0;r<o;r++)s[r]=arguments[r];return e=t.call.apply(t,[this].concat(s))||this,n(e,"optionNodes",b,i(e)),e.selectedColor=new l(180,173,121),n(e,"selectedSprite",N,i(e)),n(e,"notSelectedSprite",O,i(e)),e.votesOrgPos_x=-894,e.votesWidth=890,e}o(e,t);var s=e.prototype;return s.start=function(){},s.resetVotes=function(){for(var t=0;t<4;t++){var e=this.optionNodes[t].getChildByName("votes").getChildByName("toupiaojindu");e.setPosition(this.votesOrgPos_x,0,0),e.active=!1,e.getChildByName("votePannel_particle").active=!1}},s.showVotes=function(t,e,o){console.log("this!!!!!"+this+" processCtr!!!!!"+o);var n=0,i=10,s=Math.max.apply(Math,t);s>10&&s<100?i=100:s>99&&(i=1e3);for(var r=0;r<4;r++){var a=this.optionNodes[r].getChildByName("votes").getChildByName("toupiaojindu");a.active&&a.getChildByName("votePannel_particle").active||(a.active=!0,a.getChildByName("votePannel_particle").active=!0),console.log(n+" "+o),p(a).to(.5,{position:new u(this.votesOrgPos_x+this.votesWidth/i*t[r],0,0)}).call((function(){console.log(n+" "+o),3===n&&(console.log("展示投票处理完成,处理下一个"),o.doneProcessing()),n++})).start()}},s.setOptions=function(t,e){var o=this;if(4===t.length){for(var n=0;n<4;n++){this.optionNodes[n].getChildByName("text_option").getComponent(d).string="",this.optionNodes[n].getComponent(y).opacity=255}p(this.node.getComponent(y)).to(1,{opacity:255}).call((function(){for(var n=0;n<4;n++)o.setOptionText(o.optionNodes[n],t[n]),3===n&&(console.log("展示选项处理完成,处理下一个"),e.storyActionStatus=1,e.processCtr.doneProcessing())})).start()}else console.warn("Expected 4 options!")},s.setOptionText=function(t,e){var o=t.getChildByName("text_option").getComponent(d),n=o.node.getComponent(y)||o.node.addComponent(y);n.opacity=0,o.string=e,p(n).to(1,{opacity:255}).start()},s.selectOption=function(t,e){if(t<1||t>4)console.warn("Invalid option index!");else for(var o=0;o<4;o++){var n=this.optionNodes[o],i=n.getChildByName("text_option").getComponent(d);if(o===t-1){i.color=this.selectedColor;var s=n.getComponent(c);s&&(s.spriteFrame=this.selectedSprite.spriteFrame),p(n).to(.1,{scale:new u(1.1,1.1,1.1)}).by(.1,{position:new u(5,0,0)}).by(.1,{position:new u(-10,0,0)}).by(.1,{position:new u(10,0,0)}).by(.1,{position:new u(-10,0,0)}).by(.1,{position:new u(5,0,0)}).to(.1,{scale:new u(1,1,1)}).call((function(){console.log("选中选项处理完成,处理下一个"),e.storyActionStatus=2,e.processCtr.doneProcessing()})).start()}}},s.scaleUp=function(t){return p(t).to(.1,{scale:new u(1.1,1.1,1.1)})},s.scaleDown=function(t){return p(t).to(.1,{scale:new u(1,1,1)})},s.shake=function(t){return p(t).by(.05,{position:new u(5,0,0)}).by(.05,{position:new u(-10,0,0)}).by(.05,{position:new u(10,0,0)}).by(.05,{position:new u(-10,0,0)}).by(.05,{position:new u(5,0,0)})},s.update=function(t){},e}(g)).prototype,"optionNodes",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),N=e(w.prototype,"selectedSprite",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(w.prototype,"notSelectedSprite",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=w))||m));s._RF.pop()}}}));
- System.register("chunks:///_virtual/ParticalCode.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,r,i,n,o,a,c,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.inheritsLoose,i=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){o=t.cclegacy,a=t._decorator,c=t.ParticleSystem2D,l=t.Component}],execute:function(){var u,s,p,y,f;o._RF.push({},"07f4e65kupN3KKVVvv5M3vD","ParticalCode",void 0);var d=a.ccclass,v=a.property;t("ParticalCode",(u=d("ParticalCode"),s=v({type:c}),u((f=e((y=function(t){function e(){for(var e,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o))||this,i(e,"myParticle",f,n(e)),e}r(e,t);var o=e.prototype;return o.start=function(){console.log(this.myParticle)},o.update=function(t){},e}(l)).prototype,"myParticle",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=y))||p));o._RF.pop()}}}));
- System.register("chunks:///_virtual/Person.ts",["cc"],(function(){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"bb850ao8d5GVZLPudFsrTvo","Person",void 0),e._RF.pop()}}}));
- System.register("chunks:///_virtual/processCtr.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var s,t,a,n;return{setters:[function(e){s=e.inheritsLoose},function(e){t=e.cclegacy,a=e._decorator,n=e.Component}],execute:function(){var o;t._RF.push({},"b15cf+EYj5B0q9DY0KH9gA8","processCtr",void 0);var i=a.ccclass;a.property,e("processCtr",i("processCtr")(o=function(e){function t(){for(var s,t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];return(s=e.call.apply(e,[this].concat(a))||this).messageQueue=[],s.isProcessing=!1,s.gameCtr=null,s.processNextMessage=function(){if(!this.isProcessing&&0!==this.messageQueue.length){var e=this.messageQueue.shift();switch(this.isProcessing=!0,console.log("processDoing 处理消息:"+e.type+" 消息队列剩余:"+this.messageQueue.length),e.type){case"plot":this.handlePlotMessage(e);break;case"options":this.handleOptionsMessage(e);break;case"votes":this.handleVotesMessage(e);break;case"voteResult":this.handleVoteResultMessage(e);break;case"state":this.handleStateMessage(e);break;case"timeChange":this.handleTimeMessage(e);break;case"newCharactor":this.handleNewPalyerMessage(e);break;case"death":this.handleDeathMessage(e);break;case"reset":this.handleResetMessage(e);break;default:console.warn("Unknown message type:",e.type),this.doneProcessing()}}},s.doneProcessing=function(){s.isProcessing=!1,s.processNextMessage()},s}s(t,e);var a=t.prototype;return a.start=function(){},a.update=function(e){},a.init=function(e){this.gameCtr=e},a.handlePlotMessage=function(e){console.log("Received plot message:",e),this.gameCtr.handleStoryPannelMove(e)},a.handleOptionsMessage=function(e){console.log("Received options message:",e),this.gameCtr.handleOptions(e)},a.handleVoteResultMessage=function(e){console.log("Received VoteResult message:",e),this.gameCtr.handleVoteResul(e)},a.handleVotesMessage=function(e){console.log("Received votes message:",e),this.gameCtr.handleVotes(e)},a.handleStateMessage=function(e){console.log("Received State message:",e),this.gameCtr.handleStateResul(e)},a.handleTimeMessage=function(e){console.log("Received timeChange message:",e),this.gameCtr.updateDateByWS(e)},a.handleNewPalyerMessage=function(e){console.log("Received newPlayer message:",e),this.gameCtr.handleNewPlayer(e)},a.handleResetMessage=function(e){console.log("Received reset message:",e),this.gameCtr.handleReset(e)},a.handleDeathMessage=function(e){console.log("Received death message:",e),this.gameCtr.handleDeath(e)},t}(n))||o);t._RF.pop()}}}));
- System.register("chunks:///_virtual/rankCtr.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var n,e,i,a,r,o,s,l,c,u,p,k,h,f,v;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.inheritsLoose,i=t.initializerDefineProperty,a=t.assertThisInitialized},function(t){r=t.cclegacy,o=t._decorator,s=t.Node,l=t.Prefab,c=t.ScrollView,u=t.Vec3,p=t.tween,k=t.instantiate,h=t.Label,f=t.Vec2,v=t.Component}],execute:function(){var y,d,m,g,b,R,w,C,N,x,L,_,z,D,S;r._RF.push({},"fc73beaHrFGm6UroZTVeHCZ","rankCtr",void 0);var P=o.ccclass,O=o.property;t("rankCtr",(y=P("rankCtr"),d=O({type:s}),m=O({type:s}),g=O({type:s}),b=O({type:l}),R=O({type:s}),w=O({type:c}),y((x=n((N=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n=t.call.apply(t,[this].concat(r))||this,i(n,"textLiveRank",x,a(n)),i(n,"rankNods",L,a(n)),i(n,"textPointsRank",_,a(n)),i(n,"gameItem",z,a(n)),i(n,"content",D,a(n)),i(n,"rankScroll",S,a(n)),n.isLiveRank=!0,n.moveDistance=-150,n.lng="cn",n.rankList=[],n.nowRankNO=0,n.rankNodes=[],n.startAnimate=!1,n}e(n,t);var r=n.prototype;return r.start=function(){},r.updateRankTop=function(){this.isLiveRank=!this.isLiveRank,this.updateRankDisplay()},r.updateRankDisplay=function(){if(this.textLiveRank&&this.textPointsRank){var t=this.isLiveRank?-this.moveDistance:this.moveDistance,n=new u(t,0,0);p(this.textLiveRank).by(.5,{position:n}).start(),p(this.textPointsRank).by(.5,{position:n}).start()}},r.updateRank=function(t){var n=this;0===this.rankNodes.length?(this.rankList=t,t.length>0&&t.forEach((function(t,e){var i=k(n.gameItem);i.getChildByName("text_rank_number").getComponent(h).string=e+1,i.getChildByName("text_player_name").getComponent(h).string=t.userInfo.name;var a=i.getChildByName("text_value").getComponent(h);"cn"===n.lng?a.string=t.survival+"天":a.string=t.survival+("1"==t.survival?"day":"days"),n.content.addChild(i),n.rankNodes.push(i)}))):this.changeRank(3,t)},r.changeRank=function(t,n){var e=this,i=this.rankNodes[this.nowRankNO].position.y,a=this.rankNodes[t].position.y;this.rankScroll.scrollToOffset(new f(0,-300-i),.1),setTimeout((function(){e.rankMove(e.rankNodes[e.nowRankNO],a,n)}),1e3)},r.rankMove=function(t,n,e){var i=this,a=k(t);p(t).to(.3,{innerHeight:0}).start(),this.rankScroll.scrollToOffset(new f(0,-300-n),1),this.content.removeChild(t),this.content.parent.addChild(a),a.position.y=a.position.y+this.rankScroll.getScrollOffset().y+200,p(a).to(.3,{scale:new u(1.2,1.2,1)}).to(1,{position:new u(a.position.x,n+200)}).to(.3,{scale:new u(1,1,1)}).to(0,{scale:new u(0,0,1)}).call((function(){i.rankNodes=[],i.startAnimate=!1,i.content.removeAllChildren(),i.updateRank(e)})).start()},r.update=function(t){},n}(v)).prototype,"textLiveRank",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=n(N.prototype,"rankNods",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=n(N.prototype,"textPointsRank",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=n(N.prototype,"gameItem",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=n(N.prototype,"content",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=n(N.prototype,"rankScroll",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=N))||C));r._RF.pop()}}}));
- System.register("chunks:///_virtual/RoleCtr.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,n,a,o,i,r,l,c,s,p,u,h,m,f,d,g,y,C,N,b;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,a=e.initializerDefineProperty,o=e.assertThisInitialized},function(e){i=e.cclegacy,r=e._decorator,l=e.Node,c=e.AudioClip,s=e.AudioSource,p=e.Vec3,u=e.resources,h=e.SpriteFrame,m=e.Sprite,f=e.UIOpacity,d=e.tween,g=e.ProgressBar,y=e.assetManager,C=e.Texture2D,N=e.Label,b=e.Component}],execute:function(){var v,_,B,w,S,F,O,k,z,A,R,x,D;i._RF.push({},"082dbn9/WJGfK71Y9CVxrX5","RoleCtr",void 0);var P=r.ccclass,L=r.property;e("RoleCtr",(v=P("RoleCtr"),_=L({type:l}),B=L(c),w=L(c),S=L(c),F=L(c),v((z=t((k=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t=e.call.apply(e,[this].concat(i))||this,a(t,"roleNodes",z,o(t)),t.loadedFrames=[],t.treatFrames=[],t.deathNodes=[],a(t,"attackClip",A,o(t)),a(t,"scanClip",R,o(t)),a(t,"treatClip",x,o(t)),a(t,"welcomeClip",D,o(t)),t.audioSource=null,t}n(t,e);var i=t.prototype;return i.start=function(){this.preloadAllFrames(),this.audioSource=this.node.getComponent(s)},i.preloadAllFrames=function(){for(var e=this,t=function(t){u.load("effect/treat/图层 "+t+"/spriteFrame",h,(function(n,a){!n&&a&&(e.treatFrames[t-1]=a)}))},n=1;n<=62;n++)t(n);for(var a=function(t){u.load("effect/scan/图层 "+t+"/spriteFrame",h,(function(n,a){!n&&a&&(e.loadedFrames[t-1]=a)}))},o=1;o<=79;o++)a(o)},i.update=function(e){},i.playAttackOneShot=function(){this.audioSource.playOneShot(this.attackClip,.2)},i.playScanOneShot=function(){this.audioSource.playOneShot(this.scanClip,.2)},i.playhealOneShot=function(){this.audioSource.playOneShot(this.treatClip,.2)},i.playWelcomOneShot=function(){this.audioSource.playOneShot(this.welcomeClip,.2)},i.attack=function(e){console.log(e);var t=1;e.getChildByName("effect_pannel").scale=new p(.8,.8,.8),this.schedule((function(){u.load("effect/attack1/图层 "+t+"/spriteFrame",h,(function(n,a){!n&&a?(e.getChildByName("effect_pannel").getComponent(m).spriteFrame=a,15==t?(t=1,e.getChildByName("effect_pannel").scale=new p(1,1,1)):t++):console.log(n)}))}),.03,15,0),this.playAttackOneShot();var n=e.getChildByName("effect_pannel2").getComponent(f);n.opacity=200,d(n).to(.5,{opacity:0}).start(),d(e).by(.1,{position:new p(5,0,0)}).by(.1,{position:new p(-10,0,0)}).by(.1,{position:new p(10,0,0)}).by(.1,{position:new p(-10,0,0)}).by(.1,{position:new p(5,0,0)}).call((function(){if(0==e.getChildByName("progressbar_hp").getComponent(g).progress){var t=e.getChildByName("icon_mask"),n=e.getChildByName("img_icon");t.getChildByName("user_icon").getComponent(f).opacity=100,n.active=!1}})).start()},i.dealDeath=function(e){for(var t=0;t<this.deathNodes.length;t++){var n=e[this.deathNodes[t].name];if(n){n.getChildByName("progressbar_hp").getComponent(g).progress=0;var a=n.getChildByName("icon_mask"),o=n.getChildByName("img_icon");a.getChildByName("user_icon").getComponent(f).opacity=100,o.active=!1}0==this.deathNodes.length-1&&(this.deathNodes=[])}},i.treat=function(e){var t=this,n=1;e.getChildByName("effect_pannel").scale=new p(.8,.8,.8),this.schedule((function(){n<=62&&t.treatFrames[n-1]&&(e.getChildByName("effect_pannel").getComponent(m).spriteFrame=t.treatFrames[n-1],e.getChildByName("effect_pannel").scale=new p(1,1,1),n++)}),.02,62,0);var a=e.getChildByName("effect_pannel3").getComponent(f);a.opacity=240,d(a).to(2,{opacity:0}).start(),this.playhealOneShot()},i.newPlayer=function(e,t){var n=this,a=e.getChildByName("icon_mask"),o=a.getChildByName("user_icon"),i=e.getChildByName("text_name"),r=e.getChildByName("progressbar_hp"),l=(e.getChildByName("effect_pannel"),e.getChildByName("img_icon"));if(i.active)r.getComponent(g).progress=t.hp/100;else{var c=t.avatar;y.loadRemote(c,(function(c,s){var u=new h,y=new C;y.image=s,u.texture=y,o.getComponent(m).spriteFrame=u;var b=1;n.schedule((function(){b<=79&&n.loadedFrames[b-1]&&(e.getChildByName("effect_pannel").getComponent(m).spriteFrame=n.loadedFrames[b-1],b++)}),.0168,79,0),d(a).by(2,{position:new p(0,-100,0)}).start(),d(o).by(2,{position:new p(0,100,0)}).call((function(){i.getComponent(N).string=t.name,i.active=!0,r.getComponent(g).progress=t.hp/100,r.active=!0,0===t.hp&&(l.active=!1,o.getComponent(f).opacity=130)})).start(),n.playScanOneShot(),n.scheduleOnce((function(){n.playWelcomOneShot()}),3)}))}},t}(b)).prototype,"roleNodes",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),A=t(k.prototype,"attackClip",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(k.prototype,"scanClip",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(k.prototype,"treatClip",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(k.prototype,"welcomeClip",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=k))||O));i._RF.pop()}}}));
- System.register("chunks:///_virtual/SocketClient.ts",["./rollupPluginModLoBabelHelpers.js","cc","./processCtr.ts"],(function(e){var t,o,n,r,s,c,i,a;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.inheritsLoose,n=e.initializerDefineProperty,r=e.assertThisInitialized},function(e){s=e.cclegacy,c=e._decorator,i=e.Component},function(e){a=e.processCtr}],execute:function(){var l,p,u,h,f;s._RF.push({},"486b33F7sZNE7LDDeI3M4Ok","SocketClient",void 0);var g=c.ccclass,y=c.property;e("SocketClient",(l=g("SocketClient"),p=y({type:a}),l((f=t((h=function(e){function t(){for(var t,o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return t=e.call.apply(e,[this].concat(s))||this,n(t,"processCtr",f,r(t)),t.roomId=1,t.gameId=8,t.SERVER_URL="wss://"+("localhost"===location.hostname?"airpg1.izouma.com":location.hostname),t.socket=void 0,t}o(t,e);var s=t.prototype;return s.onLoad=function(){},s.initSocketConnection=function(){var e=this;this.socket=io(this.SERVER_URL),this.socket.on("connect",(function(){console.log("Connected to the server.")})),this.socket.on(""+this.gameId,(function(t){if(console.log("接收到消息:"+t.type),"string"==typeof t)try{t=JSON.parse(t)}catch(e){return void console.error("Failed to parse message:",t)}t&&t.type&&(console.log("加入处理队列:"+t.type),e.processCtr.messageQueue.push(t),e.processCtr.processNextMessage())}))},t}(i)).prototype,"processCtr",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=h))||u));s._RF.pop()}}}));
- System.register("chunks:///_virtual/StoryPannelCtr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./processCtr.ts"],(function(e){var t,i,n,r,s,o,l,c,u,a,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,n=e.initializerDefineProperty,r=e.assertThisInitialized},function(e){s=e.cclegacy,o=e._decorator,l=e.AudioClip,c=e.Label,u=e.AudioSource,a=e.Component},function(e){h=e.processCtr}],execute:function(){var p,f,y,d,C,g,L,b,S;s._RF.push({},"99cc9qelk1JIZAzDq/4SSaH","StoryPannelCtr",void 0);var m=o.ccclass,x=o.property;e("StoryPannelCtr",(p=m("StoryPannelCtr"),f=x({type:h}),y=x(l),p((g=t((C=function(e){function t(){for(var t,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s))||this,n(t,"processCtr",g,r(t)),n(t,"typeSpeed",L,r(t)),n(t,"maxLines",b,r(t)),n(t,"typingClip",S,r(t)),t.audioSource=null,t.fullText="",t.currentText="",t.allLines=[],t.label=null,t.currentLine="",t.processedCharsCount=0,t.isOnProcess=!1,t.finishInit=!1,t.storyContent="《隐形守护者》巧妙的结合了影视剧专业的演技造诣和电子游戏独有的交互体验,用电子游戏独有的表现手法,让玩家对当时那段充满色彩的历史有了新的认识。剧本没有模仿传统谍战剧,整个故事设定都非常符合当时那个年代,游戏中的每个人物都信手拈来展现出难以想象的独创性。游戏提供了传统游戏所不具备的沉浸式的互动体验、真正意义上的多样选择所导致的不同结局。更强调简化的互动性和操作性,以完全影视剧的镜头和剧本来叙事。游戏采用高成本但效果好的真人实拍的方式。对剧本细节的打磨和对当时人物环境的考究。通过演员精湛的演技给玩家营造出真实的体验。这款游戏用一种特殊的方式,为玩家讲述了一个精彩的抗战背景下的谍战故事。《隐形守护者》是一部国内首款创新性互动影像作品。全程采用真人拍摄,以定格图像辅之以影视化剪辑的手法。游戏还利用真人互动影像的优势为用户进行了一场行之有效的爱国主义教育。人实景拍摄,所有场景均为实拍影像,包括为了增加历史真实感而添加的影像史料。加上精良的影音演绎的方式大大的增加了代入感,选角上,演员颜值、演技双在线,除了主角肖途展现出贯穿全剧的人性弧光外,女性角色都演绎得各有特点。而极为考究的场景、道具和服装,也都彰显出制作组的用心和细致。而全程语音加持,以及根据剧情推进或激燃或紧张的配乐,让人有亲临谍战大片的错觉。看似是一个拥有四大结局,多达12个小时的故事情节,但从整个故事来看,它的主旋律其实很简单。",t}i(t,e);var s=t.prototype;return s.initStory=function(e){console.log("初始化故事!!!!!!!!!!!!!"),this.label.string=e},s.updateStory=function(e){console.log("开始更新故事!!!!!!!!!!!!!"),this.fullText=e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim(),this.node?(this.processedCharsCount=0,this.currentLine="",this.allLines=[],this.audioSource.pause(),this.currentText="",this.label.string=this.currentText,this.typeWrite(),this.audioSource.play()):console.warn("RichText component is not assigned!")},s.typeWrite=function(){var e=this;if(this.processedCharsCount<this.fullText.length){var t=this.fullText[this.processedCharsCount];for(this.currentLine+=t,this.processedCharsCount++,(24===this.currentLine.length&&" "!==t||25===this.currentLine.length)&&(this.allLines.push(this.currentLine),this.currentLine="");this.allLines.length>this.maxLines-1;)this.allLines.shift();this.label&&(this.label.string=[].concat(this.allLines,[this.currentLine]).join("\n")),this.scheduleOnce((function(){e.typeWrite()}),this.typeSpeed)}else this.processedCharsCount=0,this.currentLine="",this.allLines=[],this.audioSource.pause(),this.isOnProcess&&(console.log("展示剧情处理完成,处理下一个"),this.processCtr.doneProcessing())},s.start=function(){this.label=this.getComponent(c),this.audioSource=this.node.getComponent(u)},s.update=function(e){},t}(a)).prototype,"processCtr",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(C.prototype,"typeSpeed",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.2}}),b=t(C.prototype,"maxLines",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 18}}),S=t(C.prototype,"typingClip",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=C))||d));s._RF.pop()}}}));
- System.register("chunks:///_virtual/temp.ts",["./rollupPluginModLoBabelHelpers.js","cc","./noticePannelCtr.ts","./StoryPannelCtr.ts","./OptionsCtr.ts","./rankCtr.ts","./RoleCtr.ts"],(function(t){var e,n,r,o,i,a,l,u,c,s,p,f,m,h,g,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.inheritsLoose,r=t.initializerDefineProperty,o=t.assertThisInitialized},function(t){i=t.cclegacy,a=t._decorator,l=t.Node,u=t.Label,c=t.Animation,s=t.ProgressBar,p=t.Component},function(t){f=t.noticePannelCtr},function(t){m=t.StoryPannelCtr},function(t){h=t.OptionsCtr},function(t){g=t.rankCtr},function(t){y=t.RoleCtr}],execute:function(){var b,d,w,C,z,v,I,P,k,N,L,_,A,B,S,j,F,T,x,E,O,R,D,G,M,H,U;i._RF.push({},"c0213/twsxLn7XT92jZGYBd","temp",void 0);var X=a.ccclass,Y=a.property;t("home",(b=X("home"),d=Y({type:f}),w=Y({type:y}),C=Y({type:m}),z=Y({type:h}),v=Y({type:g}),I=Y({type:l}),P=Y({type:u}),k=Y(c),N=Y(c),L=Y({type:u}),_=Y({type:s}),A=Y({type:l}),b((j=e((S=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i))||this,r(e,"noticeCtr",j,o(e)),r(e,"roleCtr",F,o(e)),r(e,"storyPannelCtr",T,o(e)),r(e,"optionsCtr",x,o(e)),r(e,"rankCtr",E,o(e)),r(e,"titlePannel",O,o(e)),r(e,"dayLabel",R,o(e)),r(e,"SunAnim",D,o(e)),r(e,"MoonAnim",G,o(e)),e.sunIsUp=!1,e.num=1,e.roomId=1,e.gameId=1,e.initStoryPosition=null,e.initOptionsPosition=null,e.storyActionStatus=0,r(e,"resetLabel",M,o(e)),r(e,"progressBar",H,o(e)),r(e,"resetNode",U,o(e)),e._dotsCounter=0,e._dotsInterval=null,e.options=null,e.storyHeight=510,e.selectedOptionNum=4,e}n(e,t);var i=e.prototype;return i.init=function(){var t=this,e="https://airpg.izouma.com/api/room/"+this.roomId;fetch(e).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(e){console.log(e.currentGameId+" "+e.active),t.gameId=e.currentGameId;var n="https://airpg.izouma.com/api/game/"+t.gameId;fetch(n).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(e){console.log(e);var n="https://airpg.izouma.com/api/game/"+t.gameId+"/history",r=e;fetch(n).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(t){console.log("history"),console.log(t),function(t,e){if(!t||!history)throw new Error("gameInfo or historyInfo is null");var n=e[0],r=e[e.length-1];"evening"===r.time&&(this.sunIsUp=!1,this.exchangeTime()),this.titlePannel.getChildByName("text_title").getComponent(u).string=t.name,this.titlePannel.getChildByName("game_No").getComponent(u).string="No."+this.gameId;var o=(r.data.getTime()-n.data.getTime())/864e5+1;this.dayLabel.string="第"+o+"天"}(r,t)})).catch((function(t){console.error("Fetch error:",t)}))})).catch((function(t){console.error("Fetch error:",t)}))})).catch((function(t){console.error("Fetch error:",t)}))},i.start=function(){this.init()},i.update=function(t){},e}(p)).prototype,"noticeCtr",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=e(S.prototype,"roleCtr",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(S.prototype,"storyPannelCtr",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(S.prototype,"optionsCtr",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(S.prototype,"rankCtr",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(S.prototype,"titlePannel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(S.prototype,"dayLabel",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(S.prototype,"SunAnim",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(S.prototype,"MoonAnim",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(S.prototype,"resetLabel",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(S.prototype,"progressBar",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(S.prototype,"resetNode",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=S))||B));i._RF.pop()}}}));
- System.register("chunks:///_virtual/votes.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e,r,n,o,h,a,s;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,r=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){o=t.cclegacy,h=t._decorator,a=t.Graphics,s=t.Component}],execute:function(){var c,l,u,p,f;o._RF.push({},"8604fJqRXNI5qtxiCUEZHFo","votes",void 0);var g=h.ccclass,d=h.property;t("NewComponent",g("NewComponent")((u=i((l=function(t){function i(){for(var i,e=arguments.length,o=new Array(e),h=0;h<e;h++)o[h]=arguments[h];return i=t.call.apply(t,[this].concat(o))||this,r(i,"width",u,n(i)),r(i,"height",p,n(i)),r(i,"cornerRadius",f,n(i)),i.graphics=null,i}e(i,t);var o=i.prototype;return o.start=function(){this.graphics=this.node.getComponent(a),this.graphics.clear();var t=this.height,i=this.cornerRadius;this.graphics.fillColor.fromHEX("#ff0000"),console.log("hhhhhhhhhhhhhhh"+t),this.graphics.roundRect(-this.width/2,-t/2,this.width,t,i),this.graphics.stroke(),this.graphics.fill()},o.update=function(t){},i}(s)).prototype,"width",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 400}}),p=i(l.prototype,"height",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 500}}),f=i(l.prototype,"cornerRadius",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),c=l))||c);o._RF.pop()}}}));
- (function(r) {
- r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main');
- })(function(mid, cid) {
- System.register(mid, [cid], function (_export, _context) {
- return {
- setters: [function(_m) {
- var _exportObj = {};
- for (var _key in _m) {
- if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
- }
-
- _export(_exportObj);
- }],
- execute: function () { }
- };
- });
- });
|