mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-05 15:28:29 +08:00
1 line
863 B
JavaScript
1 line
863 B
JavaScript
![]() |
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{ZV42:function(t,n,r){"use strict";r.r(n),r.d(n,"CharacterClassAssetLoader",(function(){return e}));var i=function(t,n,r,i){return new(r||(r=Promise))((function(e,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function c(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(t){t(n)}))).then(a,c)}u((i=i.apply(t,n||[])).next())}))};class e{constructor(t){this.http_client=t}load_geometry(t,n,r){return i(this,void 0,void 0,(function*(){return yield this.http_client.get(function(t,n,r){return`/player/${t}${n}${null==r?"":r}.nj`}(t,n,r)).array_buffer()}))}load_animation(t){return i(this,void 0,void 0,(function*(){return yield this.http_client.get(`/player/animation/animation_${t.toString().padStart(3,"0")}.njm`).array_buffer()}))}}}}]);
|