oriverse-engine 0.1.3 → 0.1.4

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.
@@ -53,15 +53,15 @@ object BlueCube {
53
53
  </script>
54
54
  <!-- ==== END OF EDITABLE BLOCK ==== -->
55
55
 
56
- <script src="https://unpkg.com/oriverse-engine@0.1.3/dist/ktx_lib.js"></script>
57
- <script src="https://unpkg.com/oriverse-engine@0.1.3/dist/ktx_bridge.js"></script>
56
+ <script src="https://cdn.jsdelivr.net/npm/oriverse-engine@0.1.4/dist/ktx_lib.js"></script>
57
+ <script src="https://cdn.jsdelivr.net/npm/oriverse-engine@0.1.4/dist/ktx_bridge.js"></script>
58
58
  <script type="module">
59
- import initOriverse from "https://unpkg.com/oriverse-engine@0.1.3/dist/oriverse_wgpu.js";
59
+ import initOriverse from "https://cdn.jsdelivr.net/npm/oriverse-engine@0.1.4/dist/oriverse_wgpu.js";
60
60
  const setBoot = (t) => { const b = document.getElementById('oriverse-status-banner'); if (b) b.textContent = t; };
61
61
  (async () => {
62
62
  try {
63
63
  setBoot('instantiating wasm...');
64
- await initOriverse({ module_or_path: "https://unpkg.com/oriverse-engine@0.1.3/dist/oriverse_wgpu_bg.wasm" });
64
+ await initOriverse({ module_or_path: "https://cdn.jsdelivr.net/npm/oriverse-engine@0.1.4/dist/oriverse_wgpu_bg.wasm" });
65
65
  } catch (e) {
66
66
  setBoot('WASM init failed:\n' + ((e && e.stack) ? e.stack : String(e)));
67
67
  console.error('[wasm_boot] initOriverse failed:', e);
@@ -96,9 +96,9 @@ Rules — the engine hard-errors if you break the first two:
96
96
  Authoritative references, served next to the engine (fetch if you can — the authoring
97
97
  guide contains three complete tested example games to pattern-match from):
98
98
 
99
- - https://unpkg.com/oriverse-engine@0.1.3/dist/GAME_AUTHORING.md <- game patterns + 3 full example games
100
- - https://unpkg.com/oriverse-engine@0.1.3/dist/weave_documentation.txt <- full language + API reference
101
- - https://unpkg.com/oriverse-engine@0.1.3/dist/examples/coin_collector.weave (also dodge_blocks / target_range)
99
+ - https://cdn.jsdelivr.net/npm/oriverse-engine@0.1.4/dist/GAME_AUTHORING.md <- game patterns + 3 full example games
100
+ - https://cdn.jsdelivr.net/npm/oriverse-engine@0.1.4/dist/weave_documentation.txt <- full language + API reference
101
+ - https://cdn.jsdelivr.net/npm/oriverse-engine@0.1.4/dist/examples/coin_collector.weave (also dodge_blocks / target_range)
102
102
 
103
103
  ## Step 3: test
104
104
 
@@ -83,12 +83,12 @@ export interface InitOutput {
83
83
  readonly sim_worker_init: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
84
84
  readonly sim_worker_start_ticker: (a: number) => [number, number];
85
85
  readonly start_wasm_oriverse: () => void;
86
- readonly validate_world_entry: (a: number, b: number, c: number) => [number, number];
87
- readonly validate_world_shared_entry: (a: number, b: number, c: number) => [number, number];
88
86
  readonly worker_attach_read_dc: (a: any) => void;
89
87
  readonly worker_attach_write_dc: (a: any, b: any) => void;
90
88
  readonly worker_init: (a: number, b: number) => void;
91
89
  readonly worker_init_write: (a: number, b: number, c: number, d: number) => void;
90
+ readonly validate_world_entry: (a: number, b: number, c: number) => [number, number];
91
+ readonly validate_world_shared_entry: (a: number, b: number, c: number) => [number, number];
92
92
  readonly init_market_client_message_bridge: (a: any) => [number, number];
93
93
  readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
94
94
  readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
@@ -103,8 +103,7 @@ export interface InitOutput {
103
103
  readonly intounderlyingsink_write: (a: number, b: any) => any;
104
104
  readonly intounderlyingsource_cancel: (a: number) => void;
105
105
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
106
- readonly wasm_bindgen__closure__destroy__h16dcef86690f8892: (a: number, b: number) => void;
107
- readonly wasm_bindgen__closure__destroy__h0def89a02ad24e25: (a: number, b: number) => void;
106
+ readonly wasm_bindgen__closure__destroy__h0baefc30fc54f1c1: (a: number, b: number) => void;
108
107
  readonly wasm_bindgen__closure__destroy__hf04f1b52029392cb: (a: number, b: number) => void;
109
108
  readonly wasm_bindgen__closure__destroy__h8d68c0c402e150fa: (a: number, b: number) => void;
110
109
  readonly wasm_bindgen__closure__destroy__h08b6962c9c4a8461: (a: number, b: number) => void;
@@ -113,30 +112,31 @@ export interface InitOutput {
113
112
  readonly wasm_bindgen__closure__destroy__h497a5311ffee252b: (a: number, b: number) => void;
114
113
  readonly wasm_bindgen__closure__destroy__h83f8bfe43e51586e: (a: number, b: number) => void;
115
114
  readonly wasm_bindgen__closure__destroy__h10eef66b5be2507e: (a: number, b: number) => void;
116
- readonly wasm_bindgen__convert__closures_____invoke__hac271129345e7e86: (a: number, b: number, c: number, d: number, e: number) => void;
117
- readonly wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
118
- readonly wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc: (a: number, b: number, c: any, d: any) => void;
115
+ readonly wasm_bindgen__closure__destroy__h1df966f72842a688: (a: number, b: number) => void;
116
+ readonly wasm_bindgen__convert__closures_____invoke__h813527826f148663: (a: number, b: number, c: number, d: number, e: number) => void;
117
+ readonly wasm_bindgen__convert__closures_____invoke__h1e3ad7787c877f1c: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
118
+ readonly wasm_bindgen__convert__closures_____invoke__hf686882a23e57c3e: (a: number, b: number, c: any, d: any) => void;
119
119
  readonly wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706: (a: number, b: number, c: number, d: number) => void;
120
120
  readonly wasm_bindgen__convert__closures_____invoke__h9fd153286ed41e9c: (a: number, b: number, c: any, d: any) => void;
121
121
  readonly wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66: (a: number, b: number, c: any) => [number, number];
122
122
  readonly wasm_bindgen__convert__closures_____invoke__h65f53cb9c5fcb430: (a: number, b: number, c: any, d: any) => void;
123
- readonly wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de: (a: number, b: number, c: any) => void;
124
- readonly wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013: (a: number, b: number, c: any) => void;
125
- readonly wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5: (a: number, b: number, c: any) => void;
126
- readonly wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6: (a: number, b: number, c: any) => void;
127
- readonly wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7: (a: number, b: number, c: any) => void;
123
+ readonly wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9: (a: number, b: number, c: any) => void;
124
+ readonly wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_2: (a: number, b: number, c: any) => void;
125
+ readonly wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_3: (a: number, b: number, c: any) => void;
126
+ readonly wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_4: (a: number, b: number, c: any) => void;
128
127
  readonly wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42: (a: number, b: number, c: any) => void;
129
128
  readonly wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc: (a: number, b: number, c: any) => void;
130
129
  readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1: (a: number, b: number, c: any) => void;
130
+ readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_11: (a: number, b: number, c: any) => void;
131
+ readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_12: (a: number, b: number, c: any) => void;
132
+ readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_13: (a: number, b: number, c: any) => void;
131
133
  readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14: (a: number, b: number, c: any) => void;
132
134
  readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_15: (a: number, b: number, c: any) => void;
133
135
  readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_16: (a: number, b: number, c: any) => void;
134
136
  readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_17: (a: number, b: number, c: any) => void;
135
- readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18: (a: number, b: number, c: any) => void;
136
- readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19: (a: number, b: number, c: any) => void;
137
- readonly wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20: (a: number, b: number, c: any) => void;
138
137
  readonly wasm_bindgen__convert__closures_____invoke__ha87a485729c1bc45: (a: number, b: number, c: number) => void;
139
138
  readonly wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2: (a: number, b: number, c: any) => void;
139
+ readonly wasm_bindgen__convert__closures_____invoke__h90b6440bf676aed2: (a: number, b: number, c: any) => void;
140
140
  readonly wasm_bindgen__convert__closures_____invoke__hbc8eaa61aedbf990: (a: number, b: number) => void;
141
141
  readonly wasm_bindgen__convert__closures_____invoke__h916e8c5bf71a8454: (a: number, b: number) => void;
142
142
  readonly wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50: (a: number, b: number) => void;
@@ -3231,133 +3231,133 @@ function __wbg_get_imports() {
3231
3231
  arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
3232
3232
  }, arguments); },
3233
3233
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
3234
- // Cast intrinsic for `Closure(Closure { dtor_idx: 16, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 19, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3235
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h16dcef86690f8892, wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de);
3234
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1911, function: Function { arguments: [Externref, Externref], shim_idx: 1916, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3235
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0baefc30fc54f1c1, wasm_bindgen__convert__closures_____invoke__hf686882a23e57c3e);
3236
3236
  return ret;
3237
3237
  },
3238
3238
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
3239
- // Cast intrinsic for `Closure(Closure { dtor_idx: 16, function: Function { arguments: [String, String], shim_idx: 21, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3240
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h16dcef86690f8892, wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3);
3239
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1911, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1912, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3240
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0baefc30fc54f1c1, wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9);
3241
3241
  return ret;
3242
3242
  },
