File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { MenuTargetType } from "../rs/MenuEntry";
1111import { isTouchDevice } from "../util/DeviceUtil" ;
1212import { InputManager } from "../util/InputManager" ;
1313import { WebGLMapSquare } from "../renderer/webgl/WebGLMapSquare" ;
14+ import { SdMapData } from "../renderer/loader/SdMapData" ;
1415
1516export class MapViewerRendererStats {
1617 frameStart : number ;
@@ -256,6 +257,16 @@ export abstract class MapViewerRenderer extends RendererMainLoop {
256257 // this.mapViewer.debugText = `Frame Time Js: ${this.stats.frameTimeJs.toFixed(3)}`;
257258 }
258259
260+ onMapLoad ( mapData : SdMapData ) {
261+ this . mapViewer . setMapImageUrl (
262+ mapData . mapX ,
263+ mapData . mapY ,
264+ URL . createObjectURL ( mapData . minimapBlob ) ,
265+ true ,
266+ false ,
267+ ) ;
268+ }
269+
259270 checkInteractions ( interactReady : boolean , interactBuffer : Float32Array ,
260271 closestInteractIndices : Map < number , number [ ] > ) : void {
261272 const frameCount = this . stats . frameCount ;
Original file line number Diff line number Diff line change @@ -708,13 +708,7 @@ export class WebGLMapRenderer extends MapViewerRenderer {
708708 ) : void {
709709 const { mapX, mapY } = mapData ;
710710
711- this . mapViewer . setMapImageUrl (
712- mapX ,
713- mapY ,
714- URL . createObjectURL ( mapData . minimapBlob ) ,
715- true ,
716- false ,
717- ) ;
711+ this . onMapLoad ( mapData ) ;
718712
719713 const frameCount = this . stats . frameCount ;
720714 this . mapManager . addMap (
You can’t perform that action at this time.
0 commit comments