@hytopia.com/server-protocol 1.4.56-dev4 → 1.4.56-dev5
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 +6 -0
package/package.json
CHANGED
package/schemas/Entity.ts
CHANGED
|
@@ -28,10 +28,13 @@ export type EntitySchema = {
|
|
|
28
28
|
ol?: OutlineSchema; // outline options
|
|
29
29
|
p?: VectorSchema; // position
|
|
30
30
|
pe?: number; // parent entity id
|
|
31
|
+
pi?: number; // position interpolation time in milliseconds
|
|
31
32
|
pn?: string; // parent node name
|
|
32
33
|
r?: QuaternionSchema; // rotation
|
|
34
|
+
ri?: number; // rotation interpolation time in milliseconds
|
|
33
35
|
rm?: boolean; // removed/remove
|
|
34
36
|
s?: number; // model scale - Deprecated as of 0.11.10, use sv
|
|
37
|
+
si?: number; // scale interpolation time in milliseconds
|
|
35
38
|
sv?: VectorSchema; // model scale vector for each axis
|
|
36
39
|
t?: RgbColorSchema; // tint color
|
|
37
40
|
}
|
|
@@ -53,11 +56,14 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
|
|
|
53
56
|
o: { type: 'number', nullable: true },
|
|
54
57
|
ol: { ...outlineSchema, nullable: true },
|
|
55
58
|
p: { ...vectorSchema, nullable: true },
|
|
59
|
+
pi: { type: 'number', nullable: true },
|
|
56
60
|
pe: { type: 'number', nullable: true },
|
|
57
61
|
pn: { type: 'string', nullable: true },
|
|
58
62
|
r: { ...quaternionSchema, nullable: true },
|
|
63
|
+
ri: { type: 'number', nullable: true },
|
|
59
64
|
rm: { type: 'boolean', nullable: true },
|
|
60
65
|
s: { type: 'number', nullable: true },
|
|
66
|
+
si: { type: 'number', nullable: true },
|
|
61
67
|
sv: { ...vectorSchema, nullable: true },
|
|
62
68
|
t: { ...rgbColorSchema, nullable: true },
|
|
63
69
|
},
|