@hytopia.com/server-protocol 1.0.42 → 1.0.44

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.42",
3
+ "version": "1.0.44",
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 },
@@ -6,10 +6,10 @@ import type { JSONSchemaType } from 'ajv';
6
6
  import type { ColliderSchema } from './Collider';
7
7
  import type { VectorSchema } from './Vector';
8
8
  import type { VectorBooleanSchema } from './VectorBoolean';
9
- import { QuaternionSchema } from './Quaternion';
9
+ import type { QuaternionSchema } from './Quaternion';
10
10
 
11
11
  export type RigidBodySchema = {
12
- ad?: number; // angular dampening
12
+ ad?: number; // angular dampening
13
13
  am?: number; // additional mass
14
14
  as?: number; // additional solver iterations
15
15
  av?: VectorSchema; // angular velocity