@hytopia.com/server-protocol 1.4.1 → 1.4.3
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 +6 -4
- package/schemas/Input.ts +16 -0
package/package.json
CHANGED
package/schemas/Camera.ts
CHANGED
|
@@ -9,11 +9,12 @@ export type CameraSchema = {
|
|
|
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
|
+
h?: string[] // player model parts to hide by partial case insensitive match of gltf node names
|
|
13
|
+
o?: VectorSchema // offset - positional relative to target
|
|
12
14
|
p?: VectorSchema // position to attach camera to
|
|
13
15
|
pt?: VectorSchema // position to track
|
|
14
16
|
pl?: VectorSchema // position to look at
|
|
15
|
-
|
|
16
|
-
o?: VectorSchema // offset - positional relative to target
|
|
17
|
+
sa?: number // shoulder angle
|
|
17
18
|
z?: number // zoom
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -26,11 +27,12 @@ export const cameraSchema: JSONSchemaType<CameraSchema> = {
|
|
|
26
27
|
fo: { type: 'number', nullable: true },
|
|
27
28
|
ffo: { type: 'number', nullable: true },
|
|
28
29
|
fv: { type: 'number', nullable: true },
|
|
30
|
+
h: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
31
|
+
o: { ...vectorSchema, nullable: true },
|
|
29
32
|
p: { ...vectorSchema, nullable: true },
|
|
30
33
|
pt: { ...vectorSchema, nullable: true },
|
|
31
34
|
pl: { ...vectorSchema, nullable: true },
|
|
32
|
-
|
|
33
|
-
o: { ...vectorSchema, nullable: true },
|
|
35
|
+
sa: { type: 'number', nullable: true },
|
|
34
36
|
z: { type: 'number', nullable: true },
|
|
35
37
|
},
|
|
36
38
|
additionalProperties: false,
|
package/schemas/Input.ts
CHANGED
|
@@ -23,6 +23,14 @@ export type InputSchema = {
|
|
|
23
23
|
x?: boolean; // x key pressed
|
|
24
24
|
c?: boolean; // c key pressed
|
|
25
25
|
v?: boolean; // v key pressed
|
|
26
|
+
u?: boolean; // u key pressed
|
|
27
|
+
i?: boolean; // i key pressed
|
|
28
|
+
o?: boolean; // o key pressed
|
|
29
|
+
j?: boolean; // j key pressed
|
|
30
|
+
k?: boolean; // k key pressed
|
|
31
|
+
l?: boolean; // l key pressed
|
|
32
|
+
n?: boolean; // n key pressed
|
|
33
|
+
m?: boolean; // m key pressed
|
|
26
34
|
sp?: boolean; // space key pressed
|
|
27
35
|
sh?: boolean; // shift key pressed
|
|
28
36
|
tb?: boolean; // tab key pressed
|
|
@@ -58,6 +66,14 @@ export const inputSchema: JSONSchemaType<InputSchema> = {
|
|
|
58
66
|
x: { type: 'boolean', nullable: true },
|
|
59
67
|
c: { type: 'boolean', nullable: true },
|
|
60
68
|
v: { type: 'boolean', nullable: true },
|
|
69
|
+
u: { type: 'boolean', nullable: true },
|
|
70
|
+
i: { type: 'boolean', nullable: true },
|
|
71
|
+
o: { type: 'boolean', nullable: true },
|
|
72
|
+
j: { type: 'boolean', nullable: true },
|
|
73
|
+
k: { type: 'boolean', nullable: true },
|
|
74
|
+
l: { type: 'boolean', nullable: true },
|
|
75
|
+
n: { type: 'boolean', nullable: true },
|
|
76
|
+
m: { type: 'boolean', nullable: true },
|
|
61
77
|
sp: { type: 'boolean', nullable: true },
|
|
62
78
|
sh: { type: 'boolean', nullable: true },
|
|
63
79
|
tb: { type: 'boolean', nullable: true },
|