@dcl-regenesislabs/bevy-explorer-web 0.1.0-22444813827.commit-3f2ea24 → 0.1.0-22449880242.commit-afeac2a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env CHANGED
@@ -1 +1 @@
1
- PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22444813827.commit-3f2ea24"
1
+ PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22449880242.commit-afeac2a"
package/index.html CHANGED
@@ -411,7 +411,7 @@
411
411
  }
412
412
  </style>
413
413
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
414
- <script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22444813827.commit-3f2ea24";</script>
414
+ <script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22449880242.commit-afeac2a";</script>
415
415
  </head>
416
416
  <body>
417
417
  <div id="header" class="container">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl-regenesislabs/bevy-explorer-web",
3
- "version": "0.1.0-22444813827.commit-3f2ea24",
3
+ "version": "0.1.0-22449880242.commit-afeac2a",
4
4
  "scripts": {
5
5
  "postinstall": "node ./scripts/prebuild.js"
6
6
  },
@@ -8,6 +8,6 @@
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/decentraland/bevy-explorer.git"
10
10
  },
11
- "homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22444813827.commit-3f2ea24",
12
- "commit": "3f2ea248e1d38bbca8dfe8b00c0489a36d80a0cb"
11
+ "homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22449880242.commit-afeac2a",
12
+ "commit": "afeac2aaf750eab1b8917ac31092840d83dafb49"
13
13
  }
