@hytopia.com/server-protocol 1.4.2 → 1.4.3

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.4.2",
3
+ "version": "1.4.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Camera.ts CHANGED
@@ -9,11 +9,12 @@ export type CameraSchema = {
9
9
  fo?: number // film offset, + value shifts right, - shifts left
10
10
  ffo?: number // first person forward offset, moves camera in (+) or out (-) relative to camera position
11
11
  fv?: number // field of view
12
+ h?: string[] // player model parts to hide by partial case insensitive match of gltf node names
13
+ o?: VectorSchema // offset - positional relative to target
12
14
  p?: VectorSchema // position to attach camera to
13
15
  pt?: VectorSchema // position to track
14
16
  pl?: VectorSchema // position to look at
15
- h?: string[] // player model parts to hide by partial case insensitive match of gltf node names
16
- o?: VectorSchema // offset - positional relative to target
17
+ sa?: number // shoulder angle
17
18
  z?: number // zoom
18
19
  }
19
20
 
@@ -26,11 +27,12 @@ export const cameraSchema: JSONSchemaType<CameraSchema> = {
26
27
  fo: { type: 'number', nullable: true },
27
28
  ffo: { type: 'number', nullable: true },
28
29
  fv: { type: 'number', nullable: true },
30
+ h: { type: 'array', items: { type: 'string' }, nullable: true },
31
+ o: { ...vectorSchema, nullable: true },
29
32
  p: { ...vectorSchema, nullable: true },
30
33
  pt: { ...vectorSchema, nullable: true },
31
34
  pl: { ...vectorSchema, nullable: true },
32
- h: { type: 'array', items: { type: 'string' }, nullable: true },
33
- o: { ...vectorSchema, nullable: true },
35
+ sa: { type: 'number', nullable: true },
34
36
  z: { type: 'number', nullable: true },
35
37
  },
36
38
  additionalProperties: false,