@rydr/game-sdk 1.15.0 → 1.16.0
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.
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const RYDR_PROTOCOL_VERSION: 6;
|
|
10
10
|
/** Semver of this SDK build. Sent in the handshake for telemetry/debugging. */
|
|
11
|
-
export declare const RYDR_SDK_VERSION = "1.
|
|
11
|
+
export declare const RYDR_SDK_VERSION = "1.16.0";
|
|
12
12
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/protocol/version.js
CHANGED
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
// the `input.button` `name` values changed). Held-state query (`isDown`/`buttonsDown`) is additive.
|
|
13
13
|
export const RYDR_PROTOCOL_VERSION = 6;
|
|
14
14
|
/** Semver of this SDK build. Sent in the handshake for telemetry/debugging. */
|
|
15
|
-
export const RYDR_SDK_VERSION = "1.
|
|
15
|
+
export const RYDR_SDK_VERSION = "1.16.0";
|
|
16
16
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* World types — a shared 3D environment authored in the platform world editor and loadable by
|
|
3
|
-
* any game via `session.listWorlds()` / `session.getWorld(id)`.
|
|
4
|
-
* `
|
|
5
|
-
* `
|
|
3
|
+
* any game via `session.listWorlds()` / `session.getWorld(id)`. These are the single source of
|
|
4
|
+
* truth: `@rydr/core-world-editor` imports them (it does not redefine them). The on-disk format
|
|
5
|
+
* is a `WorldMapDelta`: a base glb plus modifications, added objects, and optional groups (each
|
|
6
|
+
* referencing a glb by URL).
|
|
6
7
|
*/
|
|
7
8
|
/** Modification to an existing object in the base map. */
|
|
8
9
|
export interface WorldObjectMod {
|
|
@@ -24,11 +25,24 @@ export interface WorldAddedObject {
|
|
|
24
25
|
rotation: [number, number, number, number];
|
|
25
26
|
scale: [number, number, number];
|
|
26
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* A named set of objects that transform together as one rigid unit. Pure editor metadata — NOT a
|
|
30
|
+
* three.js re-parenting: members stay flat in the scene with absolute world-space transforms.
|
|
31
|
+
* `memberIds` use the delta's own identities: a base prop by its `WorldObjectMod.name`, an added
|
|
32
|
+
* object by its `WorldAddedObject.id`.
|
|
33
|
+
*/
|
|
34
|
+
export interface WorldObjectGroup {
|
|
35
|
+
id: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
memberIds: string[];
|
|
38
|
+
}
|
|
27
39
|
/** Changes to a base map: small and self-describing. `baseMap` is a glb URL (or "" for none). */
|
|
28
40
|
export interface WorldMapDelta {
|
|
29
41
|
baseMap: string;
|
|
30
42
|
modifications: WorldObjectMod[];
|
|
31
43
|
addedObjects: WorldAddedObject[];
|
|
44
|
+
/** Object groups (optional — absent on worlds saved before grouping existed). */
|
|
45
|
+
groups?: WorldObjectGroup[];
|
|
32
46
|
}
|
|
33
47
|
/** Optional lighting/fog for a world. */
|
|
34
48
|
export interface WorldEnv {
|
|
@@ -43,7 +57,10 @@ export interface WorldEnv {
|
|
|
43
57
|
keyAzimuthDeg: number;
|
|
44
58
|
keyElevationDeg: number;
|
|
45
59
|
}
|
|
46
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* A platform world: a shared environment any game can load and render. `version` is left open
|
|
62
|
+
* (`number`, not a literal) so a game on an older SDK can still read a world written by a newer one.
|
|
63
|
+
*/
|
|
47
64
|
export interface CoreWorld {
|
|
48
65
|
version: number;
|
|
49
66
|
id: string;
|
|
@@ -53,4 +70,15 @@ export interface CoreWorld {
|
|
|
53
70
|
createdAt: number;
|
|
54
71
|
updatedAt: number;
|
|
55
72
|
}
|
|
73
|
+
/** Cross-game shared library entry — a standalone baked .glb on R2 that any game can GLTFLoad. */
|
|
74
|
+
export interface CatalogItem {
|
|
75
|
+
id: string;
|
|
76
|
+
label: string;
|
|
77
|
+
category: string;
|
|
78
|
+
glbUrl: string;
|
|
79
|
+
thumbnailUrl?: string;
|
|
80
|
+
createdAt: number;
|
|
81
|
+
}
|
|
82
|
+
/** The objectName used for the root of a baked single-object catalog glb. */
|
|
83
|
+
export declare const CATALOG_ROOT_OBJECT = "root";
|
|
56
84
|
//# sourceMappingURL=worlds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worlds.d.ts","sourceRoot":"","sources":["../../src/protocol/worlds.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"worlds.d.ts","sourceRoot":"","sources":["../../src/protocol/worlds.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,kGAAkG;AAClG,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAA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D environment authored in the platform world editor and loadable by
|
|
3
|
-
* any game via `session.listWorlds()` / `session.getWorld(id)`.
|
|
4
|
-
* `
|
|
5
|
-
* `
|
|
3
|
+
* any game via `session.listWorlds()` / `session.getWorld(id)`. These are the single source of
|
|
4
|
+
* truth: `@rydr/core-world-editor` imports them (it does not redefine them). The on-disk format
|
|
5
|
+
* is a `WorldMapDelta`: a base glb plus modifications, added objects, and optional groups (each
|
|
6
|
+
* referencing a glb by URL).
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
/** The objectName used for the root of a baked single-object catalog glb. */
|
|
9
|
+
export const CATALOG_ROOT_OBJECT = "root";
|
|
8
10
|
//# sourceMappingURL=worlds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worlds.js","sourceRoot":"","sources":["../../src/protocol/worlds.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"worlds.js","sourceRoot":"","sources":["../../src/protocol/worlds.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgFH,6EAA6E;AAC7E,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC"}
|