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.
@@ -4699,6 +4699,9 @@ var ClientNetworkHandler = class {
4699
4699
  }
4700
4700
  onConfigString(index, str3) {
4701
4701
  this.configstrings[index] = str3;
4702
+ if (this.callbacks?.onConfigString) {
4703
+ this.callbacks.onConfigString(index, str3);
4704
+ }
4702
4705
  }
4703
4706
  onSpawnBaseline(entity) {
4704
4707
  this.baselines.set(entity.number, structuredClone(entity));
@@ -6324,9 +6327,15 @@ function createClient(imports) {
6324
6327
  const settings = new BrowserSettings(new LocalStorageSettings());
6325
6328
  let pauseMenuFactory;
6326
6329
  let optionsFactory;
6327
- demoHandler.onCenterPrint = (msg) => messageSystem.addCenterPrint(msg, demoHandler.latestFrame?.serverFrame ?? 0);
6328
- demoHandler.onPrint = (level, msg) => messageSystem.addNotify(msg, demoHandler.latestFrame?.serverFrame ?? 0);
6329
6330
  const configStrings = new ClientConfigStrings();
6331
+ demoHandler.setCallbacks({
6332
+ onCenterPrint: (msg) => messageSystem.addCenterPrint(msg, demoHandler.latestFrame?.serverFrame ?? 0),
6333
+ onPrint: (level, msg) => messageSystem.addNotify(msg, demoHandler.latestFrame?.serverFrame ?? 0),
6334
+ onConfigString: (index, str3) => {
6335
+ configStrings.set(index, str3);
6336
+ cg.ParseConfigString(index, str3);
6337
+ }
6338
+ });
6330
6339
  demoPlayback.setHandler(demoHandler);
6331
6340
  let latestFrame;
6332
6341
  let lastRendered;