@hytopia.com/server-protocol 1.3.2 → 1.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Audio.ts +3 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Audio.ts CHANGED
@@ -10,15 +10,14 @@ export type AudioSchema = {
10
10
  di?: number; // distortion (0 to 1, or 1+)
11
11
  e?: number; // entity attachment, follows entity id
12
12
  l?: boolean; // loop
13
- o?: number; // offset
13
+ o?: number; // offset
14
14
  p?: VectorSchema; // spatial position of audio
15
15
  pa?: boolean; // pause
16
16
  pl?: boolean; // play
17
17
  pr?: number; // playback rate (0+)
18
18
  r?: boolean; // restart
19
19
  rd?: number; // reference distance
20
- s?: boolean; // stop
21
- st?: number; // start tick
20
+ s?: number; // start tick
22
21
  v?: number; // volume (0 to 1)
23
22
  }
24
23
 
@@ -39,8 +38,7 @@ export const audioSchema: JSONSchemaType<AudioSchema> = {
39
38
  pr: { type: 'number', minimum: 0, nullable: true },
40
39
  r: { type: 'boolean', nullable: true },
41
40
  rd: { type: 'number', nullable: true },
42
- s: { type: 'boolean', nullable: true },
43
- st: { type: 'number', nullable: true },
41
+ s: { type: 'number', nullable: true },
44
42
  v: { type: 'number', minimum: 0, maximum: 1, nullable: true },
45
43
  },
46
44
  required: ['i'],