3243
3243
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
3244
- // Cast intrinsic for `Closure(Closure { dtor_idx: 16, function: Function { arguments: [U32, U32, F64], shim_idx: 17, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3245
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h16dcef86690f8892, wasm_bindgen__convert__closures_____invoke__hac271129345e7e86);
3244
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1911, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1912, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3245
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0baefc30fc54f1c1, wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_2);
3246
3246
  return ret;
3247
3247
  },
3248
3248
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
3249
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [Externref, Externref], shim_idx: 2361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3250
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc);
3249
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1911, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 1912, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3250
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0baefc30fc54f1c1, wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_3);
3251
3251
  return ret;
3252
3252
  },
3253
3253
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
3254
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3255
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013);
3254
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1911, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 1912, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3255
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0baefc30fc54f1c1, wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_4);
3256
3256
  return ret;
3257
3257
  },
3258
3258
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
3259
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [NamedExternref("Event")], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3260
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5);
3259
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 2885, function: Function { arguments: [], shim_idx: 2886, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3260
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf04f1b52029392cb, wasm_bindgen__convert__closures_____invoke__hbc8eaa61aedbf990);
3261
3261
  return ret;
3262
3262
  },
3263
3263
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
3264
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3265
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6);
3264
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4109, function: Function { arguments: [String], shim_idx: 4110, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3265
+ const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8d68c0c402e150fa, wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706);
3266
3266
  return ret;
