@hytopia.com/server-protocol 1.3.8 → 1.3.9

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.8",
3
+ "version": "1.3.9",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Camera.ts CHANGED
@@ -3,8 +3,7 @@ import { vectorSchema } from './Vector';
3
3
  import type { VectorSchema } from './Vector';
4
4
 
5
5
  export type CameraSchema = {
6
- f?: boolean // first person mode
7
- t?: boolean // third person mode
6
+ m?: number // camera mode - 0: first person, 1: third person
8
7
  e?: number // entity id to fix camera to
9
8
  et?: number // entity id to track
10
9
  fo?: number // film offset, + value shifts right, - shifts left
@@ -20,8 +19,7 @@ export type CameraSchema = {
20
19
  export const cameraSchema: JSONSchemaType<CameraSchema> = {
21
20
  type: 'object',
22
21
  properties: {
23
- f: { type: 'boolean', nullable: true },
24
- t: { type: 'boolean', nullable: true },
22
+ m: { type: 'number', nullable: true },
25
23
  e: { type: 'number', nullable: true },
26
24
  et: { type: 'number', nullable: true },
27
25
  fo: { type: 'number', nullable: true },