@hytopia.com/server-protocol 1.1.4 → 1.1.5
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/Entity.ts +5 -8
package/package.json
CHANGED
package/schemas/Entity.ts
CHANGED
|
@@ -4,20 +4,18 @@ import type { JSONSchemaType } from 'ajv';
|
|
|
4
4
|
import type { QuaternionSchema } from './Quaternion';
|
|
5
5
|
import type { VectorSchema } from './Vector';
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
export type EntitySchema = {
|
|
9
8
|
i: number; // entity id
|
|
10
|
-
al?: string[]; // animations looped
|
|
11
|
-
ao?: string[]; // animations one shot
|
|
12
|
-
as?: string[]; // animations stop
|
|
13
|
-
b?: VectorSchema; // model visual bounding box half extents
|
|
9
|
+
al?: string[]; // model animations looped
|
|
10
|
+
ao?: string[]; // model animations one shot
|
|
11
|
+
as?: string[]; // model animations stop
|
|
14
12
|
f?: boolean; // focused
|
|
15
13
|
m?: string; // model uri
|
|
16
14
|
n?: string; // name
|
|
17
15
|
p?: VectorSchema; // position
|
|
18
16
|
r?: QuaternionSchema; // rotation
|
|
19
17
|
rm?: boolean; // removed/remove
|
|
20
|
-
s?:
|
|
18
|
+
s?: number; // model scale
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
export const entitySchema: JSONSchemaType<EntitySchema> = {
|
|
@@ -27,14 +25,13 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
|
|
|
27
25
|
al: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
28
26
|
ao: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
29
27
|
as: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
30
|
-
b: { ...vectorSchema, nullable: true },
|
|
31
28
|
f: { type: 'boolean', nullable: true },
|
|
32
29
|
m: { type: 'string', nullable: true },
|
|
33
30
|
n: { type: 'string', nullable: true },
|
|
34
31
|
p: { ...vectorSchema, nullable: true },
|
|
35
32
|
r: { ...quaternionSchema, nullable: true },
|
|
36
33
|
rm: { type: 'boolean', nullable: true },
|
|
37
|
-
s: {
|
|
34
|
+
s: { type: 'number', nullable: true },
|
|
38
35
|
},
|
|
39
36
|
required: [ 'i' ],
|
|
40
37
|
additionalProperties: false,
|