3267
3267
  },
3268
3268
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
3269
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3270
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7);
3269
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4159, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 4160, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3270
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h08b6962c9c4a8461, wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42);
3271
3271
  return ret;
3272
3272
  },
3273
3273
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
3274
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2915, function: Function { arguments: [], shim_idx: 2916, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3275
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf04f1b52029392cb, wasm_bindgen__convert__closures_____invoke__hbc8eaa61aedbf990);
3274
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4256, function: Function { arguments: [Externref], shim_idx: 4257, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3275
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h22ca06dde759e186, wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc);
3276
3276
  return ret;
3277
3277
  },
3278
3278
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
3279
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4129, function: Function { arguments: [String], shim_idx: 4130, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3280
- const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8d68c0c402e150fa, wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706);
3279
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [Externref], shim_idx: 4350, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3280
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1);
3281
3281
  return ret;
3282
3282
  },
3283
3283
  __wbindgen_cast_000000000000000b: function(arg0, arg1) {
3284
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4154, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 4155, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3285
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h08b6962c9c4a8461, wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42);
3284
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 4352, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3285
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h9fd153286ed41e9c);
3286
3286
  return ret;
3287
3287
  },
3288
3288
  __wbindgen_cast_000000000000000c: function(arg0, arg1) {
3289
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4276, function: Function { arguments: [Externref], shim_idx: 4277, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3290
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h22ca06dde759e186, wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc);
3289
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 4350, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3290
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_11);
3291
3291
  return ret;
