@hytopia.com/server-protocol 1.4.39 → 1.4.40

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.39",
3
+ "version": "1.4.40",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -12,6 +12,10 @@ export type ParticleEmitterSchema = {
12
12
  cev?: RgbColorSchema; // color end variance, rgb color
13
13
  cs?: RgbColorSchema; // color start, rgb color
14
14
  csv?: RgbColorSchema; // color start variance, rgb color
15
+ cie?: number; // color intensity end
16
+ ciev?: number; // color intensity end variance
17
+ cis?: number; // color intensity start
18
+ cisv?: number; // color intensity start variance
15
19
  e?: number; // entity attachment, follows entity id
16
20
  en?: string; // entity attachment node name, follows entity node name
17
21
  g?: VectorSchema; // gravity per axis as vector3
@@ -49,6 +53,10 @@ export const particleEmitterSchema: JSONSchemaType<ParticleEmitterSchema> = {
49
53
  cev: { ...rgbColorSchema, nullable: true },
50
54
  cs: { ...rgbColorSchema, nullable: true },
51
55
  csv: { ...rgbColorSchema, nullable: true },
56
+ cie: { type: 'number', nullable: true },
57
+ ciev: { type: 'number', nullable: true },
58
+ cis: { type: 'number', nullable: true },
59
+ cisv: { type: 'number', nullable: true },
52
60
  e: { type: 'number', nullable: true },
53
61
  en: { type: 'string', nullable: true },
54
62
  g: { ...vectorSchema, nullable: true },
package/schemas/UI.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { JSONSchemaType } from 'ajv';
2
2
 
3
3
  export type UISchema = {
4
- p?: boolean; // pointer lock, true = lock pointer, false = unlock pointer
5
- pf?: boolean; // pointer lock freeze, prevents states other than p for pointer lock
6
- u?: string; // .html ui uri to load
7
- ua?: string[]; // .html ui uri to append
4
+ p?: boolean; // pointer lock, true = lock pointer, false = unlock pointer
5
+ pf?: boolean; // pointer lock freeze, prevents states other than p for pointer lock
6
+ u?: string; // .html ui uri to load
7
+ ua?: string[]; // .html ui uris to append
8
8
  };
9
9
 
10
10
  export const uiSchema: JSONSchemaType<UISchema> = {