hytopia 0.11.2 → 0.12.0-prerelease-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/bin/scripts.js +1 -1
- package/docs/server.eventpayloads.md +2 -2
- package/docs/server.md +0 -11
- package/package.json +2 -1
- package/server.api.json +0 -36
- package/server.d.ts +2 -12
- package/server.mjs +227 -223
- package/docs/server.port.md +0 -13
package/bin/scripts.js
CHANGED
|
@@ -474,7 +474,7 @@ async function packageProject() {
|
|
|
474
474
|
async function build(devMode = false) {
|
|
475
475
|
let envFlags = devMode ? '' : '--minify --sourcemap=inline';
|
|
476
476
|
|
|
477
|
-
execSync(`npx --yes bun build --target=node --env=disable --format=esm ${envFlags} --outfile=index.mjs index.ts`, { stdio: 'inherit' });
|
|
477
|
+
execSync(`npx --yes bun build --target=node --env=disable --format=esm ${envFlags} --external=@fails-components/webtransport-transport-http3-quiche --outfile=index.mjs index.ts`, { stdio: 'inherit' });
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
/**
|
|
@@ -9,7 +9,7 @@ The payloads for all events in the game server.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export interface EventPayloads extends AudioEventPayloads, BaseEntityControllerEventPayloads, BlockTypeEventPayloads, BlockTypeRegistryEventPayloads, ChatEventPayloads, ChunkLatticeEventPayloads, ConnectionEventPayloads, EntityEventPayloads, GameServerEventPayloads, ParticleEmitterEventPayloads, PlayerCameraEventPayloads, PlayerEventPayloads, PlayerManagerEventPayloads, PlayerUIEventPayloads, SceneUIEventPayloads, SimulationEventPayloads,
|
|
12
|
+
export interface EventPayloads extends AudioEventPayloads, BaseEntityControllerEventPayloads, BlockTypeEventPayloads, BlockTypeRegistryEventPayloads, ChatEventPayloads, ChunkLatticeEventPayloads, ConnectionEventPayloads, EntityEventPayloads, GameServerEventPayloads, ParticleEmitterEventPayloads, PlayerCameraEventPayloads, PlayerEventPayloads, PlayerManagerEventPayloads, PlayerUIEventPayloads, SceneUIEventPayloads, SimulationEventPayloads, LightEventPayloads, WebServerEventPayloads, WorldEventPayloads, WorldLoopEventPayloads, WorldManagerEventPayloads
|
|
13
13
|
```
|
|
14
|
-
**Extends:** [AudioEventPayloads](./server.audioeventpayloads.md)<!-- -->, [BaseEntityControllerEventPayloads](./server.baseentitycontrollereventpayloads.md)<!-- -->, [BlockTypeEventPayloads](./server.blocktypeeventpayloads.md)<!-- -->, [BlockTypeRegistryEventPayloads](./server.blocktyperegistryeventpayloads.md)<!-- -->, [ChatEventPayloads](./server.chateventpayloads.md)<!-- -->, [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md)<!-- -->, ConnectionEventPayloads, [EntityEventPayloads](./server.entityeventpayloads.md)<!-- -->, [GameServerEventPayloads](./server.gameservereventpayloads.md)<!-- -->, [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md)<!-- -->, [PlayerCameraEventPayloads](./server.playercameraeventpayloads.md)<!-- -->, [PlayerEventPayloads](./server.playereventpayloads.md)<!-- -->, [PlayerManagerEventPayloads](./server.playermanagereventpayloads.md)<!-- -->, [PlayerUIEventPayloads](./server.playeruieventpayloads.md)<!-- -->, [SceneUIEventPayloads](./server.sceneuieventpayloads.md)<!-- -->, [SimulationEventPayloads](./server.simulationeventpayloads.md)<!-- -->,
|
|
14
|
+
**Extends:** [AudioEventPayloads](./server.audioeventpayloads.md)<!-- -->, [BaseEntityControllerEventPayloads](./server.baseentitycontrollereventpayloads.md)<!-- -->, [BlockTypeEventPayloads](./server.blocktypeeventpayloads.md)<!-- -->, [BlockTypeRegistryEventPayloads](./server.blocktyperegistryeventpayloads.md)<!-- -->, [ChatEventPayloads](./server.chateventpayloads.md)<!-- -->, [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md)<!-- -->, ConnectionEventPayloads, [EntityEventPayloads](./server.entityeventpayloads.md)<!-- -->, [GameServerEventPayloads](./server.gameservereventpayloads.md)<!-- -->, [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md)<!-- -->, [PlayerCameraEventPayloads](./server.playercameraeventpayloads.md)<!-- -->, [PlayerEventPayloads](./server.playereventpayloads.md)<!-- -->, [PlayerManagerEventPayloads](./server.playermanagereventpayloads.md)<!-- -->, [PlayerUIEventPayloads](./server.playeruieventpayloads.md)<!-- -->, [SceneUIEventPayloads](./server.sceneuieventpayloads.md)<!-- -->, [SimulationEventPayloads](./server.simulationeventpayloads.md)<!-- -->, [LightEventPayloads](./server.lighteventpayloads.md)<!-- -->, WebServerEventPayloads, [WorldEventPayloads](./server.worldeventpayloads.md)<!-- -->, [WorldLoopEventPayloads](./server.worldloopeventpayloads.md)<!-- -->, [WorldManagerEventPayloads](./server.worldmanagereventpayloads.md)
|
|
15
15
|
|
package/docs/server.md
CHANGED
|
@@ -1510,17 +1510,6 @@ Description
|
|
|
1510
1510
|
The default rigid body options for a model entity when EntityOptions.rigidBodyOptions is not provided.
|
|
1511
1511
|
|
|
1512
1512
|
|
|
1513
|
-
</td></tr>
|
|
1514
|
-
<tr><td>
|
|
1515
|
-
|
|
1516
|
-
[PORT](./server.port.md)
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
</td><td>
|
|
1520
|
-
|
|
1521
|
-
The port the server will run on. You can override this in your .env by setting PORT. When deployed in production to HYTOPIA servers, any .env value will be ignored and 8080 will be used.
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
1513
|
</td></tr>
|
|
1525
1514
|
<tr><td>
|
|
1526
1515
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hytopia",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-prerelease-1",
|
|
4
4
|
"description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./server.mjs",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"homepage": "https://github.com/hytopiagg/sdk#readme",
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"@fails-components/webtransport-transport-http3-quiche": "1.4.4",
|
|
59
60
|
"@gltf-transform/cli": "4.2.1",
|
|
60
61
|
"archiver": "7.0.1",
|
|
61
62
|
"bun": "1.3.0",
|
package/server.api.json
CHANGED
|
@@ -17892,15 +17892,6 @@
|
|
|
17892
17892
|
"kind": "Content",
|
|
17893
17893
|
"text": ", "
|
|
17894
17894
|
},
|
|
17895
|
-
{
|
|
17896
|
-
"kind": "Reference",
|
|
17897
|
-
"text": "SocketEventPayloads",
|
|
17898
|
-
"canonicalReference": "server!~SocketEventPayloads:interface"
|
|
17899
|
-
},
|
|
17900
|
-
{
|
|
17901
|
-
"kind": "Content",
|
|
17902
|
-
"text": ", "
|
|
17903
|
-
},
|
|
17904
17895
|
{
|
|
17905
17896
|
"kind": "Reference",
|
|
17906
17897
|
"text": "LightEventPayloads",
|
|
@@ -18036,10 +18027,6 @@
|
|
|
18036
18027
|
{
|
|
18037
18028
|
"startIndex": 41,
|
|
18038
18029
|
"endIndex": 42
|
|
18039
|
-
},
|
|
18040
|
-
{
|
|
18041
|
-
"startIndex": 43,
|
|
18042
|
-
"endIndex": 44
|
|
18043
18030
|
}
|
|
18044
18031
|
]
|
|
18045
18032
|
},
|
|
@@ -40681,29 +40668,6 @@
|
|
|
40681
40668
|
],
|
|
40682
40669
|
"extendsTokenRanges": []
|
|
40683
40670
|
},
|
|
40684
|
-
{
|
|
40685
|
-
"kind": "Variable",
|
|
40686
|
-
"canonicalReference": "server!PORT:var",
|
|
40687
|
-
"docComment": "/**\n * The port the server will run on. You can override this in your .env by setting PORT. When deployed in production to HYTOPIA servers, any .env value will be ignored and 8080 will be used.\n *\n * @public\n */\n",
|
|
40688
|
-
"excerptTokens": [
|
|
40689
|
-
{
|
|
40690
|
-
"kind": "Content",
|
|
40691
|
-
"text": "PORT: "
|
|
40692
|
-
},
|
|
40693
|
-
{
|
|
40694
|
-
"kind": "Content",
|
|
40695
|
-
"text": "string | 8080"
|
|
40696
|
-
}
|
|
40697
|
-
],
|
|
40698
|
-
"fileUrlPath": "src/networking/WebServer.ts",
|
|
40699
|
-
"isReadonly": true,
|
|
40700
|
-
"releaseTag": "Public",
|
|
40701
|
-
"name": "PORT",
|
|
40702
|
-
"variableTypeTokenRange": {
|
|
40703
|
-
"startIndex": 1,
|
|
40704
|
-
"endIndex": 2
|
|
40705
|
-
}
|
|
40706
|
-
},
|
|
40707
40671
|
{
|
|
40708
40672
|
"kind": "Class",
|
|
40709
40673
|
"canonicalReference": "server!Quaternion:class",
|
package/server.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { AnyPacket } from '@hytopia.com/server-protocol';
|
|
|
2
2
|
import type { ErrorEvent as ErrorEvent_2 } from 'ws';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
4
|
import http from 'http';
|
|
5
|
-
import type { IncomingMessage } from 'http';
|
|
6
5
|
import type { InputSchema } from '@hytopia.com/server-protocol';
|
|
7
6
|
import type { LobbyMembershipDto } from '@hytopia.com/creative-lib/dist/impl/getSession';
|
|
8
7
|
import protocol from '@hytopia.com/server-protocol';
|
|
@@ -11,6 +10,7 @@ import { SdpMatrix3 } from '@dimforge/rapier3d-simd-compat';
|
|
|
11
10
|
import * as Sentry from '@sentry/node';
|
|
12
11
|
import type { Socket } from 'net';
|
|
13
12
|
import { WebSocket as WebSocket_2 } from 'ws';
|
|
13
|
+
import type { WebTransportSessionImpl } from '@fails-components/webtransport/dist/lib/types';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Represents a audio playback in a world.
|
|
@@ -2281,7 +2281,7 @@ export declare class ErrorHandler {
|
|
|
2281
2281
|
*
|
|
2282
2282
|
* @public
|
|
2283
2283
|
*/
|
|
2284
|
-
export declare interface EventPayloads extends AudioEventPayloads, BaseEntityControllerEventPayloads, BlockTypeEventPayloads, BlockTypeRegistryEventPayloads, ChatEventPayloads, ChunkLatticeEventPayloads, ConnectionEventPayloads, EntityEventPayloads, GameServerEventPayloads, ParticleEmitterEventPayloads, PlayerCameraEventPayloads, PlayerEventPayloads, PlayerManagerEventPayloads, PlayerUIEventPayloads, SceneUIEventPayloads, SimulationEventPayloads,
|
|
2284
|
+
export declare interface EventPayloads extends AudioEventPayloads, BaseEntityControllerEventPayloads, BlockTypeEventPayloads, BlockTypeRegistryEventPayloads, ChatEventPayloads, ChunkLatticeEventPayloads, ConnectionEventPayloads, EntityEventPayloads, GameServerEventPayloads, ParticleEmitterEventPayloads, PlayerCameraEventPayloads, PlayerEventPayloads, PlayerManagerEventPayloads, PlayerUIEventPayloads, SceneUIEventPayloads, SimulationEventPayloads, LightEventPayloads, WebServerEventPayloads, WorldEventPayloads, WorldLoopEventPayloads, WorldManagerEventPayloads {
|
|
2285
2285
|
}
|
|
2286
2286
|
|
|
2287
2287
|
/**
|
|
@@ -5100,16 +5100,6 @@ export declare interface PlayerUIEventPayloads {
|
|
|
5100
5100
|
};
|
|
5101
5101
|
}
|
|
5102
5102
|
|
|
5103
|
-
/**
|
|
5104
|
-
* The port the server will run on. You can override
|
|
5105
|
-
* this in your .env by setting PORT. When deployed in
|
|
5106
|
-
* production to HYTOPIA servers, any .env value will
|
|
5107
|
-
* be ignored and 8080 will be used.
|
|
5108
|
-
*
|
|
5109
|
-
* @public
|
|
5110
|
-
*/
|
|
5111
|
-
export declare const PORT: string | 8080;
|
|
5112
|
-
|
|
5113
5103
|
/**
|
|
5114
5104
|
* Represents a quaternion.
|
|
5115
5105
|
*
|