@hytopia.com/server-protocol 1.0.47 → 1.0.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.0.47",
3
+ "version": "1.0.49",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -8,6 +8,7 @@ export type EntitySchema = {
8
8
  f?: boolean; // focused
9
9
  fs?: boolean; // full state
10
10
  m?: string; // model uri
11
+ a?: string[]; // model animations
11
12
  n?: string; // name
12
13
  r?: RigidBodySchema; // rigid body
13
14
  rm?: boolean; // removed/remove
@@ -22,6 +23,7 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
22
23
  f: { type: 'boolean', nullable: true },
23
24
  fs: { type: 'boolean', nullable: true },
24
25
  m: { type: 'string', nullable: true },
26
+ a: { type: 'array', items: { type: 'string' }, nullable: true },
25
27
  n: { type: 'string', nullable: true },
26
28
  r: { ...rigidBodySchema, nullable: true },
27
29
  rm: { type: 'boolean', nullable: true },