hytopia 0.10.48 → 0.11.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/docs/server.md +3 -3
- package/docs/server.playerinput.md +2 -2
- package/docs/server.supported_inputs.md +13 -0
- package/package.json +1 -1
- package/server.api.json +7 -29
- package/server.d.ts +5 -4
- package/server.mjs +181 -178
- package/docs/server.supported_input_keys.md +0 -13
package/docs/server.md
CHANGED
|
@@ -1513,12 +1513,12 @@ The port the server will run on. You can override this in your .env by setting P
|
|
|
1513
1513
|
</td></tr>
|
|
1514
1514
|
<tr><td>
|
|
1515
1515
|
|
|
1516
|
-
[SUPPORTED\
|
|
1516
|
+
[SUPPORTED\_INPUTS](./server.supported_inputs.md)
|
|
1517
1517
|
|
|
1518
1518
|
|
|
1519
1519
|
</td><td>
|
|
1520
1520
|
|
|
1521
|
-
The
|
|
1521
|
+
The inputs that are included in the PlayerInput.
|
|
1522
1522
|
|
|
1523
1523
|
|
|
1524
1524
|
</td></tr>
|
|
@@ -1830,7 +1830,7 @@ Options for creating a PlayerEntity instance.
|
|
|
1830
1830
|
|
|
1831
1831
|
</td><td>
|
|
1832
1832
|
|
|
1833
|
-
The input state of a Player
|
|
1833
|
+
The input state of a Player.
|
|
1834
1834
|
|
|
1835
1835
|
|
|
1836
1836
|
</td></tr>
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerInput type
|
|
6
6
|
|
|
7
|
-
The input state of a Player
|
|
7
|
+
The input state of a Player.
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type PlayerInput =
|
|
12
|
+
export type PlayerInput = InputSchema;
|
|
13
13
|
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [SUPPORTED\_INPUTS](./server.supported_inputs.md)
|
|
4
|
+
|
|
5
|
+
## SUPPORTED\_INPUTS variable
|
|
6
|
+
|
|
7
|
+
The inputs that are included in the PlayerInput.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
SUPPORTED_INPUTS: readonly ["w", "a", "s", "d", "sp", "sh", "tb", "ml", "mr", "q", "e", "r", "f", "z", "x", "c", "v", "u", "i", "o", "j", "k", "l", "n", "m", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "cp", "cy", "jd"]
|
|
13
|
+
```
|
package/package.json
CHANGED
package/server.api.json
CHANGED
|
@@ -39382,39 +39382,17 @@
|
|
|
39382
39382
|
{
|
|
39383
39383
|
"kind": "TypeAlias",
|
|
39384
39384
|
"canonicalReference": "server!PlayerInput:type",
|
|
39385
|
-
"docComment": "/**\n * The input state of a Player
|
|
39385
|
+
"docComment": "/**\n * The input state of a Player.\n *\n * @public\n */\n",
|
|
39386
39386
|
"excerptTokens": [
|
|
39387
39387
|
{
|
|
39388
39388
|
"kind": "Content",
|
|
39389
39389
|
"text": "export type PlayerInput = "
|
|
39390
39390
|
},
|
|
39391
|
-
{
|
|
39392
|
-
"kind": "Reference",
|
|
39393
|
-
"text": "Partial",
|
|
39394
|
-
"canonicalReference": "!Partial:type"
|
|
39395
|
-
},
|
|
39396
|
-
{
|
|
39397
|
-
"kind": "Content",
|
|
39398
|
-
"text": "<"
|
|
39399
|
-
},
|
|
39400
|
-
{
|
|
39401
|
-
"kind": "Reference",
|
|
39402
|
-
"text": "Record",
|
|
39403
|
-
"canonicalReference": "!Record:type"
|
|
39404
|
-
},
|
|
39405
|
-
{
|
|
39406
|
-
"kind": "Content",
|
|
39407
|
-
"text": "<keyof "
|
|
39408
|
-
},
|
|
39409
39391
|
{
|
|
39410
39392
|
"kind": "Reference",
|
|
39411
39393
|
"text": "InputSchema",
|
|
39412
39394
|
"canonicalReference": "@hytopia.com/server-protocol!InputSchema:type"
|
|
39413
39395
|
},
|
|
39414
|
-
{
|
|
39415
|
-
"kind": "Content",
|
|
39416
|
-
"text": ", boolean>>"
|
|
39417
|
-
},
|
|
39418
39396
|
{
|
|
39419
39397
|
"kind": "Content",
|
|
39420
39398
|
"text": ";"
|
|
@@ -39425,7 +39403,7 @@
|
|
|
39425
39403
|
"name": "PlayerInput",
|
|
39426
39404
|
"typeTokenRange": {
|
|
39427
39405
|
"startIndex": 1,
|
|
39428
|
-
"endIndex":
|
|
39406
|
+
"endIndex": 2
|
|
39429
39407
|
}
|
|
39430
39408
|
},
|
|
39431
39409
|
{
|
|
@@ -49220,22 +49198,22 @@
|
|
|
49220
49198
|
},
|
|
49221
49199
|
{
|
|
49222
49200
|
"kind": "Variable",
|
|
49223
|
-
"canonicalReference": "server!
|
|
49224
|
-
"docComment": "/**\n * The
|
|
49201
|
+
"canonicalReference": "server!SUPPORTED_INPUTS:var",
|
|
49202
|
+
"docComment": "/**\n * The inputs that are included in the PlayerInput.\n *\n * @public\n */\n",
|
|
49225
49203
|
"excerptTokens": [
|
|
49226
49204
|
{
|
|
49227
49205
|
"kind": "Content",
|
|
49228
|
-
"text": "
|
|
49206
|
+
"text": "SUPPORTED_INPUTS: "
|
|
49229
49207
|
},
|
|
49230
49208
|
{
|
|
49231
49209
|
"kind": "Content",
|
|
49232
|
-
"text": "readonly [\"w\", \"a\", \"s\", \"d\", \"sp\", \"sh\", \"tb\", \"ml\", \"mr\", \"q\", \"e\", \"r\", \"f\", \"z\", \"x\", \"c\", \"v\", \"u\", \"i\", \"o\", \"j\", \"k\", \"l\", \"n\", \"m\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\"]"
|
|
49210
|
+
"text": "readonly [\"w\", \"a\", \"s\", \"d\", \"sp\", \"sh\", \"tb\", \"ml\", \"mr\", \"q\", \"e\", \"r\", \"f\", \"z\", \"x\", \"c\", \"v\", \"u\", \"i\", \"o\", \"j\", \"k\", \"l\", \"n\", \"m\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\", \"cp\", \"cy\", \"jd\"]"
|
|
49233
49211
|
}
|
|
49234
49212
|
],
|
|
49235
49213
|
"fileUrlPath": "src/players/Player.ts",
|
|
49236
49214
|
"isReadonly": true,
|
|
49237
49215
|
"releaseTag": "Public",
|
|
49238
|
-
"name": "
|
|
49216
|
+
"name": "SUPPORTED_INPUTS",
|
|
49239
49217
|
"variableTypeTokenRange": {
|
|
49240
49218
|
"startIndex": 1,
|
|
49241
49219
|
"endIndex": 2
|
package/server.d.ts
CHANGED
|
@@ -3546,6 +3546,7 @@ export declare class ModelRegistry {
|
|
|
3546
3546
|
|
|
3547
3547
|
|
|
3548
3548
|
|
|
3549
|
+
|
|
3549
3550
|
}
|
|
3550
3551
|
|
|
3551
3552
|
/** A trimesh for a model. @public */
|
|
@@ -4883,8 +4884,8 @@ export declare interface PlayerEventPayloads {
|
|
|
4883
4884
|
};
|
|
4884
4885
|
}
|
|
4885
4886
|
|
|
4886
|
-
/** The input state of a Player
|
|
4887
|
-
export declare type PlayerInput =
|
|
4887
|
+
/** The input state of a Player. @public */
|
|
4888
|
+
export declare type PlayerInput = InputSchema;
|
|
4888
4889
|
|
|
4889
4890
|
/**
|
|
4890
4891
|
* Manages all connected players in a game server.
|
|
@@ -6165,8 +6166,8 @@ export declare interface SpdMatrix3 extends SdpMatrix3 {
|
|
|
6165
6166
|
*/
|
|
6166
6167
|
export declare function startServer(init: ((() => void) | ((world: World) => void))): void;
|
|
6167
6168
|
|
|
6168
|
-
/** The
|
|
6169
|
-
export declare const
|
|
6169
|
+
/** The inputs that are included in the PlayerInput. @public */
|
|
6170
|
+
export declare const SUPPORTED_INPUTS: readonly ["w", "a", "s", "d", "sp", "sh", "tb", "ml", "mr", "q", "e", "r", "f", "z", "x", "c", "v", "u", "i", "o", "j", "k", "l", "n", "m", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "cp", "cy", "jd"];
|
|
6170
6171
|
|
|
6171
6172
|
/**
|
|
6172
6173
|
* Manages performance telemetry and error tracking through your Sentry.io account.
|