mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-04 22:58:29 +08:00
Release 43.
This commit is contained in:
parent
ada5980a16
commit
66079d1719
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
12.88379bf1427bc49e486c.js
Normal file
1
12.88379bf1427bc49e486c.js
Normal file
File diff suppressed because one or more lines are too long
1
13.1ad08b307e421294750f.js
Normal file
1
13.1ad08b307e421294750f.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{HjM1:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n("39ZU"),i=n("nN8q"),a=(n("4AvX"),n("FXpb"));const o=28;class r extends i.a{constructor(e){super(e),this.element=Object(a.i)({className:"core_TabContainer"}),this.tabs=[],this.bar_element=Object(a.i)({className:"core_TabContainer_Bar"}),this.panes_element=Object(a.i)({className:"core_TabContainer_Panes"}),this.bar_mousedown=e=>{if(e.target instanceof HTMLElement){const t=e.target.dataset.key;t&&this.activate(t)}},this.bar_element.onmousedown=this.bar_mousedown;for(const t of e.tabs){const e=Object(a.r)({className:"core_TabContainer_Tab",data:{key:t.key}},t.title);this.bar_element.append(e);const n=this.disposable(new s.a(t.create_view));this.tabs.push(Object.assign(Object.assign({},t),{tab_element:e,lazy_view:n})),this.panes_element.append(n.element)}this.tabs.length&&this.activate(this.tabs[0].key),this.element.append(this.bar_element,this.panes_element),this.finalize_construction()}resize(e,t){super.resize(e,t),this.bar_element.style.width=`${e}px`,this.bar_element.style.height=`${o}px`;const n=t-o;this.panes_element.style.width=`${e}px`,this.panes_element.style.height=`${n}px`;for(const t of this.tabs)t.lazy_view.resize(e,n);return this}activate(e){for(const t of this.tabs){const n=t.key===e;n?t.tab_element.classList.add("active"):t.tab_element.classList.remove("active"),t.lazy_view.visible.val=n}}}},U6CM:function(e,t,n){"use strict";n.r(t);var s=n("HjM1");class i extends s.a{constructor(e,t){super({class:"viewer_ViewerView",tabs:[{title:"Models",key:"model",create_view:e},{title:"Textures",key:"texture",create_view:t}]}),this.finalize_construction()}}var a=n("Tpfs");n.d(t,"initialize_viewer",(function(){return r}));var o=function(e,t,n,s){return new(n||(n=Promise))((function(i,a){function o(e){try{c(s.next(e))}catch(e){a(e)}}function r(e){try{c(s.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,r)}c((s=s.apply(e,t||[])).next())}))};function r(e,t,s){const r=new a.a;return{view:new i(()=>o(this,void 0,void 0,(function*(){const{Model3DStore:i}=yield n.e(5).then(n.bind(null,"tyuj")),{Model3DView:a}=yield Promise.all([n.e(0),n.e(1),n.e(2),n.e(11)]).then(n.bind(null,"Hdaq")),{CharacterClassAssetLoader:o}=yield n.e(6).then(n.bind(null,"ZV42")),c=new i(r.add(new o(e)));return r.disposed?c.dispose():r.add(c),new a(t,c,s())})),()=>o(this,void 0,void 0,(function*(){const{TextureStore:e}=yield n.e(7).then(n.bind(null,"4/Uj")),{TextureView:i}=yield Promise.all([n.e(0),n.e(1),n.e(9)]).then(n.bind(null,"Za3H")),a=new e;return r.disposed?a.dispose():r.add(a),new i(t,a,s())}))),dispose(){r.dispose()}}}}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{HjM1:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n("39ZU"),i=n("nN8q"),a=(n("4AvX"),n("FXpb"));const o=28;class r extends i.a{constructor(e){super(e),this.element=Object(a.i)({className:"core_TabContainer"}),this.tabs=[],this.bar_element=Object(a.i)({className:"core_TabContainer_Bar"}),this.panes_element=Object(a.i)({className:"core_TabContainer_Panes"}),this.bar_mousedown=e=>{if(e.target instanceof HTMLElement){const t=e.target.dataset.key;t&&this.activate(t)}},this.bar_element.onmousedown=this.bar_mousedown;for(const t of e.tabs){const e=Object(a.r)({className:"core_TabContainer_Tab",data:{key:t.key}},t.title);this.bar_element.append(e);const n=this.disposable(new s.a(t.create_view));this.tabs.push(Object.assign(Object.assign({},t),{tab_element:e,lazy_view:n})),this.panes_element.append(n.element)}this.tabs.length&&this.activate(this.tabs[0].key),this.element.append(this.bar_element,this.panes_element),this.finalize_construction()}resize(e,t){super.resize(e,t),this.bar_element.style.width=`${e}px`,this.bar_element.style.height=`${o}px`;const n=t-o;this.panes_element.style.width=`${e}px`,this.panes_element.style.height=`${n}px`;for(const t of this.tabs)t.lazy_view.resize(e,n);return this}activate(e){for(const t of this.tabs){const n=t.key===e;n?t.tab_element.classList.add("active"):t.tab_element.classList.remove("active"),t.lazy_view.visible.val=n}}}},U6CM:function(e,t,n){"use strict";n.r(t);var s=n("HjM1");class i extends s.a{constructor(e,t){super({class:"viewer_ViewerView",tabs:[{title:"Models",key:"model",create_view:e},{title:"Textures",key:"texture",create_view:t}]}),this.finalize_construction()}}var a=n("Tpfs");n.d(t,"initialize_viewer",(function(){return r}));var o=function(e,t,n,s){return new(n||(n=Promise))((function(i,a){function o(e){try{l(s.next(e))}catch(e){a(e)}}function r(e){try{l(s.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,r)}l((s=s.apply(e,t||[])).next())}))};function r(e,t,s){const r=new a.a;return{view:new i(()=>o(this,void 0,void 0,(function*(){const{Model3DStore:i}=yield Promise.all([n.e(3),n.e(13)]).then(n.bind(null,"tyuj")),{Model3DView:a}=yield Promise.all([n.e(0),n.e(1),n.e(2),n.e(10)]).then(n.bind(null,"Hdaq")),{CharacterClassAssetLoader:o}=yield Promise.all([n.e(3),n.e(16)]).then(n.bind(null,"ZV42")),l=new i(r.add(new o(e)));return r.disposed?l.dispose():r.add(l),new a(t,l,s())})),()=>o(this,void 0,void 0,(function*(){const{TextureStore:e}=yield n.e(6).then(n.bind(null,"4/Uj")),{TextureView:i}=yield Promise.all([n.e(0),n.e(1),n.e(8)]).then(n.bind(null,"Za3H")),a=new e;return r.disposed?a.dispose():r.add(a),new i(t,a,s())}))),dispose(){r.dispose()}}}}}]);
|
1
16.4b9cb20eec75f6d529df.js
Normal file
1
16.4b9cb20eec75f6d529df.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{ZV42:function(e,t,o){"use strict";o.r(t),o.d(t,"CharacterClassAssetLoader",(function(){return u}));var s=o("kwt4"),a=o("NRxM"),n=o("bcBH"),i=o("VwSi"),r=o("9fJw"),c=o("yub1"),d=o("/UnV"),h=o("nsCy"),_=function(e,t,o,s){return new(o||(o=Promise))((function(a,n){function i(e){try{c(s.next(e))}catch(e){n(e)}}function r(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(i,r)}c((s=s.apply(e,t||[])).next())}))};class u{constructor(e){this.http_client=e,this.nj_object_cache=new Map,this.xvr_texture_cache=new Map,this.nj_motion_cache=new Map}dispose(){for(const e of this.nj_object_cache.values())e.dispose();for(const e of this.nj_motion_cache.values())e.dispose();this.nj_object_cache.clear(),this.nj_motion_cache.clear()}load_geometry(e){let t=this.nj_object_cache.get(e.name);return t||(t=this.load_all_nj_objects(e),this.nj_object_cache.set(e.name,t)),t}load_all_nj_objects(e){const t=l(e,h.e.Viridia,0);return this.load_body_part_geometry(e.name,"Body").then(o=>{if(!o)throw new Error(`Couldn't load body for player class ${e.name}.`);return this.load_body_part_geometry(e.name,"Head",0).then(s=>{if(!s)return o;let a=1+t.body.length;return this.shift_texture_ids(s,a),this.add_to_bone(o,s,59),0===e.hair_style_count?o:this.load_body_part_geometry(e.name,"Hair",0).then(n=>n?(a+=t.head.length,this.shift_texture_ids(n,a),this.add_to_bone(s,n,0),e.hair_styles_with_accessory.has(0)?this.load_body_part_geometry(e.name,"Accessory",0).then(e=>(e&&(a+=t.hair.length,this.shift_texture_ids(e,a),this.add_to_bone(n,e,0)),o)):o):o)})})}load_body_part_geometry(e,t,o){return this.http_client.get(function(e,t,o){return`/player/${e}${t}${null==o?"":o}.nj`}(e,t,o)).array_buffer().then(e=>Object(s.c)(new a.a(e,n.a.Little))[0])}shift_texture_ids(e,t){if(e.model)for(const o of e.model.meshes)null!=o.texture_id&&(o.texture_id+=t);for(const o of e.children)this.shift_texture_ids(o,t)}add_to_bone(e,t,o){const s=e.get_bone(o);s&&(s.evaluation_flags.hidden=!1,s.evaluation_flags.break_child_trace=!1,s.add_child(t))}load_textures(e,t,o){return _(this,void 0,void 0,(function*(){let s=this.xvr_texture_cache.get(e.name);s||(s=this.http_client.get(`/player/${e.name}Tex.afs`).array_buffer().then(e=>{const t=Object(d.a)(new a.a(e,n.a.Little)),o=[];for(const e of t){const t=Object(c.a)(new a.a(e,n.a.Little));o.push(...t.textures)}return o}));const i=yield s,r=l(e,t,o);return[r.section_id,...r.body,...r.head,...r.hair,...r.accessories].map(e=>null==e?void 0:i[e])}))}load_animation(e,t){let o=this.nj_motion_cache.get(e);return o||(o=this.http_client.get(`/player/animation/animation_${e.toString().padStart(3,"0")}.njm`).array_buffer().then(e=>Object(i.c)(new a.a(e,n.a.Little),t))),o}}function l(e,t,o){switch(e){case r.g:{const e=3*o;return{section_id:t+126,body:[e,e+1,e+2,o+108],head:[54,55],hair:[94,95],accessories:[]}}case r.h:{const e=13*o;return{section_id:t+299,body:[e+13,e,e+1,e+2,e+3,277,o+281],head:[235,239],hair:[260,259],accessories:[]}}case r.f:{const e=5*o;return{section_id:t+275,body:[e,e+1,e+2,o+250],head:[e+3,e+4],hair:[],accessories:[]}}case r.e:{const e=5*o;return{section_id:t+375,body:[e,e+1,e+2],head:[e+3,e+4],hair:[],accessories:[]}}case r.k:{const e=7*o;return{section_id:t+197,body:[e+4,e+5,e+6,o+179],head:[126,127],hair:[166,167],accessories:[void 0,void 0,e+2]}}case r.l:{const e=16*o;return{section_id:t+322,body:[e+15,e+1,e],head:[288],hair:[308,309],accessories:[void 0,void 0,e+8]}}case r.j:{const e=5*o;return{section_id:t+300,body:[e,e+1,e+2,e+3,o+275],head:[e+4],hair:[],accessories:[]}}case r.i:{const e=5*o;return{section_id:t+375,body:[o+350,e,e+1,e+2],head:[e+3],hair:[e+4],accessories:[]}}case r.a:{const e=0===o?0:15*o+2;return{section_id:t+310,body:[e+12,e+13,e+14,e],head:[276,272],hair:[void 0,296,297],accessories:[e+4]}}case r.b:{const e=16*o;return{section_id:t+310,body:[e,e+2,e+1,322],head:[288],hair:[void 0,void 0,308],accessories:[e+3,e+4]}}case r.d:{const e=17*o;return{section_id:t+344,body:[e+4,340,e,e+5],head:[306,310],hair:[void 0,void 0,330],accessories:[e+6,e+16,330]}}case r.c:{const e=26*o;return{section_id:t+505,body:[e+1,e,e+2,501],head:[472,468],hair:[void 0,void 0,492],accessories:[e+12,e+13]}}default:throw new Error(`No textures for character class ${e.name}.`)}}}}]);
|
1
3.f6a9385e4953be1fa892.js
Normal file
1
3.f6a9385e4953be1fa892.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
9.bc3bf44803e4f87f68b2.js
Normal file
1
9.bc3bf44803e4f87f68b2.js
Normal file
File diff suppressed because one or more lines are too long
@ -5,5 +5,5 @@
|
||||
<title>Phantasmal World</title>
|
||||
<link href="vendors.2f01cd4bfc365d1613ad.css" rel="stylesheet"><link href="style.2127e3130a3bc881e8bf.css" rel="stylesheet"></head>
|
||||
<body>
|
||||
<script type="text/javascript" src="runtime.f816c7f37d9ddf4bdef7.js"></script><script type="text/javascript" src="vendors.fe6d3badd1e4d0d422de.js"></script><script type="text/javascript" src="style.981e2f202ed4dc1aecea.js"></script><script type="text/javascript" src="main.b3c13c52c210b91156c4.js"></script></body>
|
||||
<script type="text/javascript" src="runtime.fd3d844269be9a2eb495.js"></script><script type="text/javascript" src="vendors.fe6d3badd1e4d0d422de.js"></script><script type="text/javascript" src="style.981e2f202ed4dc1aecea.js"></script><script type="text/javascript" src="main.88a68ed6845f8ddb95c0.js"></script></body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
!function(e){function r(r){for(var n,f,u=r[0],c=r[1],i=r[2],d=0,p=[];d<u.length;d++)f=u[d],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&p.push(o[f][0]),o[f]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);p.length;)p.shift()();return a.push.apply(a,i||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,u=1;u<t.length;u++){var c=t[u];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={4:0},a=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,f.nc&&u.setAttribute("nonce",f.nc),u.src=function(e){return f.p+""+({}[e]||e)+"."+{2:"62ee4a872048cb741d92",5:"ea42785cd21dbb6d7fb3",6:"78f3601b1f9f32dc4252",7:"aa1b1cc0a70aefe799a9",8:"7da8f7dabb5dd0103e4f",9:"bd6957709879309eae40",10:"caa77f01f98658f1764f",11:"05a286ee08efddf54d0a",12:"0535f21304a04efee941",13:"b15e34c136e79a7f0f34",14:"297e261fe19911c4a50d",15:"970e2537d9e00045a66b"}[e]+".js"}(e);var c=new Error;a=function(r){u.onerror=u.onload=null,clearTimeout(i);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var i=setTimeout((function(){a({type:"timeout",target:u})}),12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(r)},f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="",f.oe=function(e){throw console.error(e),e};var u=window.webpackJsonp=window.webpackJsonp||[],c=u.push.bind(u);u.push=r,u=u.slice();for(var i=0;i<u.length;i++)r(u[i]);var l=c;t()}([]);
|
1
runtime.fd3d844269be9a2eb495.js
Normal file
1
runtime.fd3d844269be9a2eb495.js
Normal file
@ -0,0 +1 @@
|
||||
!function(e){function r(r){for(var n,u,c=r[0],f=r[1],i=r[2],p=0,d=[];p<c.length;p++)u=c[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&d.push(o[u][0]),o[u]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(l&&l(r);d.length;)d.shift()();return a.push.apply(a,i||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,c=1;c<t.length;c++){var f=t[c];0!==o[f]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={5:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,c=document.createElement("script");c.charset="utf-8",c.timeout=120,u.nc&&c.setAttribute("nonce",u.nc),c.src=function(e){return u.p+""+({}[e]||e)+"."+{2:"62ee4a872048cb741d92",3:"f6a9385e4953be1fa892",6:"63bea3ad9715e14be32b",7:"36c608658ac2e559389d",8:"837f86138ee3433acbb1",9:"bc3bf44803e4f87f68b2",10:"de36f41c0560a197648d",11:"a58208ecea4654c01b2e",12:"88379bf1427bc49e486c",13:"1ad08b307e421294750f",14:"d33afa2954a788b97fe4",15:"970e2537d9e00045a66b",16:"4b9cb20eec75f6d529df"}[e]+".js"}(e);var f=new Error;a=function(r){c.onerror=c.onload=null,clearTimeout(i);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",f.name="ChunkLoadError",f.type=n,f.request=a,t[1](f)}o[e]=void 0}};var i=setTimeout((function(){a({type:"timeout",target:c})}),12e4);c.onerror=c.onload=a,document.head.appendChild(c)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="",u.oe=function(e){throw console.error(e),e};var c=window.webpackJsonp=window.webpackJsonp||[],f=c.push.bind(c);c.push=r,c=c.slice();for(var i=0;i<c.length;i++)r(c[i]);var l=f;t()}([]);
|
Loading…
Reference in New Issue
Block a user