@hytopia.com/server-protocol 1.0.51 → 1.0.53

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.0.51",
3
+ "version": "1.0.53",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -4,7 +4,8 @@ import type { VectorSchema } from './Vector';
4
4
 
5
5
  export type SimulationSchema = {
6
6
  wi: number; // world id
7
- t?: number; // tickRate (ticks per second)
7
+ t?: number; // timestep (seconds)
8
+ r?: number; // tick rate (ticks per second)
8
9
  g?: VectorSchema; // gravity
9
10
  };
10
11
 
@@ -13,6 +14,7 @@ export const simulationSchema: JSONSchemaType<SimulationSchema> = {
13
14
  properties: {
14
15
  wi: { type: 'number' },
15
16
  t: { type: 'number', nullable: true },
17
+ r: { type: 'number', nullable: true },
16
18
  g: { ...vectorSchema, nullable: true },
17
19
  },
18
20
  required: [ 'wi' ],