@hytopia.com/server-protocol 1.3.48 → 1.3.49

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.3.48",
3
+ "version": "1.3.49",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -23,6 +23,7 @@ export type EntitySchema = {
23
23
  o?: number; // opacity
24
24
  p?: VectorSchema; // position
25
25
  pe?: number; // parent entity id
26
+ pi?: string; // player id
26
27
  pn?: string; // parent node name
27
28
  r?: QuaternionSchema; // rotation
28
29
  rm?: boolean; // removed/remove
@@ -47,6 +48,7 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
47
48
  o: { type: 'number', nullable: true },
48
49
  p: { ...vectorSchema, nullable: true },
49
50
  pe: { type: 'number', nullable: true },
51
+ pi: { type: 'string', nullable: true },
50
52
  pn: { type: 'string', nullable: true },
51
53
  r: { ...quaternionSchema, nullable: true },
52
54
  rm: { type: 'boolean', nullable: true },