@hytopia.com/server-protocol 1.0.43 → 1.0.45

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.43",
3
+ "version": "1.0.45",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -3,16 +3,16 @@ import type { JSONSchemaType } from 'ajv';
3
3
  import type { ColliderDescSchema } from './ColliderDesc';
4
4
 
5
5
  export type ColliderSchema = {
6
- h: number; // handle
7
- mk?: boolean; // created/make
8
- rm?: boolean; // removed/remove
6
+ h: number; // handle
7
+ fs?: boolean; // full state
8
+ rm?: boolean; // removed/remove
9
9
  } & ColliderDescSchema;
10
10
 
11
11
  export const colliderSchema: JSONSchemaType<ColliderSchema> = {
12
12
  type: 'object',
13
13
  properties: {
14
14
  h: { type: 'number', nullable: true },
15
- mk: { type: 'boolean', nullable: true },
15
+ fs: { type: 'boolean', nullable: true },
16
16
  rm: { type: 'boolean', nullable: true },
17
17
  ...colliderDescSchema.properties
18
18
  },
package/schemas/Entity.ts CHANGED
@@ -6,8 +6,8 @@ export type EntitySchema = {
6
6
  wi: number; // world id
7
7
  i: number; // entity id
8
8
  f?: boolean; // focused
9
+ fs?: boolean; // full state
9
10
  m?: string; // model uri
10
- mk?: boolean; // created/make
11
11
  n?: string; // name
12
12
  r?: RigidBodySchema; // rigid body
13
13
  rm?: boolean; // removed/remove
@@ -20,8 +20,8 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
20
20
  wi: { type: 'number' },
21
21
  i: { type: 'number' },
22
22
  f: { type: 'boolean', nullable: true },
23
+ fs: { type: 'boolean', nullable: true },
23
24
  m: { type: 'string', nullable: true },
24
- mk: { type: 'boolean', nullable: true },
25
25
  n: { type: 'string', nullable: true },
26
26
  r: { ...rigidBodySchema, nullable: true },
27
27
  rm: { type: 'boolean', nullable: true },
@@ -20,6 +20,7 @@ export type RigidBodySchema = {
20
20
  en?: boolean; // enabled
21
21
  er?: VectorBooleanSchema; // enabled rotations
22
22
  et?: VectorBooleanSchema; // enabled translations
23
+ fs?: boolean; // full state
23
24
  g?: number; // gravity scaling
24
25
  ld?: number; // linear damping
25
26
  lv?: VectorSchema; // linear velocity
@@ -43,6 +44,7 @@ export const rigidBodySchema: JSONSchemaType<RigidBodySchema> = {
43
44
  en: { type: 'boolean', nullable: true },
44
45
  er: { ...vectorBooleanSchema, nullable: true },
45
46
  et: { ...vectorBooleanSchema, nullable: true },
47
+ fs: { type: 'boolean', nullable: true },
46
48
  g: { type: 'number', nullable: true },
47
49
  ld: { type: 'number', nullable: true },
48
50
  lv: { ...vectorSchema, nullable: true },