@hytopia.com/server-protocol 1.3.11 → 1.3.13
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 +1 -1
- package/schemas/Camera.ts +3 -3
- package/schemas/Entity.ts +4 -2
package/package.json
CHANGED
package/schemas/Camera.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { vectorSchema } from './Vector';
|
|
|
3
3
|
import type { VectorSchema } from './Vector';
|
|
4
4
|
|
|
5
5
|
export type CameraSchema = {
|
|
6
|
-
m?: number
|
|
7
|
-
e?: number // entity id to
|
|
6
|
+
m?: number // camera mode - 0: first person, 1: third person
|
|
7
|
+
e?: number // entity id to attach camera to
|
|
8
8
|
et?: number // entity id to track
|
|
9
9
|
fo?: number // film offset, + value shifts right, - shifts left
|
|
10
10
|
ffo?: number // first person forward offset, moves camera in (+) or out (-) relative to camera position
|
|
11
11
|
fv?: number // field of view
|
|
12
|
-
p?: VectorSchema // position to
|
|
12
|
+
p?: VectorSchema // position to attach camera to
|
|
13
13
|
pt?: VectorSchema // position to track
|
|
14
14
|
pl?: VectorSchema // position to look at
|
|
15
15
|
h?: string[] // player model parts to hide by partial case insensitive match of gltf node names
|
package/schemas/Entity.ts
CHANGED
|
@@ -9,7 +9,8 @@ export type EntitySchema = {
|
|
|
9
9
|
al?: string[]; // model animations looped
|
|
10
10
|
ao?: string[]; // model animations one shot
|
|
11
11
|
as?: string[]; // model animations stop
|
|
12
|
-
|
|
12
|
+
bt?: string; // block texture uri
|
|
13
|
+
bh?: VectorSchema; // block half extents
|
|
13
14
|
m?: string; // model uri
|
|
14
15
|
n?: string; // name
|
|
15
16
|
p?: VectorSchema; // position
|
|
@@ -25,7 +26,8 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
|
|
|
25
26
|
al: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
26
27
|
ao: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
27
28
|
as: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
28
|
-
|
|
29
|
+
bt: { type: 'string', nullable: true },
|
|
30
|
+
bh: { ...vectorSchema, nullable: true },
|
|
29
31
|
m: { type: 'string', nullable: true },
|
|
30
32
|
n: { type: 'string', nullable: true },
|
|
31
33
|
p: { ...vectorSchema, nullable: true },
|