@hytopia.com/server-protocol 1.4.46 → 1.4.47
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/Block.ts +2 -0
package/package.json
CHANGED
package/schemas/Block.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { VectorSchema } from './Vector';
|
|
|
5
5
|
export type BlockSchema = {
|
|
6
6
|
i: number; // block id
|
|
7
7
|
c: VectorSchema; // block global coordinate
|
|
8
|
+
r?: number; // block rotation enum index
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
export const blockSchema: JSONSchemaType<BlockSchema> = {
|
|
@@ -12,6 +13,7 @@ export const blockSchema: JSONSchemaType<BlockSchema> = {
|
|
|
12
13
|
properties: {
|
|
13
14
|
i: { type: 'number' },
|
|
14
15
|
c: vectorSchema,
|
|
16
|
+
r: { type: 'number', nullable: true },
|
|
15
17
|
},
|
|
16
18
|
required: [ 'i', 'c' ],
|
|
17
19
|
additionalProperties: false,
|