@hytopia.com/server-protocol 1.1.0 → 1.1.1

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.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -7,11 +7,11 @@ import type { VectorSchema } from './Vector';
7
7
 
8
8
  export type EntitySchema = {
9
9
  i: number; // entity id
10
- f?: boolean; // focused
11
- m?: string; // model uri
12
10
  al?: string[]; // animations looped
13
11
  ao?: string[]; // animations one shot
14
12
  as?: string[]; // animations stop
13
+ f?: boolean; // focused
14
+ m?: string; // model uri
15
15
  n?: string; // name
16
16
  p?: VectorSchema; // position
17
17
  r?: QuaternionSchema; // rotation
package/schemas/World.ts CHANGED
@@ -5,6 +5,7 @@ export type WorldSchema = {
5
5
  f?: boolean; // focused
6
6
  n?: string; // name
7
7
  s?: string; // skyboxUri
8
+ t?: number; // timestep (seconds)
8
9
  };
9
10
 
10
11
  export const worldSchema: JSONSchemaType<WorldSchema> = {
@@ -13,7 +14,8 @@ export const worldSchema: JSONSchemaType<WorldSchema> = {
13
14
  i: { type: 'number' },
14
15
  f: { type: 'boolean', nullable: true },
15
16
  n: { type: 'string', nullable: true },
16
- s: { type: 'string', nullable: true }
17
+ s: { type: 'string', nullable: true },
18
+ t: { type: 'number', nullable: true },
17
19
  },
18
20
  required: [ 'i' ],
19
21
  additionalProperties: false,