@hytopia.com/server-protocol 1.4.38-prerelease3 → 1.4.38-prerelease4

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/World.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.4.38-prerelease3",
3
+ "version": "1.4.38-prerelease4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/World.ts CHANGED
@@ -14,6 +14,7 @@ export type WorldSchema = {
14
14
  fc?: RgbColorSchema; // fog color
15
15
  ff?: number; // fog far
16
16
  fn?: number; // fog near
17
+ g?: VectorSchema; // gravity
17
18
  n?: string; // name
18
19
  s?: string; // skyboxUri
19
20
  si?: number; // skybox intensity
@@ -32,6 +33,7 @@ export const worldSchema: JSONSchemaType<WorldSchema> = {
32
33
  fc: { ...rgbColorSchema, nullable: true },
33
34
  ff: { type: 'number', nullable: true },
34
35
  fn: { type: 'number', nullable: true },
36
+ g: { ...vectorSchema, nullable: true },
35
37
  n: { type: 'string', nullable: true },
36
38
  s: { type: 'string', nullable: true },
37
39
  si: { type: 'number', nullable: true },