@hytopia.com/server-protocol 1.4.38-prerelease3 → 1.4.38
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/schemas/Entity.ts +0 -6
- package/schemas/UI.ts +3 -1
package/package.json
CHANGED
package/schemas/Entity.ts
CHANGED
|
@@ -18,9 +18,6 @@ export type EntitySchema = {
|
|
|
18
18
|
bt?: string; // block texture uri
|
|
19
19
|
e?: boolean; // environmental
|
|
20
20
|
h?: string[]; // model nodes to hide by partial case insensitive match of gltf node names
|
|
21
|
-
ir?: string; // input resolver function
|
|
22
|
-
irs?: object; // input resolver state; TODO: this should be a json type?
|
|
23
|
-
is?: number; // input sequence number of this entity update
|
|
24
21
|
m?: string; // model uri
|
|
25
22
|
mo?: ModelNodeOverrideSchema[]; // model node overrides, (not implemented yet)
|
|
26
23
|
mt?: string; // model texture uri (custom override)
|
|
@@ -49,9 +46,6 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
|
|
|
49
46
|
bt: { type: 'string', nullable: true },
|
|
50
47
|
e: { type: 'boolean', nullable: true },
|
|
51
48
|
h: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
52
|
-
ir: { type: 'string', nullable: true },
|
|
53
|
-
irs: { type: 'object', nullable: true },
|
|
54
|
-
is: { type: 'number', nullable: true },
|
|
55
49
|
m: { type: 'string', nullable: true },
|
|
56
50
|
mo: { type: 'array', items: { ...modelNodeOverrideSchema }, nullable: true },
|
|
57
51
|
mt: { type: 'string', nullable: true },
|
package/schemas/UI.ts
CHANGED
|
@@ -3,7 +3,8 @@ import type { JSONSchemaType } from 'ajv';
|
|
|
3
3
|
export type UISchema = {
|
|
4
4
|
p?: boolean; // pointer lock, true = lock pointer, false = unlock pointer
|
|
5
5
|
pf?: boolean; // pointer lock freeze, prevents states other than p for pointer lock
|
|
6
|
-
u?: string; // .html ui uri
|
|
6
|
+
u?: string; // .html ui uri to load
|
|
7
|
+
ua?: string; // .html ui uri to append
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
export const uiSchema: JSONSchemaType<UISchema> = {
|
|
@@ -12,6 +13,7 @@ export const uiSchema: JSONSchemaType<UISchema> = {
|
|
|
12
13
|
p: { type: 'boolean', nullable: true },
|
|
13
14
|
pf: { type: 'boolean', nullable: true },
|
|
14
15
|
u: { type: 'string', nullable: true },
|
|
16
|
+
ua: { type: 'string', nullable: true },
|
|
15
17
|
},
|
|
16
18
|
additionalProperties: false,
|
|
17
19
|
}
|