@hytopia.com/server-protocol 1.4.43 → 1.4.45

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.43",
3
+ "version": "1.4.45",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,11 +1,13 @@
1
1
  import type { JSONSchemaType } from 'ajv';
2
2
 
3
3
  export type BlockTypeSchema = {
4
- i: number; // block type id
5
- l?: boolean; // liquid
6
- ll?: number; // light level
7
- n?: string; // name
8
- t?: string; // textureUri
4
+ i: number; // block type id
5
+ l?: boolean; // liquid
6
+ ll?: number; // light level
7
+ n?: string; // name
8
+ t?: string; // textureUri
9
+ ti?: Uint32Array | number[]; // trimesh-based block indices
10
+ tv?: Float32Array | number[]; // trimesh-based block vertices
9
11
  }
10
12
 
11
13
  export const blockTypeSchema: JSONSchemaType<BlockTypeSchema> = {
@@ -16,7 +18,9 @@ export const blockTypeSchema: JSONSchemaType<BlockTypeSchema> = {
16
18
  ll: { type: 'number', nullable: true },
17
19
  n: { type: 'string', nullable: true },
18
20
  t: { type: 'string', nullable: true },
21
+ ti: { type: 'array', items: { type: 'number' }, nullable: true },
22
+ tv: { type: 'array', items: { type: 'number' }, nullable: true },
19
23
  },
20
24
  required: [ 'i' ],
21
25
  additionalProperties: false,
22
- }
26
+ };