@hytopia.com/server-protocol 1.0.4 → 1.0.6

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/index.ts CHANGED
@@ -1,7 +1,4 @@
1
- import * as inboundPackets from './packets/inbound';
2
- import * as outboundPackets from './packets/outbound';
3
-
4
-
5
- export { inboundPackets, outboundPackets };
1
+ export * from './packets/inbound';
2
+ export * from './packets/outbound';
3
+ export * from './packets/PacketCore';
6
4
  export * from './schemas';
7
- export * from './packets/PacketCore';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,7 +1,7 @@
1
1
  import { JSONSchemaType } from 'ajv';
2
2
 
3
3
  export type PhysicsDebugRender = {
4
- wi: number; // world id
4
+ wi: string; // world id
5
5
  v: number[]; // rapier debug render vertices
6
6
  c: number[]; // rapier debug render colors
7
7
  }
@@ -9,7 +9,7 @@ export type PhysicsDebugRender = {
9
9
  export const physicsDebugRenderSchema: JSONSchemaType<PhysicsDebugRender> = {
10
10
  type: 'object',
11
11
  properties: {
12
- wi: { type: 'number' },
12
+ wi: { type: 'string' },
13
13
  v: { type: 'array', items: { type: 'number' } },
14
14
  c: { type: 'array', items: { type: 'number' } },
15
15
  },