@hytopia.com/server-protocol 1.3.10 → 1.3.12

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.3.10",
3
+ "version": "1.3.12",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Camera.ts CHANGED
@@ -3,14 +3,13 @@ import { vectorSchema } from './Vector';
3
3
  import type { VectorSchema } from './Vector';
4
4
 
5
5
  export type CameraSchema = {
6
- m?: number // camera mode - 0: first person, 1: third person
7
- e?: number // entity id to fix camera to
6
+ m?: number // camera mode - 0: first person, 1: third person
7
+ e?: number // entity id to attach camera to
8
8
  et?: number // entity id to track
9
- el?: number // entity id to look at
10
9
  fo?: number // film offset, + value shifts right, - shifts left
11
10
  ffo?: number // first person forward offset, moves camera in (+) or out (-) relative to camera position
12
11
  fv?: number // field of view
13
- p?: VectorSchema // position to fix camera at
12
+ p?: VectorSchema // position to attach camera to
14
13
  pt?: VectorSchema // position to track
15
14
  pl?: VectorSchema // position to look at
16
15
  h?: string[] // player model parts to hide by partial case insensitive match of gltf node names
@@ -24,7 +23,6 @@ export const cameraSchema: JSONSchemaType<CameraSchema> = {
24
23
  m: { type: 'number', nullable: true },
25
24
  e: { type: 'number', nullable: true },
26
25
  et: { type: 'number', nullable: true },
27
- el: { type: 'number', nullable: true },
28
26
  fo: { type: 'number', nullable: true },
29
27
  ffo: { type: 'number', nullable: true },
30
28
  fv: { type: 'number', nullable: true },
package/schemas/Entity.ts CHANGED
@@ -9,7 +9,6 @@ export type EntitySchema = {
9
9
  al?: string[]; // model animations looped
10
10
  ao?: string[]; // model animations one shot
11
11
  as?: string[]; // model animations stop
12
- f?: boolean; // focused
13
12
  m?: string; // model uri
14
13
  n?: string; // name
15
14
  p?: VectorSchema; // position
@@ -25,7 +24,6 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
25
24
  al: { type: 'array', items: { type: 'string' }, nullable: true },
26
25
  ao: { type: 'array', items: { type: 'string' }, nullable: true },
27
26
  as: { type: 'array', items: { type: 'string' }, nullable: true },
28
- f: { type: 'boolean', nullable: true },
29
27
  m: { type: 'string', nullable: true },
30
28
  n: { type: 'string', nullable: true },
31
29
  p: { ...vectorSchema, nullable: true },