@hytopia.com/server-protocol 1.4.56-dev3 → 1.4.56-dev5

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.56-dev3",
3
+ "version": "1.4.56-dev5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -28,10 +28,13 @@ export type EntitySchema = {
28
28
  ol?: OutlineSchema; // outline options
29
29
  p?: VectorSchema; // position
30
30
  pe?: number; // parent entity id
31
+ pi?: number; // position interpolation time in milliseconds
31
32
  pn?: string; // parent node name
32
33
  r?: QuaternionSchema; // rotation
34
+ ri?: number; // rotation interpolation time in milliseconds
33
35
  rm?: boolean; // removed/remove
34
36
  s?: number; // model scale - Deprecated as of 0.11.10, use sv
37
+ si?: number; // scale interpolation time in milliseconds
35
38
  sv?: VectorSchema; // model scale vector for each axis
36
39
  t?: RgbColorSchema; // tint color
37
40
  }
@@ -53,11 +56,14 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
53
56
  o: { type: 'number', nullable: true },
54
57
  ol: { ...outlineSchema, nullable: true },
55
58
  p: { ...vectorSchema, nullable: true },
59
+ pi: { type: 'number', nullable: true },
56
60
  pe: { type: 'number', nullable: true },
57
61
  pn: { type: 'string', nullable: true },
58
62
  r: { ...quaternionSchema, nullable: true },
63
+ ri: { type: 'number', nullable: true },
59
64
  rm: { type: 'boolean', nullable: true },
60
65
  s: { type: 'number', nullable: true },
66
+ si: { type: 'number', nullable: true },
61
67
  sv: { ...vectorSchema, nullable: true },
62
68
  t: { ...rgbColorSchema, nullable: true },
63
69
  },
@@ -14,6 +14,7 @@ export type ModelNodeOverrideSchema = {
14
14
  h?: boolean; // hidden
15
15
  p?: VectorSchema; // local position
16
16
  r?: QuaternionSchema; // local rotation
17
+ rm?: boolean; // removed/remove
17
18
  s?: VectorSchema; // local scale
18
19
  }
19
20
 
@@ -26,6 +27,7 @@ export const modelNodeOverrideSchema: JSONSchemaType<ModelNodeOverrideSchema> =
26
27
  h: { type: 'boolean', nullable: true },
27
28
  p: { ...vectorSchema, nullable: true },
28
29
  r: { ...quaternionSchema, nullable: true },
30
+ rm: { type: 'boolean', nullable: true },
29
31
  s: { ...vectorSchema, nullable: true },
30
32
  },
31
33
  required: [ 'n' ],