@bloopjs/web 0.0.69 → 0.0.71

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/dist/mod.js CHANGED
@@ -1142,7 +1142,10 @@ class NetContext {
1142
1142
  return this.dataView.getUint8(0);
1143
1143
  }
1144
1144
  get isInSession() {
1145
- return this.peerCount > 0;
1145
+ if (!this.dataView) {
1146
+ throw new Error("NetContext DataView is not initialized");
1147
+ }
1148
+ return this.dataView.getUint8(2) !== 0;
1146
1149
  }
1147
1150
  get matchFrame() {
1148
1151
  if (!this.dataView) {
@@ -1290,8 +1293,8 @@ class Sim {
1290
1293
  }
1291
1294
  return this.wasm.step(ms ?? 16);
1292
1295
  }
1293
- tick() {
1294
- this.wasm.tick();
1296
+ tick(isResimulating) {
1297
+ this.wasm.tick(isResimulating ?? false);
1295
1298
  }
1296
1299
  cloneSession(source) {
1297
1300
  if (source.isRecording) {
@@ -6307,5 +6310,5 @@ export {
6307
6310
  App
6308
6311
  };
6309
6312
 
6310
- //# debugId=47EAAE8DC7343DDC64756E2164756E21
6313
+ //# debugId=82CD9EA2C73FCE8364756E2164756E21
6311
6314
  //# sourceMappingURL=mod.js.map