3292
3292
  },
3293
3293
  __wbindgen_cast_000000000000000d: function(arg0, arg1) {
3294
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [Externref], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3295
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1);
3294
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [NamedExternref("Event")], shim_idx: 4350, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3295
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_12);
3296
3296
  return ret;
3297
3297
  },
3298
3298
  __wbindgen_cast_000000000000000e: function(arg0, arg1) {
3299
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 4372, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3300
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h9fd153286ed41e9c);
3299
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 4350, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3300
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_13);
3301
3301
  return ret;
3302
3302
  },
3303
3303
  __wbindgen_cast_000000000000000f: function(arg0, arg1) {
3304
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3304
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 4350, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3305
3305
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14);
3306
3306
  return ret;
3307
3307
  },
3308
3308
  __wbindgen_cast_0000000000000010: function(arg0, arg1) {
3309
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("Event")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3309
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 4350, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3310
3310
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_15);
3311
3311
  return ret;
3312
3312
  },
3313
3313
  __wbindgen_cast_0000000000000011: function(arg0, arg1) {
3314
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3314
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 4350, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3315
3315
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_16);
3316
3316
  return ret;
3317
3317
  },
3318
3318
  __wbindgen_cast_0000000000000012: function(arg0, arg1) {
3319
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3319
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 4350, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3320
3320
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_17);
3321
3321
  return ret;
3322
3322
  },
3323
3323
  __wbindgen_cast_0000000000000013: function(arg0, arg1) {
3324
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3325
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18);
3324
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [Option(NamedExternref("Blob"))], shim_idx: 4356, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3325
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__ha87a485729c1bc45);
3326
3326
  return ret;
3327
3327
  },
3328
3328
  __wbindgen_cast_0000000000000014: function(arg0, arg1) {
3329
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3330
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19);
3329
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4349, function: Function { arguments: [], shim_idx: 4359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3330
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h916e8c5bf71a8454);
3331
3331
  return ret;
3332
3332
  },
3333
3333
  __wbindgen_cast_0000000000000015: function(arg0, arg1) {
3334
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3335
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20);
3334
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5119, function: Function { arguments: [], shim_idx: 5120, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3335
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h497a5311ffee252b, wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50);
3336
3336
  return ret;
3337
3337
  },
3338
3338
  __wbindgen_cast_0000000000000016: function(arg0, arg1) {
3339
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [Option(NamedExternref("Blob"))], shim_idx: 4376, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3340
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__ha87a485729c1bc45);
3339
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5190, function: Function { arguments: [Externref], shim_idx: 5191, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3340
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83f8bfe43e51586e, wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2);
3341
3341
  return ret;
3342
3342
  },
3343
3343
  __wbindgen_cast_0000000000000017: function(arg0, arg1) {
3344
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [], shim_idx: 4379, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3345
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h916e8c5bf71a8454);
3344
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5209, function: Function { arguments: [Externref], shim_idx: 5210, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3345
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h10eef66b5be2507e, wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66);
3346
3346
  return ret;
3347
3347
  },
3348
3348
  __wbindgen_cast_0000000000000018: function(arg0, arg1) {
3349
- // Cast intrinsic for `Closure(Closure { dtor_idx: 5138, function: Function { arguments: [], shim_idx: 5139, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3350
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h497a5311ffee252b, wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50);
3349
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 617, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 618, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3350
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1df966f72842a688, wasm_bindgen__convert__closures_____invoke__h90b6440bf676aed2);
3351
3351
  return ret;
3352
3352
  },
3353
3353
  __wbindgen_cast_0000000000000019: function(arg0, arg1) {
3354
- // Cast intrinsic for `Closure(Closure { dtor_idx: 5209, function: Function { arguments: [Externref], shim_idx: 5210, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3355
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83f8bfe43e51586e, wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2);
3354
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 617, function: Function { arguments: [String, String], shim_idx: 620, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3355
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1df966f72842a688, wasm_bindgen__convert__closures_____invoke__h1e3ad7787c877f1c);
3356
3356
  return ret;
3357
3357
  },
