hytopia 0.1.12 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/docs/server.hytopia.md +11 -0
- package/docs/server.hytopia.port.md +13 -0
- package/docs/server.md +11 -0
- package/docs/server.port.md +13 -0
- package/package.json +1 -1
- package/server.api.json +46 -0
- package/server.d.ts +4 -0
- package/server.js +57 -57
package/README.md
CHANGED
@@ -29,7 +29,7 @@ With these resources, you can quickly build and share immersive, voxel-style mul
|
|
29
29
|
|
30
30
|
## Quickstart
|
31
31
|
|
32
|
-
1. Install a compatible JavaScript runtime. We recommend [Bun
|
32
|
+
1. Install a compatible JavaScript runtime. We recommend you use [Bun](https://bun.sh/), but [Node.js](https://nodejs.org/) and [Deno](https://deno.com/) can work with additional configuration. All examples will be given using Bun.
|
33
33
|
|
34
34
|
2. If you're starting a new project, initialize it.
|
35
35
|
```bash
|
package/docs/server.hytopia.md
CHANGED
@@ -733,6 +733,17 @@ Description
|
|
733
733
|
The default rigid body options when EntityOptions.rigidBodyOptions is not provided.
|
734
734
|
|
735
735
|
|
736
|
+
</td></tr>
|
737
|
+
<tr><td>
|
738
|
+
|
739
|
+
[PORT](./server.hytopia.port.md)
|
740
|
+
|
741
|
+
|
742
|
+
</td><td>
|
743
|
+
|
744
|
+
The port the server will listen on. You can override this in your .env by setting PORT.
|
745
|
+
|
746
|
+
|
736
747
|
</td></tr>
|
737
748
|
<tr><td>
|
738
749
|
|
@@ -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) > [HYTOPIA](./server.hytopia.md) > [PORT](./server.hytopia.port.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PORT variable
|
6
|
+
|
7
|
+
The port the server will listen on. You can override this in your .env by setting PORT.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
PORT: string | number
|
13
|
+
```
|
package/docs/server.md
CHANGED
@@ -742,6 +742,17 @@ Description
|
|
742
742
|
The default rigid body options when EntityOptions.rigidBodyOptions is not provided.
|
743
743
|
|
744
744
|
|
745
|
+
</td></tr>
|
746
|
+
<tr><td>
|
747
|
+
|
748
|
+
[PORT](./server.port.md)
|
749
|
+
|
750
|
+
|
751
|
+
</td><td>
|
752
|
+
|
753
|
+
The port the server will listen on. You can override this in your .env by setting PORT.
|
754
|
+
|
755
|
+
|
745
756
|
</td></tr>
|
746
757
|
<tr><td>
|
747
758
|
|
@@ -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) > [PORT](./server.port.md)
|
4
|
+
|
5
|
+
## PORT variable
|
6
|
+
|
7
|
+
The port the server will listen on. You can override this in your .env by setting PORT.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
PORT: string | number
|
13
|
+
```
|
package/package.json
CHANGED
package/server.api.json
CHANGED
@@ -23998,6 +23998,29 @@
|
|
23998
23998
|
"endIndex": 2
|
23999
23999
|
}
|
24000
24000
|
},
|
24001
|
+
{
|
24002
|
+
"kind": "Variable",
|
24003
|
+
"canonicalReference": "server!HYTOPIA.PORT:var",
|
24004
|
+
"docComment": "/**\n * The port the server will listen on. You can override this in your .env by setting PORT.\n */\n",
|
24005
|
+
"excerptTokens": [
|
24006
|
+
{
|
24007
|
+
"kind": "Content",
|
24008
|
+
"text": "PORT: "
|
24009
|
+
},
|
24010
|
+
{
|
24011
|
+
"kind": "Content",
|
24012
|
+
"text": "string | number"
|
24013
|
+
}
|
24014
|
+
],
|
24015
|
+
"fileUrlPath": "src/networking/WebServer.ts",
|
24016
|
+
"isReadonly": true,
|
24017
|
+
"releaseTag": "Public",
|
24018
|
+
"name": "PORT",
|
24019
|
+
"variableTypeTokenRange": {
|
24020
|
+
"startIndex": 1,
|
24021
|
+
"endIndex": 2
|
24022
|
+
}
|
24023
|
+
},
|
24001
24024
|
{
|
24002
24025
|
"kind": "TypeAlias",
|
24003
24026
|
"canonicalReference": "server!HYTOPIA.RawCollisionGroups:type",
|
@@ -30799,6 +30822,29 @@
|
|
30799
30822
|
"endIndex": 2
|
30800
30823
|
}
|
30801
30824
|
},
|
30825
|
+
{
|
30826
|
+
"kind": "Variable",
|
30827
|
+
"canonicalReference": "server!PORT:var",
|
30828
|
+
"docComment": "/**\n * The port the server will listen on. You can override this in your .env by setting PORT.\n */\n",
|
30829
|
+
"excerptTokens": [
|
30830
|
+
{
|
30831
|
+
"kind": "Content",
|
30832
|
+
"text": "PORT: "
|
30833
|
+
},
|
30834
|
+
{
|
30835
|
+
"kind": "Content",
|
30836
|
+
"text": "string | number"
|
30837
|
+
}
|
30838
|
+
],
|
30839
|
+
"fileUrlPath": "src/networking/WebServer.ts",
|
30840
|
+
"isReadonly": true,
|
30841
|
+
"releaseTag": "Public",
|
30842
|
+
"name": "PORT",
|
30843
|
+
"variableTypeTokenRange": {
|
30844
|
+
"startIndex": 1,
|
30845
|
+
"endIndex": 2
|
30846
|
+
}
|
30847
|
+
},
|
30802
30848
|
{
|
30803
30849
|
"kind": "TypeAlias",
|
30804
30850
|
"canonicalReference": "server!RawCollisionGroups:type",
|
package/server.d.ts
CHANGED
@@ -1618,6 +1618,7 @@ declare namespace HYTOPIA {
|
|
1618
1618
|
RigidBodyOptions,
|
1619
1619
|
Simulation,
|
1620
1620
|
WebServer,
|
1621
|
+
PORT,
|
1621
1622
|
World,
|
1622
1623
|
WorldMap,
|
1623
1624
|
WorldOptions,
|
@@ -1800,6 +1801,9 @@ export declare type PlayerOrientationState = {
|
|
1800
1801
|
yaw: number;
|
1801
1802
|
};
|
1802
1803
|
|
1804
|
+
/** The port the server will listen on. You can override this in your .env by setting PORT. */
|
1805
|
+
export declare const PORT: string | number;
|
1806
|
+
|
1803
1807
|
/** A raw set of collision groups represented as a 32-bit number. @public */
|
1804
1808
|
export declare type RawCollisionGroups = RAPIER.InteractionGroups;
|
1805
1809
|
|