@hytopia.com/server-protocol 1.4.43-dev → 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 +1 -1
- package/schemas/BlockType.ts +10 -6
- package/schemas/Entity.ts +2 -2
package/package.json
CHANGED
package/schemas/BlockType.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { JSONSchemaType } from 'ajv';
|
|
2
2
|
|
|
3
3
|
export type BlockTypeSchema = {
|
|
4
|
-
i: number;
|
|
5
|
-
l?: boolean;
|
|
6
|
-
ll?: number;
|
|
7
|
-
n?: string;
|
|
8
|
-
t?: string;
|
|
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
|
+
};
|
package/schemas/Entity.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type EntitySchema = {
|
|
|
19
19
|
e?: boolean; // environmental
|
|
20
20
|
ec?: RgbColorSchema; // emissive color
|
|
21
21
|
ei?: number; // emissive intensity
|
|
22
|
-
h?: string[]; // model nodes to hide by partial case insensitive match of gltf node names
|
|
22
|
+
h?: string[]; // model nodes to hide by partial case insensitive match of gltf node names - merge into node overrides?
|
|
23
23
|
m?: string; // model uri
|
|
24
24
|
mo?: ModelNodeOverrideSchema[]; // model node overrides
|
|
25
25
|
mt?: string; // model texture uri (custom override)
|
|
@@ -31,7 +31,7 @@ export type EntitySchema = {
|
|
|
31
31
|
r?: QuaternionSchema; // rotation
|
|
32
32
|
rm?: boolean; // removed/remove
|
|
33
33
|
s?: number; // model scale - Deprecated as of 0.11.10, use sv
|
|
34
|
-
sn?: string[]; // model nodes to show by partial case insensitive match of gltf node names
|
|
34
|
+
sn?: string[]; // model nodes to show by partial case insensitive match of gltf node names - merge into node overrides?
|
|
35
35
|
sv?: VectorSchema; // model scale vector for each axis
|
|
36
36
|
t?: RgbColorSchema; // tint color
|
|
37
37
|
}
|