@hytopia.com/server-protocol 1.4.38-prerelease4 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.4.38-prerelease4",
3
+ "version": "1.4.38",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
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
  }
package/schemas/World.ts CHANGED
@@ -14,7 +14,6 @@ export type WorldSchema = {
14
14
  fc?: RgbColorSchema; // fog color
15
15
  ff?: number; // fog far
16
16
  fn?: number; // fog near
17
- g?: VectorSchema; // gravity
18
17
  n?: string; // name
19
18
  s?: string; // skyboxUri
20
19
  si?: number; // skybox intensity
@@ -33,7 +32,6 @@ export const worldSchema: JSONSchemaType<WorldSchema> = {
33
32
  fc: { ...rgbColorSchema, nullable: true },
34
33
  ff: { type: 'number', nullable: true },
35
34
  fn: { type: 'number', nullable: true },
36
- g: { ...vectorSchema, nullable: true },
37
35
  n: { type: 'string', nullable: true },
38
36
  s: { type: 'string', nullable: true },
39
37
  si: { type: 'number', nullable: true },