@genex-ai/multiplayer 0.17.0 → 0.17.6
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 +692 -10
- package/README.md +265 -1
- package/dist/authority/fast-udp.d.ts +13 -0
- package/dist/authority/fast-udp.js +52 -0
- package/dist/authority/fast-webtransport.d.ts +45 -0
- package/dist/authority/fast-webtransport.js +124 -0
- package/dist/authority/index.d.ts +2333 -0
- package/dist/authority/index.js +758 -0
- package/dist/authority/module.d.ts +1 -0
- package/dist/authority/module.js +12 -0
- package/dist/bridge-authority.d.ts +100 -0
- package/dist/bridge-authority.global.js +14 -0
- package/dist/bridge-authority.js +286 -0
- package/dist/bridge-core-Dhc73GC8.d.ts +27 -0
- package/dist/bridge.d.ts +26 -20
- package/dist/bridge.global.js +7 -7
- package/dist/bridge.js +17 -48
- package/dist/chunk-4R7C2TLH.js +68 -0
- package/dist/chunk-5JGRFT2N.js +3646 -0
- package/dist/{chunk-CTDU4IJ5.js → chunk-7QVOIHJF.js} +13 -61
- package/dist/chunk-K3SF5VDS.js +27 -0
- package/dist/chunk-UX3F6YTV.js +143 -0
- package/dist/chunk-Y6XHXDIK.js +6617 -0
- package/dist/{chunk-C52XFIB6.js → chunk-ZSWF4VCN.js} +141 -4
- package/dist/fast-client-CZ41v-oB.d.ts +465 -0
- package/dist/index.d.ts +12 -13
- package/dist/index.js +3 -2
- package/dist/join-CGoInvUM.d.ts +6 -0
- package/dist/module-DqtFb5wA.d.ts +1436 -0
- package/dist/physics-predict-49udN3a1.d.ts +1208 -0
- package/dist/protocol.d.ts +137 -2
- package/dist/protocol.js +33 -1
- package/package.json +33 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ObjectControlOperation as ObjectControlOperation$1, ObjectControlReason as ObjectControlReason$1 } from './protocol.js';
|
|
2
|
+
import { A as AuthSource } from './join-CGoInvUM.js';
|
|
3
|
+
export { C as ColyseusAuth } from './join-CGoInvUM.js';
|
|
2
4
|
export { ObjectState, PlayerState, RoomState } from './schema.js';
|
|
3
5
|
import '@colyseus/schema';
|
|
4
6
|
|
|
@@ -39,18 +41,15 @@ type VoiceJoinOptions = {
|
|
|
39
41
|
speakingThreshold?: number;
|
|
40
42
|
};
|
|
41
43
|
|
|
42
|
-
type ColyseusAuth = {
|
|
43
|
-
embedToken: string;
|
|
44
|
-
};
|
|
45
|
-
type AuthSource = ColyseusAuth | (() => ColyseusAuth | undefined);
|
|
46
44
|
type ConnectOptions = {
|
|
47
|
-
/** Regional relay urls (pass `getColyseusUrls()`) — the SDK
|
|
48
|
-
* lowest-latency one; a single entry
|
|
45
|
+
/** Regional relay urls (pass `getColyseusUrls()`) — the SDK probes each and connects to the
|
|
46
|
+
* lowest-latency one (a probe that times out falls back, it never fails the join); a single entry
|
|
47
|
+
* just connects. */
|
|
49
48
|
urls: string[];
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* nearest-region play. */
|
|
49
|
+
/** Override: connect to THIS exact relay url, skipping latency selection. Relays that share
|
|
50
|
+
* presence (global matchmaking) seat players together whichever relay each enters through, so
|
|
51
|
+
* this is only needed against relays that do not — there two players meet only on one relay, and
|
|
52
|
+
* an invitee follows the inviter's region. Omit for normal nearest-region play. */
|
|
54
53
|
url?: string;
|
|
55
54
|
/** Game id — everyone who passes the same id shares a room; different ids are
|
|
56
55
|
* fully isolated. Use your project slug (or any stable per-game string). */
|
|
@@ -518,8 +517,8 @@ type Matchmaking<TState extends Record<string, unknown>> = {
|
|
|
518
517
|
type MatchmakeOptions = {
|
|
519
518
|
/** Regional relay urls (pass `getColyseusUrls()`) — pings each, connects to the lowest-latency one. */
|
|
520
519
|
urls: string[];
|
|
521
|
-
/**
|
|
522
|
-
*
|
|
520
|
+
/** Override: matchmake on THIS exact relay url, skipping latency selection — only needed against
|
|
521
|
+
* relays that do not share presence (see ConnectOptions.url). Omit for normal nearest-region play. */
|
|
523
522
|
url?: string;
|
|
524
523
|
/** Game id (your project slug/id) — isolates this game's matchmaking. */
|
|
525
524
|
room: string;
|
|
@@ -561,4 +560,4 @@ declare function createPrivate<TState extends Record<string, unknown> = never>(o
|
|
|
561
560
|
*/
|
|
562
561
|
declare function joinPrivate<TState extends Record<string, unknown> = never>(code: string, opts: MatchmakeOptions): Promise<Matchmaking<TState>>;
|
|
563
562
|
|
|
564
|
-
export {
|
|
563
|
+
export { AuthSource, type ChatApi, type ChatMessage, type ConnectOptions, type MatchStatus, type MatchmakeOptions, type Matchmaking, type MatchmakingView, type ObjectControlOperation, type ObjectControlOptions, type ObjectControlReason, type ObjectControlResult, type ObjectView, type PlayerView, type PredictSmoothing, type PrivateMatch, type Session, type SessionOptions, type VoiceApi, type VoiceJoinOptions, type VoiceParticipant, connect, createPrivate, joinPrivate, matchmake };
|
package/dist/index.js
CHANGED