@hytopia.com/server-protocol 1.3.24 → 1.3.26

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.24",
3
+ "version": "1.3.26",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -10,6 +10,7 @@ export type EntitySchema = {
10
10
  i: number; // entity id
11
11
  al?: string[]; // model animations looped
12
12
  ao?: string[]; // model animations one shot
13
+ ap?: number; // model animations playback rate
13
14
  as?: string[]; // model animations stop
14
15
  bh?: VectorSchema; // block half extents
15
16
  bt?: string; // block texture uri
@@ -29,6 +30,7 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
29
30
  i: { type: 'number' },
30
31
  al: { type: 'array', items: { type: 'string' }, nullable: true },
31
32
  ao: { type: 'array', items: { type: 'string' }, nullable: true },
33
+ ap: { type: 'number', nullable: true },
32
34
  as: { type: 'array', items: { type: 'string' }, nullable: true },
33
35
  bh: { ...vectorSchema, nullable: true },
34
36
  bt: { type: 'string', nullable: true },
package/schemas/UI.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  import type { JSONSchemaType } from 'ajv';
2
2
 
3
3
  export type UISchema = {
4
- u?: string; // .html ui uri
4
+ p?: boolean; // pointer lock, true = lock pointer, false = unlock pointer
5
+ u?: string; // .html ui uri
5
6
  };
6
7
 
7
8
  export const uiSchema: JSONSchemaType<UISchema> = {
8
9
  type: 'object',
9
10
  properties: {
11
+ p: { type: 'boolean', nullable: true },
10
12
  u: { type: 'string', nullable: true },
11
13
  },
12
14
  additionalProperties: false,