quake2ts 0.0.205 → 0.0.207

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.
@@ -4668,6 +4668,9 @@ var ClientNetworkHandler = class {
4668
4668
  }
4669
4669
  onConfigString(index, str3) {
4670
4670
  this.configstrings[index] = str3;
4671
+ if (this.callbacks?.onConfigString) {
4672
+ this.callbacks.onConfigString(index, str3);
4673
+ }
4671
4674
  }
4672
4675
  onSpawnBaseline(entity) {
4673
4676
  this.baselines.set(entity.number, structuredClone(entity));
@@ -6296,9 +6299,15 @@ function createClient(imports) {
6296
6299
  const settings = new BrowserSettings(new LocalStorageSettings());
6297
6300
  let pauseMenuFactory;
6298
6301
  let optionsFactory;
6299
- demoHandler.onCenterPrint = (msg) => messageSystem.addCenterPrint(msg, demoHandler.latestFrame?.serverFrame ?? 0);
6300
- demoHandler.onPrint = (level, msg) => messageSystem.addNotify(msg, demoHandler.latestFrame?.serverFrame ?? 0);
6301
6302
  const configStrings = new ClientConfigStrings();
6303
+ demoHandler.setCallbacks({
6304
+ onCenterPrint: (msg) => messageSystem.addCenterPrint(msg, demoHandler.latestFrame?.serverFrame ?? 0),
6305
+ onPrint: (level, msg) => messageSystem.addNotify(msg, demoHandler.latestFrame?.serverFrame ?? 0),
6306
+ onConfigString: (index, str3) => {
6307
+ configStrings.set(index, str3);
6308
+ cg.ParseConfigString(index, str3);
6309
+ }
6310
+ });
6302
6311
  demoPlayback.setHandler(demoHandler);
6303
6312
  let latestFrame;
6304
6313
  let lastRendered;