package/pkg/manifest.json CHANGED
@@ -1 +1 @@
1
- {"wasmSize":115695061}
1
+ {"wasmSize":115695505}
@@ -9,6 +9,7 @@ export function engine_run(platform: string, realm: string, location: string, sy
9
9
  export function image_processor_init(): void;
10
10
  export function image_processor_run(): Promise<void>;
11
11
  export function wasm_init_scene(): Promise<WorkerContext>;
12
+ export function op_set_elapsed(state: WorkerContext, elapsed: number): void;
12
13
  export function op_continue_running(state: WorkerContext): boolean;
13
14
  export function op_communicated_with_renderer(state: WorkerContext): boolean;
14
15
  export function drop_context(state: WorkerContext): void;
@@ -279,6 +280,7 @@ export interface InitOutput {
279
280
  readonly op_send_chat: (a: number, b: number, c: number, d: number, e: number) => void;
280
281
  readonly op_set_avatar: (a: number, b: any, c: any, d: number, e: any) => any;
281
282
  readonly op_set_bindings: (a: number, b: any) => any;
283
+ readonly op_set_elapsed: (a: number, b: number) => void;
282
284
  readonly op_set_home_scene: (a: number, b: number, c: number, d: any) => void;
283
285
  readonly op_set_interactable_area: (a: number, b: number, c: number, d: number, e: number) => void;
284
286
  readonly op_set_mic_enabled: (a: number, b: number) => any;
@@ -299,6 +299,15 @@ function _assertClass(instance, klass) {
299
299
  throw new Error(`expected instance of ${klass.name}`);
300
300
  }
301
301
  }
302
+ /**
303
+ * @param {WorkerContext} state
304
+ * @param {number} elapsed
305
+ */
306
+ export function op_set_elapsed(state, elapsed) {
307
+ _assertClass(state, WorkerContext);
308
+ wasm.op_set_elapsed(state.__wbg_ptr, elapsed);
309
+ }
310
+
302
311
  /**
303
312
  * @param {WorkerContext} state
304
313
  * @returns {boolean}
@@ -1492,7 +1501,7 @@ function __wbg_adapter_114(arg0, arg1, arg2) {
1492
1501
  wasm.closure135108_externref_shim(arg0, arg1, arg2);
1493
1502
  }
1494
1503
 
1495
- function __wbg_adapter_1602(arg0, arg1, arg2, arg3) {
1504
+ function __wbg_adapter_1603(arg0, arg1, arg2, arg3) {
1496
1505
  wasm.closure138001_externref_shim(arg0, arg1, arg2, arg3);
1497
1506
  }
1498
1507
 
@@ -3200,7 +3209,7 @@ function __wbg_get_imports() {
3200
3209
  const a = state0.a;
3201
3210
  state0.a = 0;
3202
3211
  try {
3203
- return __wbg_adapter_1602(a, state0.b, arg0, arg1);
3212
+ return __wbg_adapter_1603(a, state0.b, arg0, arg1);
3204
3213
  } finally {
3205
3214
  state0.a = a;
3206
3215
  }
@@ -4801,15 +4810,15 @@ function __wbg_get_imports() {
4801
4810
  const ret = false;
4802
4811
  return ret;
4803
4812
  };
4804
- imports.wbg.__wbindgen_closure_wrapper151358 = function(arg0, arg1, arg2) {
4813
+ imports.wbg.__wbindgen_closure_wrapper151361 = function(arg0, arg1, arg2) {
4805
4814
  const ret = makeMutClosure(arg0, arg1, 119855, __wbg_adapter_111);
4806
4815
  return ret;
4807
4816
  };
4808
- imports.wbg.__wbindgen_closure_wrapper172155 = function(arg0, arg1, arg2) {
4817
+ imports.wbg.__wbindgen_closure_wrapper172158 = function(arg0, arg1, arg2) {
4809
4818
  const ret = makeMutClosure(arg0, arg1, 135109, __wbg_adapter_114);
4810
4819
  return ret;
4811
4820
  };
4812
- imports.wbg.__wbindgen_closure_wrapper172157 = function(arg0, arg1, arg2) {
4821
+ imports.wbg.__wbindgen_closure_wrapper172160 = function(arg0, arg1, arg2) {
4813
4822
  const ret = makeMutClosure(arg0, arg1, 135109, __wbg_adapter_114);
4814
4823
  return ret;
4815
4824
  };
@@ -4821,71 +4830,71 @@ function __wbg_get_imports() {
4821
4830
  const ret = makeClosure(arg0, arg1, 41745, __wbg_adapter_65);
4822
4831
  return ret;
4823
4832
  };
4824
- imports.wbg.__wbindgen_closure_wrapper67267 = function(arg0, arg1, arg2) {
4833
+ imports.wbg.__wbindgen_closure_wrapper67270 = function(arg0, arg1, arg2) {
4825
4834
  const ret = makeMutClosure(arg0, arg1, 51168, __wbg_adapter_68);
4826
4835
  return ret;
4827
4836
  };
4828
- imports.wbg.__wbindgen_closure_wrapper67406 = function(arg0, arg1, arg2) {
4837
+ imports.wbg.__wbindgen_closure_wrapper67409 = function(arg0, arg1, arg2) {
4829
4838
  const ret = makeMutClosure(arg0, arg1, 51271, __wbg_adapter_71);
4830
4839
  return ret;
4831
4840
  };
4832
- imports.wbg.__wbindgen_closure_wrapper71230 = function(arg0, arg1, arg2) {
4841
+ imports.wbg.__wbindgen_closure_wrapper71233 = function(arg0, arg1, arg2) {
4833
4842
  const ret = makeMutClosure(arg0, arg1, 54208, __wbg_adapter_74);
4834
4843
  return ret;
4835
4844
  };
4836
- imports.wbg.__wbindgen_closure_wrapper72428 = function(arg0, arg1, arg2) {
4845
+ imports.wbg.__wbindgen_closure_wrapper72431 = function(arg0, arg1, arg2) {
4837
4846
  const ret = makeMutClosure(arg0, arg1, 54822, __wbg_adapter_77);
4838
4847
  return ret;
4839
4848
  };
4840
- imports.wbg.__wbindgen_closure_wrapper72430 = function(arg0, arg1, arg2) {
4849
+ imports.wbg.__wbindgen_closure_wrapper72433 = function(arg0, arg1, arg2) {
4841
4850
  const ret = makeMutClosure(arg0, arg1, 54822, __wbg_adapter_77);
4842
4851
  return ret;
4843
4852
  };
4844
- imports.wbg.__wbindgen_closure_wrapper72432 = function(arg0, arg1, arg2) {
4853
+ imports.wbg.__wbindgen_closure_wrapper72435 = function(arg0, arg1, arg2) {
4845
4854
  const ret = makeMutClosure(arg0, arg1, 54822, __wbg_adapter_77);
4846
4855
  return ret;
4847
4856
  };
4848
- imports.wbg.__wbindgen_closure_wrapper76999 = function(arg0, arg1, arg2) {
4857
+ imports.wbg.__wbindgen_closure_wrapper77002 = function(arg0, arg1, arg2) {
4849
4858
  const ret = makeMutClosure(arg0, arg1, 58056, __wbg_adapter_84);
4850
4859
  return ret;
4851
4860
  };
4852
- imports.wbg.__wbindgen_closure_wrapper78034 = function(arg0, arg1, arg2) {
4861
+ imports.wbg.__wbindgen_closure_wrapper78037 = function(arg0, arg1, arg2) {
4853
4862
  const ret = makeMutClosure(arg0, arg1, 58437, __wbg_adapter_87);
4854
4863
  return ret;
4855
4864
  };
4856
- imports.wbg.__wbindgen_closure_wrapper80186 = function(arg0, arg1, arg2) {
4865
+ imports.wbg.__wbindgen_closure_wrapper80189 = function(arg0, arg1, arg2) {
4857
4866
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_90);
4858
4867
  return ret;
4859
4868
  };
4860
- imports.wbg.__wbindgen_closure_wrapper80188 = function(arg0, arg1, arg2) {
4869
+ imports.wbg.__wbindgen_closure_wrapper80191 = function(arg0, arg1, arg2) {
4861
4870
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_93);
4862
4871
  return ret;
4863
4872
  };
4864
- imports.wbg.__wbindgen_closure_wrapper80190 = function(arg0, arg1, arg2) {
4873
+ imports.wbg.__wbindgen_closure_wrapper80193 = function(arg0, arg1, arg2) {
4865
4874
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_90);
4866
4875
  return ret;
4867
4876
  };
4868
- imports.wbg.__wbindgen_closure_wrapper80192 = function(arg0, arg1, arg2) {
4877
+ imports.wbg.__wbindgen_closure_wrapper80195 = function(arg0, arg1, arg2) {
4869
4878
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_90);
4870
4879
  return ret;
4871
4880
  };
4872
- imports.wbg.__wbindgen_closure_wrapper80194 = function(arg0, arg1, arg2) {
4881
+ imports.wbg.__wbindgen_closure_wrapper80197 = function(arg0, arg1, arg2) {
4873
4882
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_90);
4874
4883
  return ret;
4875
4884
  };
4876
- imports.wbg.__wbindgen_closure_wrapper80196 = function(arg0, arg1, arg2) {
4885
+ imports.wbg.__wbindgen_closure_wrapper80199 = function(arg0, arg1, arg2) {
4877
4886
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_90);
4878
4887
  return ret;
4879
4888
  };
4880
- imports.wbg.__wbindgen_closure_wrapper80198 = function(arg0, arg1, arg2) {
4889
+ imports.wbg.__wbindgen_closure_wrapper80201 = function(arg0, arg1, arg2) {
4881
4890
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_90);
4882
4891
  return ret;
4883
4892
  };
4884
- imports.wbg.__wbindgen_closure_wrapper80200 = function(arg0, arg1, arg2) {
4893
+ imports.wbg.__wbindgen_closure_wrapper80203 = function(arg0, arg1, arg2) {
4885
4894
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_90);
4886
4895
  return ret;
4887
4896
  };
4888
- imports.wbg.__wbindgen_closure_wrapper80202 = function(arg0, arg1, arg2) {
4897
+ imports.wbg.__wbindgen_closure_wrapper80205 = function(arg0, arg1, arg2) {
4889
4898
  const ret = makeMutClosure(arg0, arg1, 59898, __wbg_adapter_108);
4890
4899
  return ret;
4891
4900
  };
Binary file
@@ -113,6 +113,7 @@ export const op_send_batch: (a: number) => any;
113
113
  export const op_send_chat: (a: number, b: number, c: number, d: number, e: number) => void;
114
114
  export const op_set_avatar: (a: number, b: any, c: any, d: number, e: any) => any;
115
115
  export const op_set_bindings: (a: number, b: any) => any;
116
+ export const op_set_elapsed: (a: number, b: number) => void;
116
117
  export const op_set_home_scene: (a: number, b: number, c: number, d: any) => void;
117
118
  export const op_set_interactable_area: (a: number, b: number, c: number, d: number, e: number) => void;
118
119
  export const op_set_mic_enabled: (a: number, b: number) => any;
package/sandbox_worker.js CHANGED
@@ -312,6 +312,7 @@ self.onmessage = async (event) => {
312
312
  var consecutiveErrorsWithoutInteraction = 0;
313
313
  while (ops.op_continue_running()) {
314
314
  const dt = (elapsed - prevElapsed) / 1000;
315
+ ops.op_set_elapsed(elapsed / 1000);
315
316
  try {
316
317
  await module.onUpdate(dt);
317
318
  consecutiveErrorsWithoutInteraction = 0;