@hytopia.com/server-protocol 1.3.29 → 1.3.31

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.3.29",
3
+ "version": "1.3.31",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -5,6 +5,7 @@ export type BlockTypeSchema = {
5
5
  l?: boolean; // liquid
6
6
  n?: string; // name
7
7
  t?: string; // textureUri
8
+ tr?: boolean; // transparent
8
9
  }
9
10
 
10
11
  export const blockTypeSchema: JSONSchemaType<BlockTypeSchema> = {
@@ -14,6 +15,7 @@ export const blockTypeSchema: JSONSchemaType<BlockTypeSchema> = {
14
15
  l: { type: 'boolean', nullable: true },
15
16
  n: { type: 'string', nullable: true },
16
17
  t: { type: 'string', nullable: true },
18
+ tr: { type: 'boolean', nullable: true },
17
19
  },
18
20
  required: [ 'i' ],
19
21
  additionalProperties: false,
package/schemas/Entity.ts CHANGED
@@ -17,6 +17,7 @@ export type EntitySchema = {
17
17
  h?: string[]; // model parts to hide
18
18
  m?: string; // model uri
19
19
  n?: string; // name
20
+ o?: number; // opacity
20
21
  p?: VectorSchema; // position
21
22
  r?: QuaternionSchema; // rotation
22
23
  rm?: boolean; // removed/remove
@@ -37,6 +38,7 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
37
38
  h: { type: 'array', items: { type: 'string' }, nullable: true },
38
39
  m: { type: 'string', nullable: true },
39
40
  n: { type: 'string', nullable: true },
41
+ o: { type: 'number', minimum: 0, maximum: 1, nullable: true },
40
42
  p: { ...vectorSchema, nullable: true },
41
43
  r: { ...quaternionSchema, nullable: true },
42
44
  rm: { type: 'boolean', nullable: true },
@@ -8,6 +8,7 @@ export type SceneUISchema = {
8
8
  o?: VectorSchema; // offset
9
9
  p?: VectorSchema; // spatial position of ui
10
10
  rm?: boolean; // remove/removed
11
+ s?: object; // state
11
12
  t?: string; // template id
12
13
  }
13
14
 
@@ -19,6 +20,7 @@ export const sceneUISchema: JSONSchemaType<SceneUISchema> = {
19
20
  o: { ...vectorSchema, nullable: true },
20
21
  p: { ...vectorSchema, nullable: true },
21
22
  rm: { type: 'boolean', nullable: true },
23
+ s: { type: 'object', nullable: true },
22
24
  t: { type: 'string', nullable: true },
23
25
  },
24
26
  required: ['i'],