@hytopia.com/server-protocol 1.4.48 → 1.4.50
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/Chunk.ts +2 -2
- package/schemas/ParticleEmitter.ts +2 -0
package/package.json
CHANGED
package/schemas/Chunk.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { VectorSchema } from './Vector';
|
|
|
5
5
|
export type ChunkSchema = {
|
|
6
6
|
c: VectorSchema; // chunk origin coordinate [ 16n, 16n, 16n ]
|
|
7
7
|
b?: Uint8Array | number[]; // block ids in chunk, 16^3 entries, registry block ids 1-255, 0 = none
|
|
8
|
-
r?: number[]; // block rotations, sparse array of block
|
|
8
|
+
r?: number[]; // block rotations, sparse array of block id index -> block rotation index
|
|
9
9
|
rm?: boolean; // removed/remove
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -28,7 +28,7 @@ export const chunkSchema: JSONSchemaType<ChunkSchema> = {
|
|
|
28
28
|
type: 'array',
|
|
29
29
|
items: { type: 'number' },
|
|
30
30
|
minItems: 0,
|
|
31
|
-
maxItems: 8192, // 4096 blocks per chunk, multiples of 2 for index,
|
|
31
|
+
maxItems: 8192, // 4096 blocks per chunk, multiples of 2 for block id index, block rotation index
|
|
32
32
|
nullable: true,
|
|
33
33
|
},
|
|
34
34
|
rm: { type: 'boolean', nullable: true },
|
|
@@ -20,6 +20,7 @@ export type ParticleEmitterSchema = {
|
|
|
20
20
|
en?: string; // entity attachment node name, follows entity node name
|
|
21
21
|
g?: VectorSchema; // gravity per axis as vector3
|
|
22
22
|
l?: number; // lifetime, in seconds
|
|
23
|
+
le?: boolean; // lock to emitter, particles follow emitter position
|
|
23
24
|
lv?: number; // lifetime variance, in seconds
|
|
24
25
|
mp?: number; // max particles
|
|
25
26
|
o?: VectorSchema; // offset
|
|
@@ -61,6 +62,7 @@ export const particleEmitterSchema: JSONSchemaType<ParticleEmitterSchema> = {
|
|
|
61
62
|
en: { type: 'string', nullable: true },
|
|
62
63
|
g: { ...vectorSchema, nullable: true },
|
|
63
64
|
l: { type: 'number', nullable: true },
|
|
65
|
+
le: { type: 'boolean', nullable: true },
|
|
64
66
|
lv: { type: 'number', nullable: true },
|
|
65
67
|
mp: { type: 'number', nullable: true },
|
|
66
68
|
o: { ...vectorSchema, nullable: true },
|