@rpgjs/client 4.3.0 → 5.0.0-alpha.0
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/dist/Game/EffectManager.d.ts +5 -0
- package/dist/Game/Event.d.ts +4 -0
- package/dist/Game/Map.d.ts +7 -0
- package/dist/Game/Player.d.ts +4 -0
- package/dist/Gui/Gui.d.ts +23 -0
- package/{lib → dist}/RpgClient.d.ts +9 -6
- package/dist/RpgClientEngine.d.ts +43 -0
- package/dist/components/effects/index.d.ts +4 -0
- package/dist/components/gui/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/core/inject.d.ts +5 -0
- package/dist/core/setup.d.ts +6 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/index10.js +8 -0
- package/dist/index10.js.map +1 -0
- package/dist/index11.js +10 -0
- package/dist/index11.js.map +1 -0
- package/dist/index12.js +8 -0
- package/dist/index12.js.map +1 -0
- package/dist/index13.js +17 -0
- package/dist/index13.js.map +1 -0
- package/dist/index14.js +50 -0
- package/dist/index14.js.map +1 -0
- package/dist/index15.js +191 -0
- package/dist/index15.js.map +1 -0
- package/dist/index16.js +9 -0
- package/dist/index16.js.map +1 -0
- package/dist/index17.js +387 -0
- package/dist/index17.js.map +1 -0
- package/dist/index18.js +31 -0
- package/dist/index18.js.map +1 -0
- package/dist/index19.js +24 -0
- package/dist/index19.js.map +1 -0
- package/dist/index2.js +112 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +2421 -0
- package/dist/index20.js.map +1 -0
- package/dist/index21.js +114 -0
- package/dist/index21.js.map +1 -0
- package/dist/index22.js +109 -0
- package/dist/index22.js.map +1 -0
- package/dist/index23.js +71 -0
- package/dist/index23.js.map +1 -0
- package/dist/index24.js +21 -0
- package/dist/index24.js.map +1 -0
- package/dist/index25.js +41 -0
- package/dist/index25.js.map +1 -0
- package/dist/index26.js +5 -0
- package/dist/index26.js.map +1 -0
- package/dist/index27.js +322 -0
- package/dist/index27.js.map +1 -0
- package/dist/index28.js +25 -0
- package/dist/index28.js.map +1 -0
- package/dist/index29.js +11 -0
- package/dist/index29.js.map +1 -0
- package/dist/index3.js +87 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +11 -0
- package/dist/index30.js.map +1 -0
- package/dist/index31.js +174 -0
- package/dist/index31.js.map +1 -0
- package/dist/index32.js +501 -0
- package/dist/index32.js.map +1 -0
- package/dist/index33.js +12 -0
- package/dist/index33.js.map +1 -0
- package/dist/index34.js +4403 -0
- package/dist/index34.js.map +1 -0
- package/dist/index35.js +91 -0
- package/dist/index35.js.map +1 -0
- package/dist/index36.js +61 -0
- package/dist/index36.js.map +1 -0
- package/dist/index37.js +20 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +20 -0
- package/dist/index38.js.map +1 -0
- package/dist/index4.js +54 -0
- package/dist/index4.js.map +1 -0
- package/dist/index5.js +15 -0
- package/dist/index5.js.map +1 -0
- package/dist/index6.js +17 -0
- package/dist/index6.js.map +1 -0
- package/dist/index7.js +31 -0
- package/dist/index7.js.map +1 -0
- package/dist/index8.js +90 -0
- package/dist/index8.js.map +1 -0
- package/dist/index9.js +76 -0
- package/dist/index9.js.map +1 -0
- package/dist/module.d.ts +14 -0
- package/dist/presets/index.d.ts +22 -0
- package/{lib/Presets/AnimationSpritesheet.d.ts → dist/presets/rmspritesheet.d.ts} +6 -2
- package/dist/services/AbstractSocket.d.ts +15 -0
- package/dist/services/loadMap.d.ts +14 -0
- package/dist/services/mmorpg.d.ts +32 -0
- package/dist/services/standalone.d.ts +34 -0
- package/package.json +25 -41
- package/src/Game/EffectManager.ts +20 -0
- package/src/Game/Event.ts +5 -0
- package/src/Game/Map.ts +10 -0
- package/src/Game/Object.ts +16 -0
- package/src/Game/Player.ts +5 -0
- package/src/Gui/Gui.ts +80 -533
- package/src/RpgClient.ts +9 -5
- package/src/RpgClientEngine.ts +135 -818
- package/src/components/character.ce +104 -0
- package/src/components/effects/animation.ce +19 -0
- package/src/components/effects/hit.ce +87 -0
- package/src/components/effects/index.ts +7 -0
- package/src/components/gui/dialogbox/index.ce +194 -0
- package/src/components/gui/dialogbox/itemMenu.ce +23 -0
- package/src/components/gui/dialogbox/selection.ce +67 -0
- package/src/components/gui/index.ts +5 -0
- package/src/components/index.ts +3 -0
- package/src/components/scenes/canvas.ce +51 -0
- package/src/components/scenes/draw-map.ce +56 -0
- package/src/components/scenes/element-map.ce +23 -0
- package/src/components/scenes/event-layer.ce +20 -0
- package/src/core/inject.ts +17 -0
- package/src/core/setup.ts +18 -0
- package/src/index.ts +13 -29
- package/src/module.ts +93 -0
- package/src/presets/index.ts +5 -0
- package/src/{Presets/AnimationSpritesheet.ts → presets/rmspritesheet.ts} +4 -5
- package/src/services/AbstractSocket.ts +14 -0
- package/src/services/loadMap.ts +33 -0
- package/src/services/mmorpg.ts +64 -0
- package/src/services/standalone.ts +101 -0
- package/src/types/canvas-engine.d.ts +26 -0
- package/tsconfig.json +8 -3
- package/vite.config.ts +34 -0
- package/CHANGELOG.md +0 -189
- package/LICENSE +0 -19
- package/browser/React-ece4b906.js +0 -195
- package/browser/index-ba657126.js +0 -44229
- package/browser/manifest.json +0 -21
- package/browser/rpg.client.js +0 -40
- package/browser/rpg.client.umd.cjs +0 -44456
- package/lib/Components/AbstractComponent.d.ts +0 -32
- package/lib/Components/AbstractComponent.js +0 -93
- package/lib/Components/AbstractComponent.js.map +0 -1
- package/lib/Components/BarComponent.d.ts +0 -21
- package/lib/Components/BarComponent.js +0 -169
- package/lib/Components/BarComponent.js.map +0 -1
- package/lib/Components/Component.d.ts +0 -124
- package/lib/Components/Component.js +0 -425
- package/lib/Components/Component.js.map +0 -1
- package/lib/Components/DebugComponent.d.ts +0 -11
- package/lib/Components/DebugComponent.js +0 -32
- package/lib/Components/DebugComponent.js.map +0 -1
- package/lib/Components/ImageComponent.d.ts +0 -11
- package/lib/Components/ImageComponent.js +0 -30
- package/lib/Components/ImageComponent.js.map +0 -1
- package/lib/Components/ShapeComponent.d.ts +0 -11
- package/lib/Components/ShapeComponent.js +0 -57
- package/lib/Components/ShapeComponent.js.map +0 -1
- package/lib/Components/TextComponent.d.ts +0 -11
- package/lib/Components/TextComponent.js +0 -35
- package/lib/Components/TextComponent.js.map +0 -1
- package/lib/Components/TileComponent.d.ts +0 -10
- package/lib/Components/TileComponent.js +0 -40
- package/lib/Components/TileComponent.js.map +0 -1
- package/lib/Effects/Animation.d.ts +0 -55
- package/lib/Effects/Animation.js +0 -233
- package/lib/Effects/Animation.js.map +0 -1
- package/lib/Effects/AnimationCharacter.d.ts +0 -7
- package/lib/Effects/AnimationCharacter.js +0 -9
- package/lib/Effects/AnimationCharacter.js.map +0 -1
- package/lib/Effects/Spinner.d.ts +0 -7
- package/lib/Effects/Spinner.js +0 -18
- package/lib/Effects/Spinner.js.map +0 -1
- package/lib/Effects/Timeline.d.ts +0 -151
- package/lib/Effects/Timeline.js +0 -369
- package/lib/Effects/Timeline.js.map +0 -1
- package/lib/Effects/TransitionScene.d.ts +0 -18
- package/lib/Effects/TransitionScene.js +0 -50
- package/lib/Effects/TransitionScene.js.map +0 -1
- package/lib/GameEngine.d.ts +0 -68
- package/lib/GameEngine.js +0 -254
- package/lib/GameEngine.js.map +0 -1
- package/lib/Gui/Gui.d.ts +0 -110
- package/lib/Gui/Gui.js +0 -489
- package/lib/Gui/Gui.js.map +0 -1
- package/lib/Gui/React.d.ts +0 -28
- package/lib/Gui/React.js +0 -147
- package/lib/Gui/React.js.map +0 -1
- package/lib/Gui/Vue.d.ts +0 -13
- package/lib/Gui/Vue.js +0 -114
- package/lib/Gui/Vue.js.map +0 -1
- package/lib/Interfaces/Character.d.ts +0 -6
- package/lib/Interfaces/Character.js +0 -2
- package/lib/Interfaces/Character.js.map +0 -1
- package/lib/Interfaces/Scene.d.ts +0 -10
- package/lib/Interfaces/Scene.js +0 -2
- package/lib/Interfaces/Scene.js.map +0 -1
- package/lib/KeyboardControls.d.ts +0 -367
- package/lib/KeyboardControls.js +0 -714
- package/lib/KeyboardControls.js.map +0 -1
- package/lib/Logger.d.ts +0 -1
- package/lib/Logger.js +0 -4
- package/lib/Logger.js.map +0 -1
- package/lib/Presets/AnimationSpritesheet.js +0 -39
- package/lib/Presets/AnimationSpritesheet.js.map +0 -1
- package/lib/Presets/Scene.d.ts +0 -3
- package/lib/Presets/Scene.js +0 -5
- package/lib/Presets/Scene.js.map +0 -1
- package/lib/Renderer.d.ts +0 -62
- package/lib/Renderer.js +0 -300
- package/lib/Renderer.js.map +0 -1
- package/lib/Resources.d.ts +0 -22
- package/lib/Resources.js +0 -38
- package/lib/Resources.js.map +0 -1
- package/lib/RpgClient.js +0 -2
- package/lib/RpgClient.js.map +0 -1
- package/lib/RpgClientEngine.d.ts +0 -257
- package/lib/RpgClientEngine.js +0 -677
- package/lib/RpgClientEngine.js.map +0 -1
- package/lib/Scene/EventLayer.d.ts +0 -4
- package/lib/Scene/EventLayer.js +0 -8
- package/lib/Scene/EventLayer.js.map +0 -1
- package/lib/Scene/Map.d.ts +0 -109
- package/lib/Scene/Map.js +0 -319
- package/lib/Scene/Map.js.map +0 -1
- package/lib/Scene/Scene.d.ts +0 -184
- package/lib/Scene/Scene.js +0 -250
- package/lib/Scene/Scene.js.map +0 -1
- package/lib/Scene/SceneData.d.ts +0 -4
- package/lib/Scene/SceneData.js +0 -8
- package/lib/Scene/SceneData.js.map +0 -1
- package/lib/Sound/RpgSound.d.ts +0 -11
- package/lib/Sound/RpgSound.js +0 -46
- package/lib/Sound/RpgSound.js.map +0 -1
- package/lib/Sound/Sound.d.ts +0 -78
- package/lib/Sound/Sound.js +0 -12
- package/lib/Sound/Sound.js.map +0 -1
- package/lib/Sound/Sounds.d.ts +0 -2
- package/lib/Sound/Sounds.js +0 -6
- package/lib/Sound/Sounds.js.map +0 -1
- package/lib/Sprite/Character.d.ts +0 -18
- package/lib/Sprite/Character.js +0 -131
- package/lib/Sprite/Character.js.map +0 -1
- package/lib/Sprite/Player.d.ts +0 -3
- package/lib/Sprite/Player.js +0 -4
- package/lib/Sprite/Player.js.map +0 -1
- package/lib/Sprite/Spritesheet.d.ts +0 -365
- package/lib/Sprite/Spritesheet.js +0 -13
- package/lib/Sprite/Spritesheet.js.map +0 -1
- package/lib/Sprite/Spritesheets.d.ts +0 -3
- package/lib/Sprite/Spritesheets.js +0 -6
- package/lib/Sprite/Spritesheets.js.map +0 -1
- package/lib/Tilemap/CommonLayer.d.ts +0 -10
- package/lib/Tilemap/CommonLayer.js +0 -17
- package/lib/Tilemap/CommonLayer.js.map +0 -1
- package/lib/Tilemap/ImageLayer.d.ts +0 -4
- package/lib/Tilemap/ImageLayer.js +0 -16
- package/lib/Tilemap/ImageLayer.js.map +0 -1
- package/lib/Tilemap/Tile.d.ts +0 -21
- package/lib/Tilemap/Tile.js +0 -67
- package/lib/Tilemap/Tile.js.map +0 -1
- package/lib/Tilemap/TileLayer.d.ts +0 -13
- package/lib/Tilemap/TileLayer.js +0 -122
- package/lib/Tilemap/TileLayer.js.map +0 -1
- package/lib/Tilemap/TileSet.d.ts +0 -7
- package/lib/Tilemap/TileSet.js +0 -24
- package/lib/Tilemap/TileSet.js.map +0 -1
- package/lib/Tilemap/index.d.ts +0 -28
- package/lib/Tilemap/index.js +0 -151
- package/lib/Tilemap/index.js.map +0 -1
- package/lib/clientEntryPoint.d.ts +0 -89
- package/lib/clientEntryPoint.js +0 -48
- package/lib/clientEntryPoint.js.map +0 -1
- package/lib/index.d.ts +0 -26
- package/lib/index.js +0 -27
- package/lib/index.js.map +0 -1
- package/lib/inject.d.ts +0 -23
- package/lib/inject.js +0 -30
- package/lib/inject.js.map +0 -1
- package/rpg.toml +0 -14
- package/src/Components/AbstractComponent.ts +0 -120
- package/src/Components/BarComponent.ts +0 -181
- package/src/Components/Component.ts +0 -515
- package/src/Components/DebugComponent.ts +0 -36
- package/src/Components/ImageComponent.ts +0 -30
- package/src/Components/ShapeComponent.ts +0 -64
- package/src/Components/TextComponent.ts +0 -33
- package/src/Components/TileComponent.ts +0 -43
- package/src/Effects/Animation.ts +0 -310
- package/src/Effects/AnimationCharacter.ts +0 -7
- package/src/Effects/Spinner.ts +0 -19
- package/src/Effects/Timeline.ts +0 -378
- package/src/Effects/TransitionScene.ts +0 -59
- package/src/GameEngine.ts +0 -289
- package/src/Gui/React.ts +0 -193
- package/src/Gui/Vue.ts +0 -154
- package/src/Interfaces/Character.ts +0 -7
- package/src/Interfaces/Scene.ts +0 -9
- package/src/KeyboardControls.ts +0 -748
- package/src/Logger.ts +0 -3
- package/src/Presets/Scene.ts +0 -3
- package/src/Renderer.ts +0 -334
- package/src/Resources.ts +0 -39
- package/src/Scene/EventLayer.ts +0 -9
- package/src/Scene/Map.ts +0 -402
- package/src/Scene/Scene.ts +0 -305
- package/src/Scene/SceneData.ts +0 -13
- package/src/Sound/RpgSound.ts +0 -50
- package/src/Sound/Sound.ts +0 -91
- package/src/Sound/Sounds.ts +0 -7
- package/src/Sprite/Character.ts +0 -157
- package/src/Sprite/Player.ts +0 -3
- package/src/Sprite/Spritesheet.ts +0 -392
- package/src/Sprite/Spritesheets.ts +0 -8
- package/src/Tilemap/CommonLayer.ts +0 -20
- package/src/Tilemap/ImageLayer.ts +0 -20
- package/src/Tilemap/Tile.ts +0 -80
- package/src/Tilemap/TileLayer.ts +0 -142
- package/src/Tilemap/TileSet.ts +0 -40
- package/src/Tilemap/index.ts +0 -175
- package/src/clientEntryPoint.ts +0 -150
- package/src/inject.ts +0 -34
- package/src/types/howler.d.ts +0 -73
package/dist/index3.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { WebSocketToken, AbstractWebsocket } from './index16.js';
|
|
2
|
+
import { ServerIo, ClientIo } from './index20.js';
|
|
3
|
+
import { RpgClientEngine } from './index2.js';
|
|
4
|
+
import { UpdateMapToken, UpdateMapService } from '@rpgjs/common';
|
|
5
|
+
import { RpgGui } from './index9.js';
|
|
6
|
+
|
|
7
|
+
class BridgeWebsocket extends AbstractWebsocket {
|
|
8
|
+
constructor(context, server) {
|
|
9
|
+
super(context);
|
|
10
|
+
this.context = context;
|
|
11
|
+
this.server = server;
|
|
12
|
+
this.room = new ServerIo("lobby-1");
|
|
13
|
+
}
|
|
14
|
+
async connection(listeners) {
|
|
15
|
+
const server = new this.server(this.room);
|
|
16
|
+
await server.onStart();
|
|
17
|
+
this.context.set("server", server);
|
|
18
|
+
this.socket = new ClientIo(server);
|
|
19
|
+
const url = new URL("http://localhost");
|
|
20
|
+
const request = new Request(url.toString(), {
|
|
21
|
+
method: "GET",
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
listeners?.(this.socket);
|
|
27
|
+
await server.onConnect(this.socket.conn, { request });
|
|
28
|
+
this.room.clients.set(this.socket.id, this.socket);
|
|
29
|
+
return this.socket;
|
|
30
|
+
}
|
|
31
|
+
on(key, callback) {
|
|
32
|
+
this.socket.addEventListener("message", (event) => {
|
|
33
|
+
const object = JSON.parse(event);
|
|
34
|
+
if (object.type === key) {
|
|
35
|
+
callback(object.value);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
off(event, callback) {
|
|
40
|
+
this.socket.removeEventListener(event, callback);
|
|
41
|
+
}
|
|
42
|
+
emit(event, data) {
|
|
43
|
+
this.socket.send({
|
|
44
|
+
action: event,
|
|
45
|
+
value: data
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
updateProperties({ room }) {
|
|
49
|
+
this.room = new ServerIo(room);
|
|
50
|
+
}
|
|
51
|
+
async reconnect(listeners) {
|
|
52
|
+
await this.connection((socket) => {
|
|
53
|
+
listeners?.(socket);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
class UpdateMapStandaloneService extends UpdateMapService {
|
|
58
|
+
async update(mapId, map) {
|
|
59
|
+
this.server = this.context.get("server");
|
|
60
|
+
const req = {
|
|
61
|
+
url: `http://localhost/parties/main/${mapId}/map/update`,
|
|
62
|
+
method: "POST",
|
|
63
|
+
headers: new Headers({}),
|
|
64
|
+
json: async () => {
|
|
65
|
+
return map;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
await this.server.onRequest(req);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function provideRpg(server) {
|
|
72
|
+
return [
|
|
73
|
+
{
|
|
74
|
+
provide: WebSocketToken,
|
|
75
|
+
useFactory: (context) => new BridgeWebsocket(context, server)
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
provide: UpdateMapToken,
|
|
79
|
+
useClass: UpdateMapStandaloneService
|
|
80
|
+
},
|
|
81
|
+
RpgGui,
|
|
82
|
+
RpgClientEngine
|
|
83
|
+
];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { provideRpg };
|
|
87
|
+
//# sourceMappingURL=index3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index3.js","sources":["../src/services/standalone.ts"],"sourcesContent":["import { AbstractWebsocket, WebSocketToken } from \"./AbstractSocket\";\nimport { ClientIo, ServerIo } from \"@signe/room\";\nimport { Context } from \"@signe/di\";\nimport { RpgClientEngine } from \"../RpgClientEngine\";\nimport { UpdateMapService, UpdateMapToken } from \"@rpgjs/common\";\nimport { LoadMapToken } from \"./loadMap\";\nimport { RpgGui } from \"../Gui/Gui\";\n\ntype ServerIo = any;\ntype ClientIo = any;\n\nclass BridgeWebsocket extends AbstractWebsocket {\n private room: ServerIo;\n private socket: ClientIo;\n\n constructor(protected context: Context, private server: any) {\n super(context);\n // fake room\n this.room = new ServerIo(\"lobby-1\");\n }\n\n async connection(listeners?: (data: any) => void) {\n const server = new this.server(this.room);\n await server.onStart();\n this.context.set('server', server)\n this.socket = new ClientIo(server);\n const url = new URL('http://localhost')\n const request = new Request(url.toString(), {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json'\n }\n })\n listeners?.(this.socket)\n await server.onConnect(this.socket.conn as any, { request } as any);\n this.room.clients.set(this.socket.id, this.socket);\n return this.socket\n }\n\n on(key: string, callback: (data: any) => void) {\n this.socket.addEventListener(\"message\", (event) => {\n const object = JSON.parse(event);\n if (object.type === key) {\n callback(object.value);\n }\n });\n }\n\n off(event: string, callback: (data: any) => void) {\n this.socket.removeEventListener(event, callback);\n }\n\n emit(event: string, data: any) {\n this.socket.send({\n action: event,\n value: data,\n });\n }\n\n updateProperties({ room }: { room: any }) {\n this.room = new ServerIo(room);\n }\n\n async reconnect(listeners?: (data: any) => void) {\n await this.connection((socket) => {\n listeners?.(socket)\n })\n }\n}\n\nclass UpdateMapStandaloneService extends UpdateMapService {\n private server: any;\n\n async update(mapId: string, map: any) {\n this.server = this.context.get('server')\n const req = {\n url: `http://localhost/parties/main/${mapId}/map/update`,\n method: 'POST',\n headers: new Headers({}),\n json: async () => {\n return map;\n }\n };\n await this.server.onRequest(req)\n }\n}\n\nexport function provideRpg(server: any) {\n return [\n {\n provide: WebSocketToken,\n useFactory: (context: Context) => new BridgeWebsocket(context, server),\n },\n {\n provide: UpdateMapToken,\n useClass: UpdateMapStandaloneService,\n },\n RpgGui,\n RpgClientEngine,\n ];\n}\n"],"names":[],"mappings":";;;;;;AAWA,MAAM,wBAAwB,iBAAkB,CAAA;AAAA,EAI9C,WAAA,CAAsB,SAA0B,MAAa,EAAA;AAC3D,IAAA,KAAA,CAAM,OAAO,CAAA;AADO,IAAA,IAAA,CAAA,OAAA,GAAA,OAAA;AAA0B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAG9C,IAAK,IAAA,CAAA,IAAA,GAAO,IAAI,QAAA,CAAS,SAAS,CAAA;AAAA;AACpC,EAEA,MAAM,WAAW,SAAiC,EAAA;AAChD,IAAA,MAAM,MAAS,GAAA,IAAI,IAAK,CAAA,MAAA,CAAO,KAAK,IAAI,CAAA;AACxC,IAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,IAAK,IAAA,CAAA,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gBAAA,CAAiB,EAAE,IAAA,EAAuB,EAAA;AACxC,IAAK,IAAA,CAAA,IAAA,GAAO,IAAI,QAAA,CAAS,IAAI,CAAA;AAAA;AAC/B,EAEA,MAAM,UAAU,SAAiC,EAAA;AAC/C,IAAM,MAAA,IAAA,CAAK,UAAW,CAAA,CAAC,MAAW,KAAA;AAChC,MAAA,SAAA,GAAY,MAAM,CAAA;AAAA,KACnB,CAAA;AAAA;AAEL;AAEA,MAAM,mCAAmC,gBAAiB,CAAA;AAAA,EAGxD,MAAM,MAAO,CAAA,KAAA,EAAe,GAAU,EAAA;AACpC,IAAA,IAAA,CAAK,MAAS,GAAA,IAAA,CAAK,OAAQ,CAAA,GAAA,CAAI,QAAQ,CAAA;AACvC,IAAA,MAAM,GAAM,GAAA;AAAA,MACV,GAAA,EAAK,iCAAiC,KAAK,CAAA,WAAA,CAAA;AAAA,MAC3C,MAAQ,EAAA,MAAA;AAAA,MACR,OAAS,EAAA,IAAI,OAAQ,CAAA,EAAE,CAAA;AAAA,MACvB,MAAM,YAAY;AAChB,QAAO,OAAA,GAAA;AAAA;AACT,KACF;AACA,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,SAAA,CAAU,GAAG,CAAA;AAAA;AAEnC;AAEO,SAAS,WAAW,MAAa,EAAA;AACtC,EAAO,OAAA;AAAA,IACL;AAAA,MACE,OAAS,EAAA,cAAA;AAAA,MACT,YAAY,CAAC,OAAA,KAAqB,IAAI,eAAA,CAAgB,SAAS,MAAM;AAAA,KACvE;AAAA,IACA;AAAA,MACE,OAAS,EAAA,cAAA;AAAA,MACT,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF;AACF;;;;"}
|
package/dist/index30.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index30.js","sources":["../src/Game/Event.ts"],"sourcesContent":["import { RpgClientObject } from \"./Object\"; \n\nexport class RpgClientEvent extends RpgClientObject {\n type = 'event'\n} "],"names":[],"mappings":";;AAEO,MAAM,uBAAuB,eAAgB,CAAA;AAAA,EAA7C,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AACH,IAAO,IAAA,CAAA,IAAA,GAAA,OAAA;AAAA;AACX;;;;"}
|
package/dist/index31.js
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ReconnectingWebSocket } from './index32.js';
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
var valueIsNotNil = (keyValuePair) =>
|
|
5
|
+
keyValuePair[1] !== null && keyValuePair[1] !== void 0;
|
|
6
|
+
function generateUUID() {
|
|
7
|
+
if (typeof crypto !== "undefined" && crypto.randomUUID) {
|
|
8
|
+
return crypto.randomUUID();
|
|
9
|
+
}
|
|
10
|
+
let d = /* @__PURE__ */ new Date().getTime();
|
|
11
|
+
let d2 =
|
|
12
|
+
(typeof performance !== "undefined" &&
|
|
13
|
+
performance.now &&
|
|
14
|
+
performance.now() * 1e3) ||
|
|
15
|
+
0;
|
|
16
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
17
|
+
let r = Math.random() * 16;
|
|
18
|
+
if (d > 0) {
|
|
19
|
+
r = (d + r) % 16 | 0;
|
|
20
|
+
d = Math.floor(d / 16);
|
|
21
|
+
} else {
|
|
22
|
+
r = (d2 + r) % 16 | 0;
|
|
23
|
+
d2 = Math.floor(d2 / 16);
|
|
24
|
+
}
|
|
25
|
+
return (c === "x" ? r : (r & 3) | 8).toString(16);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function getPartyInfo(partySocketOptions, defaultProtocol, defaultParams = {}) {
|
|
29
|
+
const {
|
|
30
|
+
host: rawHost,
|
|
31
|
+
path: rawPath,
|
|
32
|
+
protocol: rawProtocol,
|
|
33
|
+
room,
|
|
34
|
+
party,
|
|
35
|
+
basePath,
|
|
36
|
+
prefix,
|
|
37
|
+
query
|
|
38
|
+
} = partySocketOptions;
|
|
39
|
+
let host = rawHost.replace(/^(http|https|ws|wss):\/\//, "");
|
|
40
|
+
if (host.endsWith("/")) {
|
|
41
|
+
host = host.slice(0, -1);
|
|
42
|
+
}
|
|
43
|
+
if (rawPath == null ? void 0 : rawPath.startsWith("/")) {
|
|
44
|
+
throw new Error("path must not start with a slash");
|
|
45
|
+
}
|
|
46
|
+
const name = party ?? "main";
|
|
47
|
+
const path = rawPath ? `/${rawPath}` : "";
|
|
48
|
+
const protocol =
|
|
49
|
+
rawProtocol ||
|
|
50
|
+
(host.startsWith("localhost:") ||
|
|
51
|
+
host.startsWith("127.0.0.1:") ||
|
|
52
|
+
host.startsWith("192.168.") ||
|
|
53
|
+
host.startsWith("10.") ||
|
|
54
|
+
(host.startsWith("172.") &&
|
|
55
|
+
host.split(".")[1] >= "16" &&
|
|
56
|
+
host.split(".")[1] <= "31") ||
|
|
57
|
+
host.startsWith("[::ffff:7f00:1]:")
|
|
58
|
+
? // http / ws
|
|
59
|
+
defaultProtocol
|
|
60
|
+
: // https / wss
|
|
61
|
+
`${defaultProtocol}s`);
|
|
62
|
+
const baseUrl = `${protocol}://${host}/${basePath || `${prefix || "parties"}/${name}/${room}`}${path}`;
|
|
63
|
+
const makeUrl = (query2 = {}) =>
|
|
64
|
+
`${baseUrl}?${new URLSearchParams([
|
|
65
|
+
...Object.entries(defaultParams),
|
|
66
|
+
...Object.entries(query2).filter(valueIsNotNil)
|
|
67
|
+
])}`;
|
|
68
|
+
const urlProvider =
|
|
69
|
+
typeof query === "function"
|
|
70
|
+
? async () => makeUrl(await query())
|
|
71
|
+
: makeUrl(query);
|
|
72
|
+
return {
|
|
73
|
+
host,
|
|
74
|
+
path,
|
|
75
|
+
room,
|
|
76
|
+
name,
|
|
77
|
+
protocol,
|
|
78
|
+
partyUrl: baseUrl,
|
|
79
|
+
urlProvider
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
var PartySocket = class extends ReconnectingWebSocket {
|
|
83
|
+
constructor(partySocketOptions) {
|
|
84
|
+
const wsOptions = getWSOptions(partySocketOptions);
|
|
85
|
+
super(wsOptions.urlProvider, wsOptions.protocols, wsOptions.socketOptions);
|
|
86
|
+
this.partySocketOptions = partySocketOptions;
|
|
87
|
+
this.setWSProperties(wsOptions);
|
|
88
|
+
}
|
|
89
|
+
_pk;
|
|
90
|
+
_pkurl;
|
|
91
|
+
name;
|
|
92
|
+
room;
|
|
93
|
+
host;
|
|
94
|
+
path;
|
|
95
|
+
updateProperties(partySocketOptions) {
|
|
96
|
+
const wsOptions = getWSOptions({
|
|
97
|
+
...this.partySocketOptions,
|
|
98
|
+
...partySocketOptions,
|
|
99
|
+
host: partySocketOptions.host ?? this.host,
|
|
100
|
+
room: partySocketOptions.room ?? this.room,
|
|
101
|
+
path: partySocketOptions.path ?? this.path
|
|
102
|
+
});
|
|
103
|
+
this._url = wsOptions.urlProvider;
|
|
104
|
+
this._protocols = wsOptions.protocols;
|
|
105
|
+
this._options = wsOptions.socketOptions;
|
|
106
|
+
this.setWSProperties(wsOptions);
|
|
107
|
+
}
|
|
108
|
+
setWSProperties(wsOptions) {
|
|
109
|
+
const { _pk, _pkurl, name, room, host, path } = wsOptions;
|
|
110
|
+
this._pk = _pk;
|
|
111
|
+
this._pkurl = _pkurl;
|
|
112
|
+
this.name = name;
|
|
113
|
+
this.room = room;
|
|
114
|
+
this.host = host;
|
|
115
|
+
this.path = path;
|
|
116
|
+
}
|
|
117
|
+
reconnect(code, reason) {
|
|
118
|
+
if (!this.room || !this.host) {
|
|
119
|
+
throw new Error(
|
|
120
|
+
"The room and host must be set before connecting, use `updateProperties` method to set them or pass them to the constructor."
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
super.reconnect(code, reason);
|
|
124
|
+
}
|
|
125
|
+
get id() {
|
|
126
|
+
return this._pk;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Exposes the static PartyKit room URL without applying query parameters.
|
|
130
|
+
* To access the currently connected WebSocket url, use PartySocket#url.
|
|
131
|
+
*/
|
|
132
|
+
get roomUrl() {
|
|
133
|
+
return this._pkurl;
|
|
134
|
+
}
|
|
135
|
+
// a `fetch` method that uses (almost) the same options as `PartySocket`
|
|
136
|
+
static async fetch(options, init) {
|
|
137
|
+
const party = getPartyInfo(options, "http");
|
|
138
|
+
const url =
|
|
139
|
+
typeof party.urlProvider === "string"
|
|
140
|
+
? party.urlProvider
|
|
141
|
+
: await party.urlProvider();
|
|
142
|
+
const doFetch = options.fetch ?? fetch;
|
|
143
|
+
return doFetch(url, init);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
function getWSOptions(partySocketOptions) {
|
|
147
|
+
const {
|
|
148
|
+
id,
|
|
149
|
+
host: _host,
|
|
150
|
+
path: _path,
|
|
151
|
+
party: _party,
|
|
152
|
+
room: _room,
|
|
153
|
+
protocol: _protocol,
|
|
154
|
+
query: _query,
|
|
155
|
+
protocols,
|
|
156
|
+
...socketOptions
|
|
157
|
+
} = partySocketOptions;
|
|
158
|
+
const _pk = id || generateUUID();
|
|
159
|
+
const party = getPartyInfo(partySocketOptions, "ws", { _pk });
|
|
160
|
+
return {
|
|
161
|
+
_pk,
|
|
162
|
+
_pkurl: party.partyUrl,
|
|
163
|
+
name: party.name,
|
|
164
|
+
room: party.room,
|
|
165
|
+
host: party.host,
|
|
166
|
+
path: party.path,
|
|
167
|
+
protocols,
|
|
168
|
+
socketOptions,
|
|
169
|
+
urlProvider: party.urlProvider
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export { PartySocket };
|
|
174
|
+
//# sourceMappingURL=index31.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index31.js","sources":["../../../node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/chunk-HAC622V3.mjs"],"sourcesContent":["import { ReconnectingWebSocket } from \"./chunk-S74YV6PU.mjs\";\n\n// src/index.ts\nvar valueIsNotNil = (keyValuePair) =>\n keyValuePair[1] !== null && keyValuePair[1] !== void 0;\nfunction generateUUID() {\n if (typeof crypto !== \"undefined\" && crypto.randomUUID) {\n return crypto.randomUUID();\n }\n let d = /* @__PURE__ */ new Date().getTime();\n let d2 =\n (typeof performance !== \"undefined\" &&\n performance.now &&\n performance.now() * 1e3) ||\n 0;\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function (c) {\n let r = Math.random() * 16;\n if (d > 0) {\n r = (d + r) % 16 | 0;\n d = Math.floor(d / 16);\n } else {\n r = (d2 + r) % 16 | 0;\n d2 = Math.floor(d2 / 16);\n }\n return (c === \"x\" ? r : (r & 3) | 8).toString(16);\n });\n}\nfunction getPartyInfo(partySocketOptions, defaultProtocol, defaultParams = {}) {\n const {\n host: rawHost,\n path: rawPath,\n protocol: rawProtocol,\n room,\n party,\n basePath,\n prefix,\n query\n } = partySocketOptions;\n let host = rawHost.replace(/^(http|https|ws|wss):\\/\\//, \"\");\n if (host.endsWith(\"/\")) {\n host = host.slice(0, -1);\n }\n if (rawPath == null ? void 0 : rawPath.startsWith(\"/\")) {\n throw new Error(\"path must not start with a slash\");\n }\n const name = party ?? \"main\";\n const path = rawPath ? `/${rawPath}` : \"\";\n const protocol =\n rawProtocol ||\n (host.startsWith(\"localhost:\") ||\n host.startsWith(\"127.0.0.1:\") ||\n host.startsWith(\"192.168.\") ||\n host.startsWith(\"10.\") ||\n (host.startsWith(\"172.\") &&\n host.split(\".\")[1] >= \"16\" &&\n host.split(\".\")[1] <= \"31\") ||\n host.startsWith(\"[::ffff:7f00:1]:\")\n ? // http / ws\n defaultProtocol\n : // https / wss\n `${defaultProtocol}s`);\n const baseUrl = `${protocol}://${host}/${basePath || `${prefix || \"parties\"}/${name}/${room}`}${path}`;\n const makeUrl = (query2 = {}) =>\n `${baseUrl}?${new URLSearchParams([\n ...Object.entries(defaultParams),\n ...Object.entries(query2).filter(valueIsNotNil)\n ])}`;\n const urlProvider =\n typeof query === \"function\"\n ? async () => makeUrl(await query())\n : makeUrl(query);\n return {\n host,\n path,\n room,\n name,\n protocol,\n partyUrl: baseUrl,\n urlProvider\n };\n}\nvar PartySocket = class extends ReconnectingWebSocket {\n constructor(partySocketOptions) {\n const wsOptions = getWSOptions(partySocketOptions);\n super(wsOptions.urlProvider, wsOptions.protocols, wsOptions.socketOptions);\n this.partySocketOptions = partySocketOptions;\n this.setWSProperties(wsOptions);\n }\n _pk;\n _pkurl;\n name;\n room;\n host;\n path;\n updateProperties(partySocketOptions) {\n const wsOptions = getWSOptions({\n ...this.partySocketOptions,\n ...partySocketOptions,\n host: partySocketOptions.host ?? this.host,\n room: partySocketOptions.room ?? this.room,\n path: partySocketOptions.path ?? this.path\n });\n this._url = wsOptions.urlProvider;\n this._protocols = wsOptions.protocols;\n this._options = wsOptions.socketOptions;\n this.setWSProperties(wsOptions);\n }\n setWSProperties(wsOptions) {\n const { _pk, _pkurl, name, room, host, path } = wsOptions;\n this._pk = _pk;\n this._pkurl = _pkurl;\n this.name = name;\n this.room = room;\n this.host = host;\n this.path = path;\n }\n reconnect(code, reason) {\n if (!this.room || !this.host) {\n throw new Error(\n \"The room and host must be set before connecting, use `updateProperties` method to set them or pass them to the constructor.\"\n );\n }\n super.reconnect(code, reason);\n }\n get id() {\n return this._pk;\n }\n /**\n * Exposes the static PartyKit room URL without applying query parameters.\n * To access the currently connected WebSocket url, use PartySocket#url.\n */\n get roomUrl() {\n return this._pkurl;\n }\n // a `fetch` method that uses (almost) the same options as `PartySocket`\n static async fetch(options, init) {\n const party = getPartyInfo(options, \"http\");\n const url =\n typeof party.urlProvider === \"string\"\n ? party.urlProvider\n : await party.urlProvider();\n const doFetch = options.fetch ?? fetch;\n return doFetch(url, init);\n }\n};\nfunction getWSOptions(partySocketOptions) {\n const {\n id,\n host: _host,\n path: _path,\n party: _party,\n room: _room,\n protocol: _protocol,\n query: _query,\n protocols,\n ...socketOptions\n } = partySocketOptions;\n const _pk = id || generateUUID();\n const party = getPartyInfo(partySocketOptions, \"ws\", { _pk });\n return {\n _pk,\n _pkurl: party.partyUrl,\n name: party.name,\n room: party.room,\n host: party.host,\n path: party.path,\n protocols,\n socketOptions,\n urlProvider: party.urlProvider\n };\n}\n\nexport { PartySocket };\n//# sourceMappingURL=chunk-HAC622V3.mjs.map\n"],"names":[],"mappings":";;AAEA;AACA,IAAI,aAAa,GAAG,CAAC,YAAY;AACjC,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,YAAY,CAAC,CAAC,CAAC,KAAK,MAAM;AACxD,SAAS,YAAY,GAAG;AACxB,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,UAAU,EAAE;AAC1D,IAAI,OAAO,MAAM,CAAC,UAAU,EAAE;AAC9B;AACA,EAAE,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;AAC9C,EAAE,IAAI,EAAE;AACR,IAAI,CAAC,OAAO,WAAW,KAAK,WAAW;AACvC,MAAM,WAAW,CAAC,GAAG;AACrB,MAAM,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG;AAC7B,IAAI,CAAC;AACL,EAAE,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;AAC9E,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE;AACf,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC;AAC1B,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC;AAC5B,KAAK,MAAM;AACX,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC;AAC3B,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;AAC9B;AACA,IAA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