@genex-ai/multiplayer 0.17.6 → 0.17.9
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/PROTOCOL.md +102 -31
- package/README.md +35 -14
- package/WORLD-GLTF.md +109 -0
- package/WORLD-SCENE.md +135 -0
- package/dist/authority/fast-udp.d.ts +4 -2
- package/dist/authority/fast-udp.js +8 -46
- package/dist/authority/fast-webtransport.d.ts +26 -4
- package/dist/authority/fast-webtransport.js +12 -115
- package/dist/authority/index.d.ts +379 -41
- package/dist/authority/index.js +247 -47
- package/dist/authority/module.d.ts +2 -1
- package/dist/authority/module.js +1 -1
- package/dist/bridge-authority.d.ts +3 -2
- package/dist/bridge-authority.global.js +10 -9
- package/dist/bridge-authority.js +11 -6
- package/dist/bridge.global.js +5 -5
- package/dist/bridge.js +3 -3
- package/dist/chunk-2NGXXQDS.js +1916 -0
- package/dist/{chunk-7QVOIHJF.js → chunk-DJ2XYETS.js} +2 -2
- package/dist/{chunk-Y6XHXDIK.js → chunk-MQYARUGU.js} +864 -539
- package/dist/{chunk-K3SF5VDS.js → chunk-OD6NRSX2.js} +3 -1
- package/dist/{chunk-UX3F6YTV.js → chunk-TEHGMFAG.js} +1 -1
- package/dist/chunk-TSYEWPVO.js +44 -0
- package/dist/chunk-TVTVIMIH.js +675 -0
- package/dist/{chunk-ZSWF4VCN.js → chunk-WEMRRIHH.js} +80 -2
- package/dist/chunk-YWQ3ALYY.js +69 -0
- package/dist/{chunk-5JGRFT2N.js → chunk-ZDGSUR6E.js} +879 -1898
- package/dist/{fast-client-CZ41v-oB.d.ts → fast-client--A88q0kk.d.ts} +85 -4
- package/dist/index.js +3 -3
- package/dist/level-build-CbRqrYJq.d.ts +140 -0
- package/dist/{module-DqtFb5wA.d.ts → module-CSpXrzFc.d.ts} +151 -400
- package/dist/{physics-predict-49udN3a1.d.ts → physics-predict-C7ZB1gDG.d.ts} +18 -3
- package/dist/protocol.d.ts +90 -2
- package/dist/protocol.js +17 -1
- package/dist/shot-world-D22tqOUT.d.ts +485 -0
- package/dist/world-fit/index.d.ts +549 -0
- package/dist/world-fit/index.js +4763 -0
- package/dist/world-fit/three.d.ts +77 -0
- package/dist/world-fit/three.js +140 -0
- package/package.json +15 -3
package/dist/bridge-authority.js
CHANGED
|
@@ -9,18 +9,20 @@ import {
|
|
|
9
9
|
} from "./chunk-4R7C2TLH.js";
|
|
10
10
|
import {
|
|
11
11
|
connectAuthority
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-MQYARUGU.js";
|
|
13
|
+
import "./chunk-TEHGMFAG.js";
|
|
14
|
+
import "./chunk-YWQ3ALYY.js";
|
|
15
|
+
import "./chunk-ZDGSUR6E.js";
|
|
16
|
+
import "./chunk-OD6NRSX2.js";
|
|
14
17
|
import {
|
|
15
18
|
firstpersonWorld
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-K3SF5VDS.js";
|
|
19
|
+
} from "./chunk-2NGXXQDS.js";
|
|
18
20
|
import {
|
|
19
21
|
AuthorityTiming,
|
|
20
22
|
CloseCode,
|
|
21
23
|
ServerMessage,
|
|
22
24
|
isReservedEventType
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WEMRRIHH.js";
|
|
24
26
|
|
|
25
27
|
// src/bridge-authority.ts
|
|
26
28
|
import { getAuthorityRegions, getAuthorityUrls, getColyseusAuth } from "@genex-ai/embed-sdk";
|
|
@@ -62,7 +64,8 @@ function parseOptions(optsJson) {
|
|
|
62
64
|
predict: o.predict !== false,
|
|
63
65
|
predictPhysics: o.predictPhysics !== false,
|
|
64
66
|
renderDelayMs: delayOk ? delay : void 0,
|
|
65
|
-
capacityRetryMs: retrySchedule(o.capacityRetryMs)
|
|
67
|
+
capacityRetryMs: retrySchedule(o.capacityRetryMs),
|
|
68
|
+
fast: o.fast === false ? false : void 0
|
|
66
69
|
};
|
|
67
70
|
}
|
|
68
71
|
var sessions = /* @__PURE__ */ new Map();
|
|
@@ -102,6 +105,7 @@ async function join(e) {
|
|
|
102
105
|
predictPhysics: o.predictPhysics,
|
|
103
106
|
renderDelayMs: o.renderDelayMs,
|
|
104
107
|
capacityRetryMs: o.capacityRetryMs,
|
|
108
|
+
fast: o.fast,
|
|
105
109
|
onEvent: (type, data) => {
|
|
106
110
|
if (!e.closed) onServerMessage(e, type, data);
|
|
107
111
|
}
|
|
@@ -233,6 +237,7 @@ function authorityJson(handle) {
|
|
|
233
237
|
players: s ? [...s.players().values()] : [],
|
|
234
238
|
telemetry: s ? { ...s.telemetry } : null,
|
|
235
239
|
prediction: s ? s.prediction : null,
|
|
240
|
+
fast: s ? s.fast : null,
|
|
236
241
|
physicsPrediction: s ? s.physicsPrediction : null
|
|
237
242
|
});
|
|
238
243
|
}
|