@hytopia.com/server-protocol 1.0.46 → 1.0.48

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.46",
3
+ "version": "1.0.48",
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 animation
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: 'string', nullable: true },
25
27
  n: { type: 'string', nullable: true },
26
28
  r: { ...rigidBodySchema, nullable: true },
27
29
  rm: { type: 'boolean', nullable: true },
@@ -9,7 +9,6 @@ import type { VectorBooleanSchema } from './VectorBoolean';
9
9
  import type { QuaternionSchema } from './Quaternion';
10
10
 
11
11
  export type RigidBodySchema = {
12
- i: number; // id
13
12
  ad?: number; // angular dampening
14
13
  am?: number; // additional mass
15
14
  as?: number; // additional solver iterations
@@ -34,7 +33,6 @@ export type RigidBodySchema = {
34
33
  export const rigidBodySchema: JSONSchemaType<RigidBodySchema> = {
35
34
  type: 'object',
36
35
  properties: {
37
- i: { type: 'number' },
38
36
  ad: { type: 'number', nullable: true },
39
37
  am: { type: 'number', nullable: true },
40
38
  as: { type: 'number', nullable: true },
@@ -55,6 +53,5 @@ export const rigidBodySchema: JSONSchemaType<RigidBodySchema> = {
55
53
  scp: { type: 'number', nullable: true },
56
54
  t: { ...vectorSchema, nullable: true },
57
55
  },
58
- required: [ 'i' ],
59
56
  additionalProperties: false,
60
57
  }