@hytopia.com/server-protocol 1.3.1 → 1.3.2

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 +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Audio.ts CHANGED
@@ -10,8 +10,10 @@ 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
- of?: number; // offset
13
+ o?: number; // offset
14
14
  p?: VectorSchema; // spatial position of audio
15
+ pa?: boolean; // pause
16
+ pl?: boolean; // play
15
17
  pr?: number; // playback rate (0+)
16
18
  r?: boolean; // restart
17
19
  rd?: number; // reference distance
@@ -30,9 +32,10 @@ export const audioSchema: JSONSchemaType<AudioSchema> = {
30
32
  di: { type: 'number', minimum: 0, nullable: true },
31
33
  e: { type: 'number', nullable: true },
32
34
  l: { type: 'boolean', nullable: true },
33
- o: { type: 'boolean', nullable: true },
34
- of: { type: 'number', nullable: true },
35
+ o: { type: 'number', nullable: true },
35
36
  p: { ...vectorSchema, nullable: true },
37
+ pa: { type: 'boolean', nullable: true },
38
+ pl: { type: 'boolean', nullable: true },
36
39
  pr: { type: 'number', minimum: 0, nullable: true },
37
40
  r: { type: 'boolean', nullable: true },
38
41
  rd: { type: 'number', nullable: true },