@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.
Files changed (40) hide show
  1. package/PROTOCOL.md +102 -31
  2. package/README.md +35 -14
  3. package/WORLD-GLTF.md +109 -0
  4. package/WORLD-SCENE.md +135 -0
  5. package/dist/authority/fast-udp.d.ts +4 -2
  6. package/dist/authority/fast-udp.js +8 -46
  7. package/dist/authority/fast-webtransport.d.ts +26 -4
  8. package/dist/authority/fast-webtransport.js +12 -115
  9. package/dist/authority/index.d.ts +379 -41
  10. package/dist/authority/index.js +247 -47
  11. package/dist/authority/module.d.ts +2 -1
  12. package/dist/authority/module.js +1 -1
  13. package/dist/bridge-authority.d.ts +3 -2
  14. package/dist/bridge-authority.global.js +10 -9
  15. package/dist/bridge-authority.js +11 -6
  16. package/dist/bridge.global.js +5 -5
  17. package/dist/bridge.js +3 -3
  18. package/dist/chunk-2NGXXQDS.js +1916 -0
  19. package/dist/{chunk-7QVOIHJF.js → chunk-DJ2XYETS.js} +2 -2
  20. package/dist/{chunk-Y6XHXDIK.js → chunk-MQYARUGU.js} +864 -539
  21. package/dist/{chunk-K3SF5VDS.js → chunk-OD6NRSX2.js} +3 -1
  22. package/dist/{chunk-UX3F6YTV.js → chunk-TEHGMFAG.js} +1 -1
  23. package/dist/chunk-TSYEWPVO.js +44 -0
  24. package/dist/chunk-TVTVIMIH.js +675 -0
  25. package/dist/{chunk-ZSWF4VCN.js → chunk-WEMRRIHH.js} +80 -2
  26. package/dist/chunk-YWQ3ALYY.js +69 -0
  27. package/dist/{chunk-5JGRFT2N.js → chunk-ZDGSUR6E.js} +879 -1898
  28. package/dist/{fast-client-CZ41v-oB.d.ts → fast-client--A88q0kk.d.ts} +85 -4
  29. package/dist/index.js +3 -3
  30. package/dist/level-build-CbRqrYJq.d.ts +140 -0
  31. package/dist/{module-DqtFb5wA.d.ts → module-CSpXrzFc.d.ts} +151 -400
  32. package/dist/{physics-predict-49udN3a1.d.ts → physics-predict-C7ZB1gDG.d.ts} +18 -3
  33. package/dist/protocol.d.ts +90 -2
  34. package/dist/protocol.js +17 -1
  35. package/dist/shot-world-D22tqOUT.d.ts +485 -0
  36. package/dist/world-fit/index.d.ts +549 -0
  37. package/dist/world-fit/index.js +4763 -0
  38. package/dist/world-fit/three.d.ts +77 -0
  39. package/dist/world-fit/three.js +140 -0
  40. package/package.json +15 -3
@@ -9,18 +9,20 @@ import {
9
9
  } from "./chunk-4R7C2TLH.js";
10
10
  import {
11
11
  connectAuthority
12
- } from "./chunk-Y6XHXDIK.js";
13
- import "./chunk-UX3F6YTV.js";
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-5JGRFT2N.js";
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-ZSWF4VCN.js";
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
  }