@hytopia.com/server-protocol 1.0.49 → 1.0.51

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.49",
3
+ "version": "1.0.51",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -8,7 +8,9 @@ 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
+ a?: string[]; // animations looped
12
+ o?: string[]; // animations one shot
13
+ s?: string[]; // animations stop
12
14
  n?: string; // name
13
15
  r?: RigidBodySchema; // rigid body
14
16
  rm?: boolean; // removed/remove
@@ -24,6 +26,8 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
24
26
  fs: { type: 'boolean', nullable: true },
25
27
  m: { type: 'string', nullable: true },
26
28
  a: { type: 'array', items: { type: 'string' }, nullable: true },
29
+ o: { type: 'array', items: { type: 'string' }, nullable: true },
30
+ s: { type: 'array', items: { type: 'string' }, nullable: true },
27
31
  n: { type: 'string', nullable: true },
28
32
  r: { ...rigidBodySchema, nullable: true },
29
33
  rm: { type: 'boolean', nullable: true },