3358
3358
  __wbindgen_cast_000000000000001a: function(arg0, arg1) {
3359
- // Cast intrinsic for `Closure(Closure { dtor_idx: 5228, function: Function { arguments: [Externref], shim_idx: 5229, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3360
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h10eef66b5be2507e, wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66);
3359
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 617, function: Function { arguments: [U32, U32, F64], shim_idx: 622, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3360
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1df966f72842a688, wasm_bindgen__convert__closures_____invoke__h813527826f148663);
3361
3361
  return ret;
3362
3362
  },
3363
3363
  __wbindgen_cast_000000000000001b: function(arg0) {
@@ -3408,24 +3408,20 @@ function wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50(arg0, arg
3408
3408
  wasm.wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50(arg0, arg1);
3409
3409
  }
3410
3410
 
3411
- function wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de(arg0, arg1, arg2) {
3412
- wasm.wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de(arg0, arg1, arg2);
3413
- }
3414
-
3415
- function wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013(arg0, arg1, arg2) {
3416
- wasm.wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013(arg0, arg1, arg2);
3411
+ function wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9(arg0, arg1, arg2) {
3412
+ wasm.wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9(arg0, arg1, arg2);
3417
3413
  }
3418
3414
 
3419
- function wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5(arg0, arg1, arg2) {
3420
- wasm.wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5(arg0, arg1, arg2);
3415
+ function wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_2(arg0, arg1, arg2) {
3416
+ wasm.wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_2(arg0, arg1, arg2);
3421
3417
  }
3422
3418
 
3423
- function wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6(arg0, arg1, arg2) {
3424
- wasm.wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6(arg0, arg1, arg2);
3419
+ function wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_3(arg0, arg1, arg2) {
3420
+ wasm.wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_3(arg0, arg1, arg2);
3425
3421
  }
3426
3422
 
3427
- function wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7(arg0, arg1, arg2) {
3428
- wasm.wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7(arg0, arg1, arg2);
3423
+ function wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_4(arg0, arg1, arg2) {
3424
+ wasm.wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_4(arg0, arg1, arg2);
3429
3425
  }
3430
3426
 
3431
3427
  function wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42(arg0, arg1, arg2) {
@@ -3440,6 +3436,18 @@ function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1(arg0, arg
3440
3436
  wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1(arg0, arg1, arg2);
3441
3437
  }
3442
3438
 
3439
+ function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_11(arg0, arg1, arg2) {
3440
+ wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_11(arg0, arg1, arg2);
3441
+ }
3442
+
3443
+ function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_12(arg0, arg1, arg2) {
3444
+ wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_12(arg0, arg1, arg2);
3445
+ }
3446
+
3447
+ function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_13(arg0, arg1, arg2) {
3448
+ wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_13(arg0, arg1, arg2);
3449
+ }
3450
+
3443
3451
  function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14(arg0, arg1, arg2) {
3444
3452
  wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14(arg0, arg1, arg2);
3445
3453
  }
@@ -3456,22 +3464,14 @@ function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_17(arg0,
3456
3464
  wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_17(arg0, arg1, arg2);
3457
3465
  }
3458
3466
 
3459
- function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18(arg0, arg1, arg2) {
3460
- wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18(arg0, arg1, arg2);
3461
- }
3462
-
3463
- function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19(arg0, arg1, arg2) {
3464
- wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19(arg0, arg1, arg2);
3465
- }
3466
-
3467
- function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20(arg0, arg1, arg2) {
3468
- wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20(arg0, arg1, arg2);
3469
- }
3470
-
3471
3467
  function wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2(arg0, arg1, arg2) {
3472
3468
  wasm.wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2(arg0, arg1, arg2);
3473
3469
  }
3474
3470
 
3471
+ function wasm_bindgen__convert__closures_____invoke__h90b6440bf676aed2(arg0, arg1, arg2) {
3472
+ wasm.wasm_bindgen__convert__closures_____invoke__h90b6440bf676aed2(arg0, arg1, arg2);
3473
+ }
3474
+
3475
3475
  function wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66(arg0, arg1, arg2) {
3476
3476
  const ret = wasm.wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66(arg0, arg1, arg2);
3477
3477
  if (ret[1]) {
@@ -3479,8 +3479,8 @@ function wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66(arg0, arg
3479
3479
  }
3480
3480
  }
3481
3481
 
3482
- function wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc(arg0, arg1, arg2, arg3) {
3483
- wasm.wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc(arg0, arg1, arg2, arg3);
3482
+ function wasm_bindgen__convert__closures_____invoke__hf686882a23e57c3e(arg0, arg1, arg2, arg3) {
3483
+ wasm.wasm_bindgen__convert__closures_____invoke__hf686882a23e57c3e(arg0, arg1, arg2, arg3);
3484
3484
  }
3485
3485
 
3486
3486
  function wasm_bindgen__convert__closures_____invoke__h9fd153286ed41e9c(arg0, arg1, arg2, arg3) {
@@ -3501,16 +3501,16 @@ function wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706(arg0, arg
3501
3501
  wasm.wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706(arg0, arg1, ptr0, len0);
3502
3502
  }
3503
3503
 
3504
- function wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3(arg0, arg1, arg2, arg3) {
3504
+ function wasm_bindgen__convert__closures_____invoke__h1e3ad7787c877f1c(arg0, arg1, arg2, arg3) {
3505
3505
  const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3506
3506
  const len0 = WASM_VECTOR_LEN;
3507
3507
  const ptr1 = passStringToWasm0(arg3, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3508
3508
  const len1 = WASM_VECTOR_LEN;
3509
- wasm.wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3(arg0, arg1, ptr0, len0, ptr1, len1);
3509
+ wasm.wasm_bindgen__convert__closures_____invoke__h1e3ad7787c877f1c(arg0, arg1, ptr0, len0, ptr1, len1);
3510
3510
  }
3511
3511
 
3512
- function wasm_bindgen__convert__closures_____invoke__hac271129345e7e86(arg0, arg1, arg2, arg3, arg4) {
3513
- wasm.wasm_bindgen__convert__closures_____invoke__hac271129345e7e86(arg0, arg1, arg2, arg3, arg4);
3512
+ function wasm_bindgen__convert__closures_____invoke__h813527826f148663(arg0, arg1, arg2, arg3, arg4) {
3513
+ wasm.wasm_bindgen__convert__closures_____invoke__h813527826f148663(arg0, arg1, arg2, arg3, arg4);
3514
3514
  }
3515
3515
 
3516
3516
 
Binary file
@@ -5,12 +5,12 @@ export const bootOriverseArtifact: (a: number, b: number) => any;
5
5
  export const sim_worker_init: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
6
6
  export const sim_worker_start_ticker: (a: number) => [number, number];
7
7
  export const start_wasm_oriverse: () => void;
8
- export const validate_world_entry: (a: number, b: number, c: number) => [number, number];
9
- export const validate_world_shared_entry: (a: number, b: number, c: number) => [number, number];
10
8
  export const worker_attach_read_dc: (a: any) => void;
11
9
  export const worker_attach_write_dc: (a: any, b: any) => void;
12
10
  export const worker_init: (a: number, b: number) => void;
13
11
  export const worker_init_write: (a: number, b: number, c: number, d: number) => void;
12
+ export const validate_world_entry: (a: number, b: number, c: number) => [number, number];
13
+ export const validate_world_shared_entry: (a: number, b: number, c: number) => [number, number];
14
14
  export const init_market_client_message_bridge: (a: any) => [number, number];
15
15
  export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
16
16
  export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
@@ -25,8 +25,7 @@ export const intounderlyingsink_close: (a: number) => any;
25
25
  export const intounderlyingsink_write: (a: number, b: any) => any;
26
26
  export const intounderlyingsource_cancel: (a: number) => void;
27
27
  export const intounderlyingsource_pull: (a: number, b: any) => any;
28
- export const wasm_bindgen__closure__destroy__h16dcef86690f8892: (a: number, b: number) => void;
29
- export const wasm_bindgen__closure__destroy__h0def89a02ad24e25: (a: number, b: number) => void;
28
+ export const wasm_bindgen__closure__destroy__h0baefc30fc54f1c1: (a: number, b: number) => void;
30
29
  export const wasm_bindgen__closure__destroy__hf04f1b52029392cb: (a: number, b: number) => void;
31
30
  export const wasm_bindgen__closure__destroy__h8d68c0c402e150fa: (a: number, b: number) => void;
32
31
  export const wasm_bindgen__closure__destroy__h08b6962c9c4a8461: (a: number, b: number) => void;
@@ -35,30 +34,31 @@ export const wasm_bindgen__closure__destroy__h2fa417b22e371ac0: (a: number, b: n
35
34
  export const wasm_bindgen__closure__destroy__h497a5311ffee252b: (a: number, b: number) => void;
36
35
  export const wasm_bindgen__closure__destroy__h83f8bfe43e51586e: (a: number, b: number) => void;
37
36
  export const wasm_bindgen__closure__destroy__h10eef66b5be2507e: (a: number, b: number) => void;
38
- export const wasm_bindgen__convert__closures_____invoke__hac271129345e7e86: (a: number, b: number, c: number, d: number, e: number) => void;
39
- export const wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
40
- export const wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc: (a: number, b: number, c: any, d: any) => void;
37
+ export const wasm_bindgen__closure__destroy__h1df966f72842a688: (a: number, b: number) => void;
38
+ export const wasm_bindgen__convert__closures_____invoke__h813527826f148663: (a: number, b: number, c: number, d: number, e: number) => void;
39
+ export const wasm_bindgen__convert__closures_____invoke__h1e3ad7787c877f1c: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
40
+ export const wasm_bindgen__convert__closures_____invoke__hf686882a23e57c3e: (a: number, b: number, c: any, d: any) => void;
41
41
  export const wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706: (a: number, b: number, c: number, d: number) => void;
42
42
  export const wasm_bindgen__convert__closures_____invoke__h9fd153286ed41e9c: (a: number, b: number, c: any, d: any) => void;
43
43
  export const wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66: (a: number, b: number, c: any) => [number, number];
44
44
  export const wasm_bindgen__convert__closures_____invoke__h65f53cb9c5fcb430: (a: number, b: number, c: any, d: any) => void;
45
- export const wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de: (a: number, b: number, c: any) => void;
46
- export const wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013: (a: number, b: number, c: any) => void;
47
- export const wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5: (a: number, b: number, c: any) => void;
48
- export const wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6: (a: number, b: number, c: any) => void;
49
- export const wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7: (a: number, b: number, c: any) => void;
45
+ export const wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9: (a: number, b: number, c: any) => void;
46
+ export const wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_2: (a: number, b: number, c: any) => void;
47
+ export const wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_3: (a: number, b: number, c: any) => void;
48
+ export const wasm_bindgen__convert__closures_____invoke__h5db0fe9f8c1525c9_4: (a: number, b: number, c: any) => void;
50
49
  export const wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42: (a: number, b: number, c: any) => void;
51
50
  export const wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc: (a: number, b: number, c: any) => void;
52
51
  export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1: (a: number, b: number, c: any) => void;
52
+ export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_11: (a: number, b: number, c: any) => void;
53
+ export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_12: (a: number, b: number, c: any) => void;
54
+ export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_13: (a: number, b: number, c: any) => void;
53
55
  export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14: (a: number, b: number, c: any) => void;
54
56
  export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_15: (a: number, b: number, c: any) => void;
55
57
  export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_16: (a: number, b: number, c: any) => void;
56
58
  export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_17: (a: number, b: number, c: any) => void;
57
- export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18: (a: number, b: number, c: any) => void;
58
- export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19: (a: number, b: number, c: any) => void;
59
- export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20: (a: number, b: number, c: any) => void;
60
59
  export const wasm_bindgen__convert__closures_____invoke__ha87a485729c1bc45: (a: number, b: number, c: number) => void;
61
60
  export const wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2: (a: number, b: number, c: any) => void;
61
+ export const wasm_bindgen__convert__closures_____invoke__h90b6440bf676aed2: (a: number, b: number, c: any) => void;
62
62
  export const wasm_bindgen__convert__closures_____invoke__hbc8eaa61aedbf990: (a: number, b: number) => void;
63
63
  export const wasm_bindgen__convert__closures_____invoke__h916e8c5bf71a8454: (a: number, b: number) => void;
64
64
  export const wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50: (a: number, b: number) => void;
@@ -0,0 +1,61 @@
1
+ // Oriverse shader prewarm (engine-dist sidecar): replays this build's captured pipeline
2
+ // manifest (shader_prewarm_manifest.json, generated per release by
3
+ // scripts/generate_shader_prewarm_manifest.py) on a throwaway device so the engine's
4
+ // ~175 sync pipeline creates hit the browser's shader cache instead of serially compiling
5
+ // ~10s cold on the device timeline (the first-view freeze;
6
+ // docs/wasm_pipeline_freeze_handover.md). Load as a CLASSIC script tag from the same
7
+ // directory as the engine wasm; the manifest URL derives from this script's own src, so
8
+ // host pages stay version-agnostic. Fail-open at every step - absent manifest, fetch
9
+ // error, or replay failure all leave the engine on today's cold path. The engine's
10
+ // await_shader_prewarm_gate (lib.rs) bounds its create burst on `state`; keep that
11
+ // contract and the __mod/__bgl/__layout/'__auto' markers in sync with
12
+ // scripts/wasm_shader_hooks.py and the [pre_shader] block in web_package/index.html.
13
+ window.__ORI_SHADER_PREWARM = (() => {
14
+ const flag = { state: 'absent' };
15
+ if (!('gpu' in navigator) || !document.currentScript || !document.currentScript.src) return flag;
16
+ // iOS/iPadOS: a second GPUDevice during boot on the most memory-constrained platform
17
+ // for a Dawn-specific cache benefit - keep off until measured there.
18
+ if (/iPad|iPhone|iPod/.test(navigator.userAgent)
19
+ || (/Mac/.test(navigator.platform) && navigator.maxTouchPoints > 1)) return flag;
20
+ const manifestUrl = new URL('shader_prewarm_manifest.json', document.currentScript.src).href;
21
+ flag.state = 'running';
22
+ flag.promise = (async () => {
23
+ const t0 = performance.now();
24
+ const resp = await fetch(manifestUrl, { priority: 'low' });
25
+ if (!resp.ok) { flag.state = 'absent'; console.log('[pre_shader] no manifest (http ' + resp.status + ')'); return; }
26
+ const man = await resp.json();
27
+ const tFetch = performance.now();
28
+ const ad = await navigator.gpu.requestAdapter({ powerPreference: 'high-performance' });
29
+ let device = null;
30
+ try { device = await ad.requestDevice(man.device || undefined); }
31
+ catch (e) { device = await ad.requestDevice(); }
32
+ const mods = man.modules.map((m) => device.createShaderModule({ label: m.label, code: m.code }));
33
+ let bgls = [];
34
+ let layouts = [];
35
+ // Explicit layout fidelity is mandatory: 'auto' changes bind remapping -> different
36
+ // generated HLSL -> cache miss for every render pipeline (probe-verified).
37
+ const deser = (d) => {
38
+ if (d === '__auto') return 'auto';
39
+ if (d === null || typeof d !== 'object') return d;
40
+ if (Array.isArray(d)) return d.map(deser);
41
+ if ('__mod' in d) return mods[d.__mod];
42
+ if ('__bgl' in d) return bgls[d.__bgl];
43
+ if ('__layout' in d) return layouts[d.__layout];
44
+ const o = {};
45
+ for (const k in d) o[k] = deser(d[k]);
46
+ return o;
47
+ };
48
+ bgls = (man.bgls || []).map((b) => device.createBindGroupLayout(deser(b)));
49
+ layouts = (man.layouts || []).map((l) => device.createPipelineLayout(deser(l)));
50
+ const results = await Promise.allSettled(man.pipelines.map((p) => {
51
+ const desc = deser(p.desc);
52
+ return p.kind === 'compute' ? device.createComputePipelineAsync(desc) : device.createRenderPipelineAsync(desc);
53
+ }));
54
+ try { device.destroy(); } catch (e) {}
55
+ const ok = results.filter((r) => r.status === 'fulfilled').length;
56
+ flag.state = 'done';
57
+ console.log('[pre_shader] replayed ' + ok + '/' + results.length
58
+ + ' fetch ' + Math.round(tFetch - t0) + 'ms compile ' + Math.round(performance.now() - tFetch) + 'ms');
59
+ })().catch((e) => { flag.state = 'failed'; console.warn('[pre_shader] failed:', e); });
60
+ return flag;
61
+ })();