quake2ts 0.0.542 → 0.0.543
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/package.json +1 -1
- package/packages/cgame/dist/index.cjs +4 -5
- package/packages/cgame/dist/index.cjs.map +1 -1
- package/packages/cgame/dist/index.d.cts +7 -4
- package/packages/cgame/dist/index.d.ts +7 -4
- package/packages/cgame/dist/index.js +4 -5
- package/packages/cgame/dist/index.js.map +1 -1
- package/packages/client/dist/browser/index.global.js +9 -9
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/client/dist/cjs/index.cjs +4 -2
- package/packages/client/dist/cjs/index.cjs.map +1 -1
- package/packages/client/dist/esm/index.js +5 -3
- package/packages/client/dist/esm/index.js.map +1 -1
- package/packages/client/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/client/dist/types/index.d.ts +1 -1
- package/packages/client/dist/types/index.d.ts.map +1 -1
- package/packages/client/dist/types/net/connection.d.ts +2 -1
- package/packages/client/dist/types/net/connection.d.ts.map +1 -1
|
@@ -14288,7 +14288,7 @@ var MultiplayerConnection = class {
|
|
|
14288
14288
|
this.currentPing = 0;
|
|
14289
14289
|
this.driver = new BrowserWebSocketNetDriver();
|
|
14290
14290
|
this.options = options;
|
|
14291
|
-
this.netchan = new NetChan();
|
|
14291
|
+
this.netchan = options.netchan ?? new NetChan();
|
|
14292
14292
|
this.driver.onMessage((data) => this.handleMessage(data));
|
|
14293
14293
|
this.driver.onClose(() => this.handleDisconnect());
|
|
14294
14294
|
this.driver.onError((err2) => {
|
|
@@ -15749,7 +15749,8 @@ var InputCommandBuffer = class {
|
|
|
15749
15749
|
// src/index.ts
|
|
15750
15750
|
import {
|
|
15751
15751
|
ClientPrediction as ClientPrediction3,
|
|
15752
|
-
interpolatePredictionState as interpolatePredictionState3
|
|
15752
|
+
interpolatePredictionState as interpolatePredictionState3,
|
|
15753
|
+
defaultPredictionState as defaultPredictionState3
|
|
15753
15754
|
} from "@quake2ts/cgame";
|
|
15754
15755
|
import { ViewEffects as ViewEffects3 } from "@quake2ts/cgame";
|
|
15755
15756
|
|
|
@@ -16284,7 +16285,7 @@ function createClient(imports) {
|
|
|
16284
16285
|
const tr = imports.engine.trace(point, point, zero3, zero3);
|
|
16285
16286
|
return tr.contents || 0;
|
|
16286
16287
|
};
|
|
16287
|
-
const prediction = new ClientPrediction2(imports.engine.trace, pointContents);
|
|
16288
|
+
const prediction = new ClientPrediction2({ trace: imports.engine.trace, pointContents });
|
|
16288
16289
|
const view = new ViewEffects2();
|
|
16289
16290
|
const demoPlayback = new DemoPlaybackController();
|
|
16290
16291
|
const demoControls = new DemoControls(demoPlayback, (speed) => {
|
|
@@ -17289,6 +17290,7 @@ export {
|
|
|
17289
17290
|
createClient,
|
|
17290
17291
|
createDefaultBindings,
|
|
17291
17292
|
createSession,
|
|
17293
|
+
defaultPredictionState3 as defaultPredictionState,
|
|
17292
17294
|
interpolatePredictionState3 as interpolatePredictionState,
|
|
17293
17295
|
normalizeCommand,
|
|
17294
17296
|
normalizeInputCode,
|