@hytopia.com/server-protocol 1.3.14 → 1.3.16

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.14",
3
+ "version": "1.3.16",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -1,5 +1,7 @@
1
+ import { hexColorSchema } from './HexColor';
1
2
  import { quaternionSchema } from './Quaternion';
2
3
  import { vectorSchema } from './Vector';
4
+ import type { HexColorSchema } from './HexColor';
3
5
  import type { JSONSchemaType } from 'ajv';
4
6
  import type { QuaternionSchema } from './Quaternion';
5
7
  import type { VectorSchema } from './Vector';
@@ -17,6 +19,7 @@ export type EntitySchema = {
17
19
  r?: QuaternionSchema; // rotation
18
20
  rm?: boolean; // removed/remove
19
21
  s?: number; // model scale
22
+ t?: HexColorSchema; // tint color
20
23
  }
21
24
 
22
25
  export const entitySchema: JSONSchemaType<EntitySchema> = {
@@ -34,7 +37,8 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
34
37
  r: { ...quaternionSchema, nullable: true },
35
38
  rm: { type: 'boolean', nullable: true },
36
39
  s: { type: 'number', nullable: true },
40
+ t: { ...hexColorSchema, nullable: true },
37
41
  },
38
42
  required: [ 'i' ],
39
43
  additionalProperties: false,
40
- }
44
+ }
package/schemas/index.ts CHANGED
@@ -18,6 +18,7 @@ export * from './PhysicsDebugRaycast';
18
18
  export * from './PhysicsDebugRaycasts';
19
19
  export * from './PhysicsDebugRender';
20
20
  export * from './Quaternion';
21
+ export * from './RgbColor';
21
22
  export * from './StateRequest';
22
23
  export * from './SyncRequest';
23
24
  export * from './SyncResponse';