@dcl/hammurabi-server 1.0.0-17268386187.commit-b609629
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/CLAUDE.md +90 -0
- package/LICENSE +201 -0
- package/README.md +125 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +79 -0
- package/dist/cli.js.map +1 -0
- package/dist/lib/babylon/avatar-rendering-system.d.ts +16 -0
- package/dist/lib/babylon/avatar-rendering-system.d.ts.map +1 -0
- package/dist/lib/babylon/avatar-rendering-system.js +96 -0
- package/dist/lib/babylon/avatar-rendering-system.js.map +1 -0
- package/dist/lib/babylon/avatars/AvatarRenderer.d.ts +40 -0
- package/dist/lib/babylon/avatars/AvatarRenderer.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/AvatarRenderer.js +260 -0
- package/dist/lib/babylon/avatars/AvatarRenderer.js.map +1 -0
- package/dist/lib/babylon/avatars/CharacterController.d.ts +88 -0
- package/dist/lib/babylon/avatars/CharacterController.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/CharacterController.js +463 -0
- package/dist/lib/babylon/avatars/CharacterController.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/body.d.ts +4 -0
- package/dist/lib/babylon/avatars/adr-65/body.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/body.js +47 -0
- package/dist/lib/babylon/avatars/adr-65/body.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/customizations.d.ts +11 -0
- package/dist/lib/babylon/avatars/adr-65/customizations.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/customizations.js +111 -0
- package/dist/lib/babylon/avatars/adr-65/customizations.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/emote.d.ts +9 -0
- package/dist/lib/babylon/avatars/adr-65/emote.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/emote.js +46 -0
- package/dist/lib/babylon/avatars/adr-65/emote.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/loader.d.ts +8 -0
- package/dist/lib/babylon/avatars/adr-65/loader.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/loader.js +54 -0
- package/dist/lib/babylon/avatars/adr-65/loader.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/representation.d.ts +12 -0
- package/dist/lib/babylon/avatars/adr-65/representation.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/representation.js +77 -0
- package/dist/lib/babylon/avatars/adr-65/representation.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/slots.d.ts +5 -0
- package/dist/lib/babylon/avatars/adr-65/slots.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/slots.js +62 -0
- package/dist/lib/babylon/avatars/adr-65/slots.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/types.d.ts +17 -0
- package/dist/lib/babylon/avatars/adr-65/types.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/types.js +3 -0
- package/dist/lib/babylon/avatars/adr-65/types.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/utils.d.ts +8 -0
- package/dist/lib/babylon/avatars/adr-65/utils.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/utils.js +29 -0
- package/dist/lib/babylon/avatars/adr-65/utils.js.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/wearable.d.ts +7 -0
- package/dist/lib/babylon/avatars/adr-65/wearable.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/adr-65/wearable.js +64 -0
- package/dist/lib/babylon/avatars/adr-65/wearable.js.map +1 -0
- package/dist/lib/babylon/avatars/avatar-asset-manager.d.ts +12 -0
- package/dist/lib/babylon/avatars/avatar-asset-manager.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/avatar-asset-manager.js +31 -0
- package/dist/lib/babylon/avatars/avatar-asset-manager.js.map +1 -0
- package/dist/lib/babylon/avatars/loader.d.ts +6 -0
- package/dist/lib/babylon/avatars/loader.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/loader.js +108 -0
- package/dist/lib/babylon/avatars/loader.js.map +1 -0
- package/dist/lib/babylon/avatars/urn.d.ts +2 -0
- package/dist/lib/babylon/avatars/urn.d.ts.map +1 -0
- package/dist/lib/babylon/avatars/urn.js +9 -0
- package/dist/lib/babylon/avatars/urn.js.map +1 -0
- package/dist/lib/babylon/index.d.ts +6 -0
- package/dist/lib/babylon/index.d.ts.map +1 -0
- package/dist/lib/babylon/index.js +85 -0
- package/dist/lib/babylon/index.js.map +1 -0
- package/dist/lib/babylon/input.d.ts +35 -0
- package/dist/lib/babylon/input.d.ts.map +1 -0
- package/dist/lib/babylon/input.js +137 -0
- package/dist/lib/babylon/input.js.map +1 -0
- package/dist/lib/babylon/scene/AssetManager.d.ts +19 -0
- package/dist/lib/babylon/scene/AssetManager.d.ts.map +1 -0
- package/dist/lib/babylon/scene/AssetManager.js +271 -0
- package/dist/lib/babylon/scene/AssetManager.js.map +1 -0
- package/dist/lib/babylon/scene/BabylonEntity.d.ts +84 -0
- package/dist/lib/babylon/scene/BabylonEntity.d.ts.map +1 -0
- package/dist/lib/babylon/scene/BabylonEntity.js +174 -0
- package/dist/lib/babylon/scene/BabylonEntity.js.map +1 -0
- package/dist/lib/babylon/scene/connect-context-rpc.d.ts +8 -0
- package/dist/lib/babylon/scene/connect-context-rpc.d.ts.map +1 -0
- package/dist/lib/babylon/scene/connect-context-rpc.js +210 -0
- package/dist/lib/babylon/scene/connect-context-rpc.js.map +1 -0
- package/dist/lib/babylon/scene/coordinates.d.ts +5 -0
- package/dist/lib/babylon/scene/coordinates.d.ts.map +1 -0
- package/dist/lib/babylon/scene/coordinates.js +17 -0
- package/dist/lib/babylon/scene/coordinates.js.map +1 -0
- package/dist/lib/babylon/scene/hot-reload.d.ts +9 -0
- package/dist/lib/babylon/scene/hot-reload.d.ts.map +1 -0
- package/dist/lib/babylon/scene/hot-reload.js +65 -0
- package/dist/lib/babylon/scene/hot-reload.js.map +1 -0
- package/dist/lib/babylon/scene/load.d.ts +54 -0
- package/dist/lib/babylon/scene/load.d.ts.map +1 -0
- package/dist/lib/babylon/scene/load.js +154 -0
- package/dist/lib/babylon/scene/load.js.map +1 -0
- package/dist/lib/babylon/scene/logic/apply-animations.d.ts +3 -0
- package/dist/lib/babylon/scene/logic/apply-animations.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/apply-animations.js +50 -0
- package/dist/lib/babylon/scene/logic/apply-animations.js.map +1 -0
- package/dist/lib/babylon/scene/logic/billboards.d.ts +3 -0
- package/dist/lib/babylon/scene/logic/billboards.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/billboards.js +12 -0
- package/dist/lib/babylon/scene/logic/billboards.js.map +1 -0
- package/dist/lib/babylon/scene/logic/camera-follows-player.d.ts +7 -0
- package/dist/lib/babylon/scene/logic/camera-follows-player.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/camera-follows-player.js +35 -0
- package/dist/lib/babylon/scene/logic/camera-follows-player.js.map +1 -0
- package/dist/lib/babylon/scene/logic/colliders.d.ts +9 -0
- package/dist/lib/babylon/scene/logic/colliders.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/colliders.js +79 -0
- package/dist/lib/babylon/scene/logic/colliders.js.map +1 -0
- package/dist/lib/babylon/scene/logic/cyclic-transform.d.ts +12 -0
- package/dist/lib/babylon/scene/logic/cyclic-transform.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/cyclic-transform.js +67 -0
- package/dist/lib/babylon/scene/logic/cyclic-transform.js.map +1 -0
- package/dist/lib/babylon/scene/logic/delayed-interpolation.d.ts +27 -0
- package/dist/lib/babylon/scene/logic/delayed-interpolation.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/delayed-interpolation.js +49 -0
- package/dist/lib/babylon/scene/logic/delayed-interpolation.js.map +1 -0
- package/dist/lib/babylon/scene/logic/easings.d.ts +7 -0
- package/dist/lib/babylon/scene/logic/easings.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/easings.js +100 -0
- package/dist/lib/babylon/scene/logic/easings.js.map +1 -0
- package/dist/lib/babylon/scene/logic/hide-camera-obstuction-system.d.ts +5 -0
- package/dist/lib/babylon/scene/logic/hide-camera-obstuction-system.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/hide-camera-obstuction-system.js +145 -0
- package/dist/lib/babylon/scene/logic/hide-camera-obstuction-system.js.map +1 -0
- package/dist/lib/babylon/scene/logic/local-avatar-scene.d.ts +10 -0
- package/dist/lib/babylon/scene/logic/local-avatar-scene.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/local-avatar-scene.js +50 -0
- package/dist/lib/babylon/scene/logic/local-avatar-scene.js.map +1 -0
- package/dist/lib/babylon/scene/logic/pointer-events.d.ts +12 -0
- package/dist/lib/babylon/scene/logic/pointer-events.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/pointer-events.js +199 -0
- package/dist/lib/babylon/scene/logic/pointer-events.js.map +1 -0
- package/dist/lib/babylon/scene/logic/raycasts.d.ts +21 -0
- package/dist/lib/babylon/scene/logic/raycasts.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/raycasts.js +142 -0
- package/dist/lib/babylon/scene/logic/raycasts.js.map +1 -0
- package/dist/lib/babylon/scene/logic/static-entities.d.ts +18 -0
- package/dist/lib/babylon/scene/logic/static-entities.d.ts.map +1 -0
- package/dist/lib/babylon/scene/logic/static-entities.js +64 -0
- package/dist/lib/babylon/scene/logic/static-entities.js.map +1 -0
- package/dist/lib/babylon/scene/nodejs-runtime.d.ts +4 -0
- package/dist/lib/babylon/scene/nodejs-runtime.d.ts.map +1 -0
- package/dist/lib/babylon/scene/nodejs-runtime.js +100 -0
- package/dist/lib/babylon/scene/nodejs-runtime.js.map +1 -0
- package/dist/lib/babylon/scene/scene-context.d.ts +116 -0
- package/dist/lib/babylon/scene/scene-context.d.ts.map +1 -0
- package/dist/lib/babylon/scene/scene-context.js +492 -0
- package/dist/lib/babylon/scene/scene-context.js.map +1 -0
- package/dist/lib/babylon/scene/scene-culling.d.ts +6 -0
- package/dist/lib/babylon/scene/scene-culling.d.ts.map +1 -0
- package/dist/lib/babylon/scene/scene-culling.js +23 -0
- package/dist/lib/babylon/scene/scene-culling.js.map +1 -0
- package/dist/lib/babylon/scene/update-scheduler.d.ts +7 -0
- package/dist/lib/babylon/scene/update-scheduler.d.ts.map +1 -0
- package/dist/lib/babylon/scene/update-scheduler.js +40 -0
- package/dist/lib/babylon/scene/update-scheduler.js.map +1 -0
- package/dist/lib/babylon/time-based-animation.d.ts +13 -0
- package/dist/lib/babylon/time-based-animation.d.ts.map +1 -0
- package/dist/lib/babylon/time-based-animation.js +35 -0
- package/dist/lib/babylon/time-based-animation.js.map +1 -0
- package/dist/lib/babylon/visual/ambientLights.d.ts +6 -0
- package/dist/lib/babylon/visual/ambientLights.d.ts.map +1 -0
- package/dist/lib/babylon/visual/ambientLights.js +65 -0
- package/dist/lib/babylon/visual/ambientLights.js.map +1 -0
- package/dist/lib/babylon/visual/glowLayer.d.ts +6 -0
- package/dist/lib/babylon/visual/glowLayer.d.ts.map +1 -0
- package/dist/lib/babylon/visual/glowLayer.js +59 -0
- package/dist/lib/babylon/visual/glowLayer.js.map +1 -0
- package/dist/lib/babylon/visual/parcelOutline.d.ts +7 -0
- package/dist/lib/babylon/visual/parcelOutline.d.ts.map +1 -0
- package/dist/lib/babylon/visual/parcelOutline.js +88 -0
- package/dist/lib/babylon/visual/parcelOutline.js.map +1 -0
- package/dist/lib/babylon/visual/reticle.d.ts +3 -0
- package/dist/lib/babylon/visual/reticle.d.ts.map +1 -0
- package/dist/lib/babylon/visual/reticle.js +60 -0
- package/dist/lib/babylon/visual/reticle.js.map +1 -0
- package/dist/lib/babylon/visual/ui.d.ts +8 -0
- package/dist/lib/babylon/visual/ui.d.ts.map +1 -0
- package/dist/lib/babylon/visual/ui.js +54 -0
- package/dist/lib/babylon/visual/ui.js.map +1 -0
- package/dist/lib/common-runtime/game-loop.d.ts +4 -0
- package/dist/lib/common-runtime/game-loop.d.ts.map +1 -0
- package/dist/lib/common-runtime/game-loop.js +31 -0
- package/dist/lib/common-runtime/game-loop.js.map +1 -0
- package/dist/lib/common-runtime/modules.d.ts +244 -0
- package/dist/lib/common-runtime/modules.d.ts.map +1 -0
- package/dist/lib/common-runtime/modules.js +74 -0
- package/dist/lib/common-runtime/modules.js.map +1 -0
- package/dist/lib/common-runtime/startup.d.ts +8 -0
- package/dist/lib/common-runtime/startup.d.ts.map +1 -0
- package/dist/lib/common-runtime/startup.js +45 -0
- package/dist/lib/common-runtime/startup.js.map +1 -0
- package/dist/lib/common-runtime/types.d.ts +15 -0
- package/dist/lib/common-runtime/types.d.ts.map +1 -0
- package/dist/lib/common-runtime/types.js +7 -0
- package/dist/lib/common-runtime/types.js.map +1 -0
- package/dist/lib/decentraland/ByteBuffer/index.d.ts +75 -0
- package/dist/lib/decentraland/ByteBuffer/index.d.ts.map +1 -0
- package/dist/lib/decentraland/ByteBuffer/index.js +279 -0
- package/dist/lib/decentraland/ByteBuffer/index.js.map +1 -0
- package/dist/lib/decentraland/ByteBuffer/types.d.ts +109 -0
- package/dist/lib/decentraland/ByteBuffer/types.d.ts.map +1 -0
- package/dist/lib/decentraland/ByteBuffer/types.js +3 -0
- package/dist/lib/decentraland/ByteBuffer/types.js.map +1 -0
- package/dist/lib/decentraland/communications/CommsTransportWrapper.d.ts +45 -0
- package/dist/lib/decentraland/communications/CommsTransportWrapper.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/CommsTransportWrapper.js +174 -0
- package/dist/lib/decentraland/communications/CommsTransportWrapper.js.map +1 -0
- package/dist/lib/decentraland/communications/avatar-communication-system.d.ts +18 -0
- package/dist/lib/decentraland/communications/avatar-communication-system.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/avatar-communication-system.js +203 -0
- package/dist/lib/decentraland/communications/avatar-communication-system.js.map +1 -0
- package/dist/lib/decentraland/communications/connect-adapter.d.ts +5 -0
- package/dist/lib/decentraland/communications/connect-adapter.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/connect-adapter.js +110 -0
- package/dist/lib/decentraland/communications/connect-adapter.js.map +1 -0
- package/dist/lib/decentraland/communications/connect-transport.d.ts +5 -0
- package/dist/lib/decentraland/communications/connect-transport.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/connect-transport.js +32 -0
- package/dist/lib/decentraland/communications/connect-transport.js.map +1 -0
- package/dist/lib/decentraland/communications/networked-profile-system.d.ts +10 -0
- package/dist/lib/decentraland/communications/networked-profile-system.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/networked-profile-system.js +73 -0
- package/dist/lib/decentraland/communications/networked-profile-system.js.map +1 -0
- package/dist/lib/decentraland/communications/player-entity-manager.d.ts +55 -0
- package/dist/lib/decentraland/communications/player-entity-manager.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/player-entity-manager.js +167 -0
- package/dist/lib/decentraland/communications/player-entity-manager.js.map +1 -0
- package/dist/lib/decentraland/communications/position-report-system.d.ts +8 -0
- package/dist/lib/decentraland/communications/position-report-system.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/position-report-system.js +51 -0
- package/dist/lib/decentraland/communications/position-report-system.js.map +1 -0
- package/dist/lib/decentraland/communications/realm-communications-system.d.ts +17 -0
- package/dist/lib/decentraland/communications/realm-communications-system.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/realm-communications-system.js +111 -0
- package/dist/lib/decentraland/communications/realm-communications-system.js.map +1 -0
- package/dist/lib/decentraland/communications/scene-comms.d.ts +9 -0
- package/dist/lib/decentraland/communications/scene-comms.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/scene-comms.js +20 -0
- package/dist/lib/decentraland/communications/scene-comms.js.map +1 -0
- package/dist/lib/decentraland/communications/transports/livekit.d.ts +27 -0
- package/dist/lib/decentraland/communications/transports/livekit.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/transports/livekit.js +135 -0
- package/dist/lib/decentraland/communications/transports/livekit.js.map +1 -0
- package/dist/lib/decentraland/communications/transports/ws-room.d.ts +26 -0
- package/dist/lib/decentraland/communications/transports/ws-room.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/transports/ws-room.js +235 -0
- package/dist/lib/decentraland/communications/transports/ws-room.js.map +1 -0
- package/dist/lib/decentraland/communications/types.d.ts +76 -0
- package/dist/lib/decentraland/communications/types.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/types.js +6 -0
- package/dist/lib/decentraland/communications/types.js.map +1 -0
- package/dist/lib/decentraland/communications/ws-async-channel.d.ts +6 -0
- package/dist/lib/decentraland/communications/ws-async-channel.d.ts.map +1 -0
- package/dist/lib/decentraland/communications/ws-async-channel.js +52 -0
- package/dist/lib/decentraland/communications/ws-async-channel.js.map +1 -0
- package/dist/lib/decentraland/crdt-internal/components.d.ts +156 -0
- package/dist/lib/decentraland/crdt-internal/components.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-internal/components.js +8 -0
- package/dist/lib/decentraland/crdt-internal/components.js.map +1 -0
- package/dist/lib/decentraland/crdt-internal/conflict-resolution.d.ts +45 -0
- package/dist/lib/decentraland/crdt-internal/conflict-resolution.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-internal/conflict-resolution.js +49 -0
- package/dist/lib/decentraland/crdt-internal/conflict-resolution.js.map +1 -0
- package/dist/lib/decentraland/crdt-internal/dataCompare.d.ts +6 -0
- package/dist/lib/decentraland/crdt-internal/dataCompare.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-internal/dataCompare.js +34 -0
- package/dist/lib/decentraland/crdt-internal/dataCompare.js.map +1 -0
- package/dist/lib/decentraland/crdt-internal/generational-index-pool.d.ts +22 -0
- package/dist/lib/decentraland/crdt-internal/generational-index-pool.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-internal/generational-index-pool.js +91 -0
- package/dist/lib/decentraland/crdt-internal/generational-index-pool.js.map +1 -0
- package/dist/lib/decentraland/crdt-internal/grow-only-set.d.ts +10 -0
- package/dist/lib/decentraland/crdt-internal/grow-only-set.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-internal/grow-only-set.js +129 -0
- package/dist/lib/decentraland/crdt-internal/grow-only-set.js.map +1 -0
- package/dist/lib/decentraland/crdt-internal/last-write-win-element-set.d.ts +11 -0
- package/dist/lib/decentraland/crdt-internal/last-write-win-element-set.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-internal/last-write-win-element-set.js +224 -0
- package/dist/lib/decentraland/crdt-internal/last-write-win-element-set.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/appendValue.d.ts +15 -0
- package/dist/lib/decentraland/crdt-wire-protocol/appendValue.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/appendValue.js +50 -0
- package/dist/lib/decentraland/crdt-wire-protocol/appendValue.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/crdtMessageProtocol.d.ts +31 -0
- package/dist/lib/decentraland/crdt-wire-protocol/crdtMessageProtocol.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/crdtMessageProtocol.js +72 -0
- package/dist/lib/decentraland/crdt-wire-protocol/crdtMessageProtocol.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/deleteComponent.d.ts +14 -0
- package/dist/lib/decentraland/crdt-wire-protocol/deleteComponent.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/deleteComponent.js +44 -0
- package/dist/lib/decentraland/crdt-wire-protocol/deleteComponent.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/deleteEntity.d.ts +11 -0
- package/dist/lib/decentraland/crdt-wire-protocol/deleteEntity.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/deleteEntity.js +35 -0
- package/dist/lib/decentraland/crdt-wire-protocol/deleteEntity.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/index.d.ts +8 -0
- package/dist/lib/decentraland/crdt-wire-protocol/index.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/index.js +24 -0
- package/dist/lib/decentraland/crdt-wire-protocol/index.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/message.d.ts +17 -0
- package/dist/lib/decentraland/crdt-wire-protocol/message.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/message.js +49 -0
- package/dist/lib/decentraland/crdt-wire-protocol/message.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/prettyPrint.d.ts +4 -0
- package/dist/lib/decentraland/crdt-wire-protocol/prettyPrint.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/prettyPrint.js +26 -0
- package/dist/lib/decentraland/crdt-wire-protocol/prettyPrint.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/putComponent.d.ts +15 -0
- package/dist/lib/decentraland/crdt-wire-protocol/putComponent.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/putComponent.js +48 -0
- package/dist/lib/decentraland/crdt-wire-protocol/putComponent.js.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/types.d.ts +80 -0
- package/dist/lib/decentraland/crdt-wire-protocol/types.d.ts.map +1 -0
- package/dist/lib/decentraland/crdt-wire-protocol/types.js +15 -0
- package/dist/lib/decentraland/crdt-wire-protocol/types.js.map +1 -0
- package/dist/lib/decentraland/identifiers.d.ts +6 -0
- package/dist/lib/decentraland/identifiers.d.ts.map +1 -0
- package/dist/lib/decentraland/identifiers.js +22 -0
- package/dist/lib/decentraland/identifiers.js.map +1 -0
- package/dist/lib/decentraland/identity/avatar.d.ts +4 -0
- package/dist/lib/decentraland/identity/avatar.d.ts.map +1 -0
- package/dist/lib/decentraland/identity/avatar.js +57 -0
- package/dist/lib/decentraland/identity/avatar.js.map +1 -0
- package/dist/lib/decentraland/identity/login.d.ts +8 -0
- package/dist/lib/decentraland/identity/login.d.ts.map +1 -0
- package/dist/lib/decentraland/identity/login.js +121 -0
- package/dist/lib/decentraland/identity/login.js.map +1 -0
- package/dist/lib/decentraland/identity/signed-fetch.d.ts +17 -0
- package/dist/lib/decentraland/identity/signed-fetch.d.ts.map +1 -0
- package/dist/lib/decentraland/identity/signed-fetch.js +47 -0
- package/dist/lib/decentraland/identity/signed-fetch.js.map +1 -0
- package/dist/lib/decentraland/identity/types.d.ts +11 -0
- package/dist/lib/decentraland/identity/types.d.ts.map +1 -0
- package/dist/lib/decentraland/identity/types.js +3 -0
- package/dist/lib/decentraland/identity/types.js.map +1 -0
- package/dist/lib/decentraland/positions.d.ts +15 -0
- package/dist/lib/decentraland/positions.d.ts.map +1 -0
- package/dist/lib/decentraland/positions.js +40 -0
- package/dist/lib/decentraland/positions.js.map +1 -0
- package/dist/lib/decentraland/realm/resolution.d.ts +2 -0
- package/dist/lib/decentraland/realm/resolution.d.ts.map +1 -0
- package/dist/lib/decentraland/realm/resolution.js +39 -0
- package/dist/lib/decentraland/realm/resolution.js.map +1 -0
- package/dist/lib/decentraland/scene/content-server-entity.d.ts +34 -0
- package/dist/lib/decentraland/scene/content-server-entity.d.ts.map +1 -0
- package/dist/lib/decentraland/scene/content-server-entity.js +22 -0
- package/dist/lib/decentraland/scene/content-server-entity.js.map +1 -0
- package/dist/lib/decentraland/scene/spawn-points.d.ts +16 -0
- package/dist/lib/decentraland/scene/spawn-points.d.ts.map +1 -0
- package/dist/lib/decentraland/scene/spawn-points.js +78 -0
- package/dist/lib/decentraland/scene/spawn-points.js.map +1 -0
- package/dist/lib/decentraland/scene/types.d.ts +38 -0
- package/dist/lib/decentraland/scene/types.d.ts.map +1 -0
- package/dist/lib/decentraland/scene/types.js +3 -0
- package/dist/lib/decentraland/scene/types.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/animator-component.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/animator-component.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/animator-component.js +12 -0
- package/dist/lib/decentraland/sdk-components/animator-component.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/avatar-base.d.ts +5 -0
- package/dist/lib/decentraland/sdk-components/avatar-base.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/avatar-base.js +40 -0
- package/dist/lib/decentraland/sdk-components/avatar-base.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/avatar-customizations.d.ts +5 -0
- package/dist/lib/decentraland/sdk-components/avatar-customizations.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/avatar-customizations.js +9 -0
- package/dist/lib/decentraland/sdk-components/avatar-customizations.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/avatar-shape.d.ts +5 -0
- package/dist/lib/decentraland/sdk-components/avatar-shape.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/avatar-shape.js +33 -0
- package/dist/lib/decentraland/sdk-components/avatar-shape.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/billboard-component.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/billboard-component.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/billboard-component.js +15 -0
- package/dist/lib/decentraland/sdk-components/billboard-component.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/delayed-interpolation.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/delayed-interpolation.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/delayed-interpolation.js +15 -0
- package/dist/lib/decentraland/sdk-components/delayed-interpolation.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/engine-info.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/engine-info.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/engine-info.js +7 -0
- package/dist/lib/decentraland/sdk-components/engine-info.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/gltf-component.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/gltf-component.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/gltf-component.js +114 -0
- package/dist/lib/decentraland/sdk-components/gltf-component.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/gltf-loading-state.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/gltf-loading-state.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/gltf-loading-state.js +7 -0
- package/dist/lib/decentraland/sdk-components/gltf-loading-state.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/material-component.d.ts +5 -0
- package/dist/lib/decentraland/sdk-components/material-component.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/material-component.js +92 -0
- package/dist/lib/decentraland/sdk-components/material-component.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/mesh-collider-component.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/mesh-collider-component.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/mesh-collider-component.js +37 -0
- package/dist/lib/decentraland/sdk-components/mesh-collider-component.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/mesh-renderer-component.d.ts +5 -0
- package/dist/lib/decentraland/sdk-components/mesh-renderer-component.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/mesh-renderer-component.js +111 -0
- package/dist/lib/decentraland/sdk-components/mesh-renderer-component.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/pb-based-component-helper.d.ts +10 -0
- package/dist/lib/decentraland/sdk-components/pb-based-component-helper.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/pb-based-component-helper.js +23 -0
- package/dist/lib/decentraland/sdk-components/pb-based-component-helper.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/player-identity-data.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/player-identity-data.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/player-identity-data.js +7 -0
- package/dist/lib/decentraland/sdk-components/player-identity-data.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/pointer-events-result.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/pointer-events-result.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/pointer-events-result.js +7 -0
- package/dist/lib/decentraland/sdk-components/pointer-events-result.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/pointer-events.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/pointer-events.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/pointer-events.js +15 -0
- package/dist/lib/decentraland/sdk-components/pointer-events.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/raycast-component.d.ts +5 -0
- package/dist/lib/decentraland/sdk-components/raycast-component.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/raycast-component.js +66 -0
- package/dist/lib/decentraland/sdk-components/raycast-component.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/transform-component.d.ts +13 -0
- package/dist/lib/decentraland/sdk-components/transform-component.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/transform-component.js +84 -0
- package/dist/lib/decentraland/sdk-components/transform-component.js.map +1 -0
- package/dist/lib/decentraland/sdk-components/tween.d.ts +3 -0
- package/dist/lib/decentraland/sdk-components/tween.d.ts.map +1 -0
- package/dist/lib/decentraland/sdk-components/tween.js +15 -0
- package/dist/lib/decentraland/sdk-components/tween.js.map +1 -0
- package/dist/lib/decentraland/state.d.ts +24 -0
- package/dist/lib/decentraland/state.d.ts.map +1 -0
- package/dist/lib/decentraland/state.js +16 -0
- package/dist/lib/decentraland/state.js.map +1 -0
- package/dist/lib/decentraland/system.d.ts +7 -0
- package/dist/lib/decentraland/system.d.ts.map +1 -0
- package/dist/lib/decentraland/system.js +13 -0
- package/dist/lib/decentraland/system.js.map +1 -0
- package/dist/lib/decentraland/types.d.ts +9 -0
- package/dist/lib/decentraland/types.d.ts.map +1 -0
- package/dist/lib/decentraland/types.js +3 -0
- package/dist/lib/decentraland/types.js.map +1 -0
- package/dist/lib/decentraland/virtual-scene.d.ts +12 -0
- package/dist/lib/decentraland/virtual-scene.d.ts.map +1 -0
- package/dist/lib/decentraland/virtual-scene.js +3 -0
- package/dist/lib/decentraland/virtual-scene.js.map +1 -0
- package/dist/lib/engine-main.d.ts +8 -0
- package/dist/lib/engine-main.d.ts.map +1 -0
- package/dist/lib/engine-main.js +103 -0
- package/dist/lib/engine-main.js.map +1 -0
- package/dist/lib/misc/atom.d.ts +13 -0
- package/dist/lib/misc/atom.d.ts.map +1 -0
- package/dist/lib/misc/atom.js +66 -0
- package/dist/lib/misc/atom.js.map +1 -0
- package/dist/lib/misc/bit-operations.d.ts +3 -0
- package/dist/lib/misc/bit-operations.d.ts.map +1 -0
- package/dist/lib/misc/bit-operations.js +14 -0
- package/dist/lib/misc/bit-operations.js.map +1 -0
- package/dist/lib/misc/flat-fetch.d.ts +16 -0
- package/dist/lib/misc/flat-fetch.d.ts.map +1 -0
- package/dist/lib/misc/flat-fetch.js +26 -0
- package/dist/lib/misc/flat-fetch.js.map +1 -0
- package/dist/lib/misc/json.d.ts +3 -0
- package/dist/lib/misc/json.d.ts.map +1 -0
- package/dist/lib/misc/json.js +24 -0
- package/dist/lib/misc/json.js.map +1 -0
- package/dist/lib/misc/logger.d.ts +6 -0
- package/dist/lib/misc/logger.d.ts.map +1 -0
- package/dist/lib/misc/logger.js +24 -0
- package/dist/lib/misc/logger.js.map +1 -0
- package/dist/lib/misc/memoize.d.ts +2 -0
- package/dist/lib/misc/memoize.d.ts.map +1 -0
- package/dist/lib/misc/memoize.js +16 -0
- package/dist/lib/misc/memoize.js.map +1 -0
- package/dist/lib/misc/promises.d.ts +3 -0
- package/dist/lib/misc/promises.d.ts.map +1 -0
- package/dist/lib/misc/promises.js +14 -0
- package/dist/lib/misc/promises.js.map +1 -0
- package/dist/lib/polyfills/xmlhttprequest.d.ts +6 -0
- package/dist/lib/polyfills/xmlhttprequest.d.ts.map +1 -0
- package/dist/lib/polyfills/xmlhttprequest.js +127 -0
- package/dist/lib/polyfills/xmlhttprequest.js.map +1 -0
- package/dist/lib/quick-js/convert-handles.d.ts +14 -0
- package/dist/lib/quick-js/convert-handles.d.ts.map +1 -0
- package/dist/lib/quick-js/convert-handles.js +83 -0
- package/dist/lib/quick-js/convert-handles.js.map +1 -0
- package/dist/lib/quick-js/index.d.ts +12 -0
- package/dist/lib/quick-js/index.d.ts.map +1 -0
- package/dist/lib/quick-js/index.js +159 -0
- package/dist/lib/quick-js/index.js.map +1 -0
- package/dist/lib/quick-js/rpc-scene-runtime.d.ts +13 -0
- package/dist/lib/quick-js/rpc-scene-runtime.d.ts.map +1 -0
- package/dist/lib/quick-js/rpc-scene-runtime.js +32 -0
- package/dist/lib/quick-js/rpc-scene-runtime.js.map +1 -0
- package/dist/lib/quick-js/types.d.ts +35 -0
- package/dist/lib/quick-js/types.d.ts.map +1 -0
- package/dist/lib/quick-js/types.js +3 -0
- package/dist/lib/quick-js/types.js.map +1 -0
- package/dist/lib/web-worker-runtime/context.d.ts +12 -0
- package/dist/lib/web-worker-runtime/context.d.ts.map +1 -0
- package/dist/lib/web-worker-runtime/context.js +97 -0
- package/dist/lib/web-worker-runtime/context.js.map +1 -0
- package/dist/lib/web-worker-runtime/sandbox.d.ts +9 -0
- package/dist/lib/web-worker-runtime/sandbox.d.ts.map +1 -0
- package/dist/lib/web-worker-runtime/sandbox.js +98 -0
- package/dist/lib/web-worker-runtime/sandbox.js.map +1 -0
- package/dist/lib/web-worker-runtime/web-worker-scene-runtime.d.ts +13 -0
- package/dist/lib/web-worker-runtime/web-worker-scene-runtime.d.ts.map +1 -0
- package/dist/lib/web-worker-runtime/web-worker-scene-runtime.js +32 -0
- package/dist/lib/web-worker-runtime/web-worker-scene-runtime.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the module bindings for the client VM of the SDK.
|
|
3
|
+
*/
|
|
4
|
+
import { CrdtSendToRendererRequest } from '@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen';
|
|
5
|
+
import { RpcClientPort } from '@dcl/rpc';
|
|
6
|
+
export declare function loadModuleForPort(port: RpcClientPort, moduleName: string): import("@dcl/rpc/dist/codegen-types").RawClient<import("@dcl/rpc/dist/codegen-types").FromTsProtoServiceDefinition<{
|
|
7
|
+
readonly name: "RuntimeService";
|
|
8
|
+
readonly fullName: "decentraland.kernel.apis.RuntimeService";
|
|
9
|
+
readonly methods: {
|
|
10
|
+
readonly getRealm: {
|
|
11
|
+
readonly name: "GetRealm";
|
|
12
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").GetRealmRequest;
|
|
13
|
+
readonly requestStream: false;
|
|
14
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").GetRealmResponse;
|
|
15
|
+
readonly responseStream: false;
|
|
16
|
+
readonly options: {};
|
|
17
|
+
};
|
|
18
|
+
readonly getWorldTime: {
|
|
19
|
+
readonly name: "GetWorldTime";
|
|
20
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").GetWorldTimeRequest;
|
|
21
|
+
readonly requestStream: false;
|
|
22
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").GetWorldTimeResponse;
|
|
23
|
+
readonly responseStream: false;
|
|
24
|
+
readonly options: {};
|
|
25
|
+
};
|
|
26
|
+
readonly readFile: {
|
|
27
|
+
readonly name: "ReadFile";
|
|
28
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").ReadFileRequest;
|
|
29
|
+
readonly requestStream: false;
|
|
30
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").ReadFileResponse;
|
|
31
|
+
readonly responseStream: false;
|
|
32
|
+
readonly options: {};
|
|
33
|
+
};
|
|
34
|
+
readonly getSceneInformation: {
|
|
35
|
+
readonly name: "GetSceneInformation";
|
|
36
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").CurrentSceneEntityRequest;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").CurrentSceneEntityResponse;
|
|
39
|
+
readonly responseStream: false;
|
|
40
|
+
readonly options: {};
|
|
41
|
+
};
|
|
42
|
+
readonly getExplorerInformation: {
|
|
43
|
+
readonly name: "GetExplorerInformation";
|
|
44
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").GetExplorerInformationRequest;
|
|
45
|
+
readonly requestStream: false;
|
|
46
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").GetExplorerInformationResponse;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly options: {};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}>, {}> | import("@dcl/rpc/dist/codegen-types").RawClient<import("@dcl/rpc/dist/codegen-types").FromTsProtoServiceDefinition<{
|
|
52
|
+
readonly name: "CommunicationsControllerService";
|
|
53
|
+
readonly fullName: "decentraland.kernel.apis.CommunicationsControllerService";
|
|
54
|
+
readonly methods: {
|
|
55
|
+
readonly send: {
|
|
56
|
+
readonly name: "Send";
|
|
57
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/communications_controller.gen").RealSendRequest;
|
|
58
|
+
readonly requestStream: false;
|
|
59
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/communications_controller.gen").RealSendResponse;
|
|
60
|
+
readonly responseStream: false;
|
|
61
|
+
readonly options: {};
|
|
62
|
+
};
|
|
63
|
+
readonly sendBinary: {
|
|
64
|
+
readonly name: "SendBinary";
|
|
65
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/communications_controller.gen").SendBinaryRequest;
|
|
66
|
+
readonly requestStream: false;
|
|
67
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/communications_controller.gen").SendBinaryResponse;
|
|
68
|
+
readonly responseStream: false;
|
|
69
|
+
readonly options: {};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}>, {}> | import("@dcl/rpc/dist/codegen-types").RawClient<import("@dcl/rpc/dist/codegen-types").FromTsProtoServiceDefinition<{
|
|
73
|
+
readonly name: "UserIdentityService";
|
|
74
|
+
readonly fullName: "decentraland.kernel.apis.UserIdentityService";
|
|
75
|
+
readonly methods: {
|
|
76
|
+
readonly getUserPublicKey: {
|
|
77
|
+
readonly name: "GetUserPublicKey";
|
|
78
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/user_identity.gen").GetUserPublicKeyRequest;
|
|
79
|
+
readonly requestStream: false;
|
|
80
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/user_identity.gen").GetUserPublicKeyResponse;
|
|
81
|
+
readonly responseStream: false;
|
|
82
|
+
readonly options: {};
|
|
83
|
+
};
|
|
84
|
+
readonly getUserData: {
|
|
85
|
+
readonly name: "GetUserData";
|
|
86
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/user_identity.gen").GetUserDataRequest;
|
|
87
|
+
readonly requestStream: false;
|
|
88
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/user_identity.gen").GetUserDataResponse;
|
|
89
|
+
readonly responseStream: false;
|
|
90
|
+
readonly options: {};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}>, {}> | import("@dcl/rpc/dist/codegen-types").RawClient<import("@dcl/rpc/dist/codegen-types").FromTsProtoServiceDefinition<{
|
|
94
|
+
readonly name: "UserActionModuleService";
|
|
95
|
+
readonly fullName: "decentraland.kernel.apis.UserActionModuleService";
|
|
96
|
+
readonly methods: {
|
|
97
|
+
readonly requestTeleport: {
|
|
98
|
+
readonly name: "RequestTeleport";
|
|
99
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/user_action_module.gen").RequestTeleportRequest;
|
|
100
|
+
readonly requestStream: false;
|
|
101
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/user_action_module.gen").RequestTeleportResponse;
|
|
102
|
+
readonly responseStream: false;
|
|
103
|
+
readonly options: {};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}>, {}> | import("@dcl/rpc/dist/codegen-types").RawClient<import("@dcl/rpc/dist/codegen-types").FromTsProtoServiceDefinition<{
|
|
107
|
+
readonly name: "RestrictedActionsService";
|
|
108
|
+
readonly fullName: "decentraland.kernel.apis.RestrictedActionsService";
|
|
109
|
+
readonly methods: {
|
|
110
|
+
readonly movePlayerTo: {
|
|
111
|
+
readonly name: "MovePlayerTo";
|
|
112
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").MovePlayerToRequest;
|
|
113
|
+
readonly requestStream: false;
|
|
114
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").MovePlayerToResponse;
|
|
115
|
+
readonly responseStream: false;
|
|
116
|
+
readonly options: {};
|
|
117
|
+
};
|
|
118
|
+
readonly teleportTo: {
|
|
119
|
+
readonly name: "TeleportTo";
|
|
120
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").TeleportToRequest;
|
|
121
|
+
readonly requestStream: false;
|
|
122
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").TeleportToResponse;
|
|
123
|
+
readonly responseStream: false;
|
|
124
|
+
readonly options: {};
|
|
125
|
+
};
|
|
126
|
+
readonly triggerEmote: {
|
|
127
|
+
readonly name: "TriggerEmote";
|
|
128
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").TriggerEmoteRequest;
|
|
129
|
+
readonly requestStream: false;
|
|
130
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").TriggerEmoteResponse;
|
|
131
|
+
readonly responseStream: false;
|
|
132
|
+
readonly options: {};
|
|
133
|
+
};
|
|
134
|
+
readonly changeRealm: {
|
|
135
|
+
readonly name: "ChangeRealm";
|
|
136
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").ChangeRealmRequest;
|
|
137
|
+
readonly requestStream: false;
|
|
138
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").SuccessResponse;
|
|
139
|
+
readonly responseStream: false;
|
|
140
|
+
readonly options: {};
|
|
141
|
+
};
|
|
142
|
+
readonly openExternalUrl: {
|
|
143
|
+
readonly name: "OpenExternalUrl";
|
|
144
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").OpenExternalUrlRequest;
|
|
145
|
+
readonly requestStream: false;
|
|
146
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").SuccessResponse;
|
|
147
|
+
readonly responseStream: false;
|
|
148
|
+
readonly options: {};
|
|
149
|
+
};
|
|
150
|
+
readonly openNftDialog: {
|
|
151
|
+
readonly name: "OpenNftDialog";
|
|
152
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").OpenNftDialogRequest;
|
|
153
|
+
readonly requestStream: false;
|
|
154
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").SuccessResponse;
|
|
155
|
+
readonly responseStream: false;
|
|
156
|
+
readonly options: {};
|
|
157
|
+
};
|
|
158
|
+
readonly setCommunicationsAdapter: {
|
|
159
|
+
readonly name: "SetCommunicationsAdapter";
|
|
160
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").CommsAdapterRequest;
|
|
161
|
+
readonly requestStream: false;
|
|
162
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").SuccessResponse;
|
|
163
|
+
readonly responseStream: false;
|
|
164
|
+
readonly options: {};
|
|
165
|
+
};
|
|
166
|
+
readonly triggerSceneEmote: {
|
|
167
|
+
readonly name: "TriggerSceneEmote";
|
|
168
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").TriggerSceneEmoteRequest;
|
|
169
|
+
readonly requestStream: false;
|
|
170
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen").SuccessResponse;
|
|
171
|
+
readonly responseStream: false;
|
|
172
|
+
readonly options: {};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
}>, {}> | import("@dcl/rpc/dist/codegen-types").RawClient<import("@dcl/rpc/dist/codegen-types").FromTsProtoServiceDefinition<{
|
|
176
|
+
readonly name: "SignedFetchService";
|
|
177
|
+
readonly fullName: "decentraland.kernel.apis.SignedFetchService";
|
|
178
|
+
readonly methods: {
|
|
179
|
+
readonly signedFetch: {
|
|
180
|
+
readonly name: "SignedFetch";
|
|
181
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/signed_fetch.gen").SignedFetchRequest;
|
|
182
|
+
readonly requestStream: false;
|
|
183
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/signed_fetch.gen").FlatFetchResponse;
|
|
184
|
+
readonly responseStream: false;
|
|
185
|
+
readonly options: {};
|
|
186
|
+
};
|
|
187
|
+
readonly getHeaders: {
|
|
188
|
+
readonly name: "GetHeaders";
|
|
189
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/signed_fetch.gen").SignedFetchRequest;
|
|
190
|
+
readonly requestStream: false;
|
|
191
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/signed_fetch.gen").GetHeadersResponse;
|
|
192
|
+
readonly responseStream: false;
|
|
193
|
+
readonly options: {};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
}>, {}> | import("@dcl/rpc/dist/codegen-types").RawClient<import("@dcl/rpc/dist/codegen-types").FromTsProtoServiceDefinition<{
|
|
197
|
+
readonly name: "TestingService";
|
|
198
|
+
readonly fullName: "decentraland.kernel.apis.TestingService";
|
|
199
|
+
readonly methods: {
|
|
200
|
+
readonly logTestResult: {
|
|
201
|
+
readonly name: "LogTestResult";
|
|
202
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen").TestResult;
|
|
203
|
+
readonly requestStream: false;
|
|
204
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen").TestResultResponse;
|
|
205
|
+
readonly responseStream: false;
|
|
206
|
+
readonly options: {};
|
|
207
|
+
};
|
|
208
|
+
readonly plan: {
|
|
209
|
+
readonly name: "Plan";
|
|
210
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen").TestPlan;
|
|
211
|
+
readonly requestStream: false;
|
|
212
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen").TestPlanResponse;
|
|
213
|
+
readonly responseStream: false;
|
|
214
|
+
readonly options: {};
|
|
215
|
+
};
|
|
216
|
+
readonly setCameraTransform: {
|
|
217
|
+
readonly name: "SetCameraTransform";
|
|
218
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen").SetCameraTransformTestCommand;
|
|
219
|
+
readonly requestStream: false;
|
|
220
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen").SetCameraTransformTestCommandResponse;
|
|
221
|
+
readonly responseStream: false;
|
|
222
|
+
readonly options: {};
|
|
223
|
+
};
|
|
224
|
+
readonly takeAndCompareScreenshot: {
|
|
225
|
+
readonly name: "TakeAndCompareScreenshot";
|
|
226
|
+
readonly requestType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen").TakeAndCompareScreenshotRequest;
|
|
227
|
+
readonly requestStream: false;
|
|
228
|
+
readonly responseType: typeof import("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen").TakeAndCompareScreenshotResponse;
|
|
229
|
+
readonly responseStream: false;
|
|
230
|
+
readonly options: {};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
}>, {}> | {
|
|
234
|
+
isServer(): Promise<{
|
|
235
|
+
isServer: boolean;
|
|
236
|
+
}>;
|
|
237
|
+
crdtSendToRenderer(payload: CrdtSendToRendererRequest): Promise<import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").CrdtSendToResponse>;
|
|
238
|
+
sendBatch: import("@dcl/rpc/dist/codegen-types").UnaryClientMethod<import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").ManyEntityAction, import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").SendBatchResponse, {}>;
|
|
239
|
+
subscribe: import("@dcl/rpc/dist/codegen-types").UnaryClientMethod<import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").SubscribeRequest, import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").SubscribeResponse, {}>;
|
|
240
|
+
unsubscribe: import("@dcl/rpc/dist/codegen-types").UnaryClientMethod<import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").UnsubscribeRequest, import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").UnsubscribeResponse, {}>;
|
|
241
|
+
crdtGetState: import("@dcl/rpc/dist/codegen-types").UnaryClientMethod<CrdtSendToRendererRequest, import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").CrdtGetStateResponse, {}>;
|
|
242
|
+
crdtGetMessageFromRenderer: import("@dcl/rpc/dist/codegen-types").UnaryClientMethod<import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").CrdtMessageFromRendererRequest, import("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen").CrdtMessageFromRendererResponse, {}>;
|
|
243
|
+
};
|
|
244
|
+
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/lib/common-runtime/modules.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAA8B,yBAAyB,EAAE,MAAM,8DAA8D,CAAA;AAEpI,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAUxC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAW/B,yBAAyB;;;;;;EAsBlE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file contains the module bindings for the client VM of the SDK.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.loadModuleForPort = void 0;
|
|
30
|
+
const engine_api_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen");
|
|
31
|
+
const testing_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/testing.gen");
|
|
32
|
+
const codegen = __importStar(require("@dcl/rpc/dist/codegen"));
|
|
33
|
+
const convert_handles_1 = require("../quick-js/convert-handles");
|
|
34
|
+
const runtime_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen");
|
|
35
|
+
const user_identity_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/user_identity.gen");
|
|
36
|
+
const user_action_module_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/user_action_module.gen");
|
|
37
|
+
const restricted_actions_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/restricted_actions.gen");
|
|
38
|
+
const communications_controller_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/communications_controller.gen");
|
|
39
|
+
const signed_fetch_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/signed_fetch.gen");
|
|
40
|
+
function loadModuleForPort(port, moduleName) {
|
|
41
|
+
switch (moduleName) {
|
|
42
|
+
case '~system/EngineApi':
|
|
43
|
+
const originalService = codegen.loadService(port, engine_api_gen_1.EngineApiServiceDefinition);
|
|
44
|
+
// WARNING: quickJs is not yet capable of handling Uint8Array, so we need to coerce the Uint8Array
|
|
45
|
+
// values manually. This is a temporary solution until the proper fix is implemented
|
|
46
|
+
return {
|
|
47
|
+
...originalService,
|
|
48
|
+
async isServer() {
|
|
49
|
+
return { isServer: true };
|
|
50
|
+
},
|
|
51
|
+
async crdtSendToRenderer(payload) {
|
|
52
|
+
return await originalService.crdtSendToRenderer({ data: (0, convert_handles_1.coerceMaybeU8Array)(payload.data) });
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
case '~system/Runtime':
|
|
56
|
+
return codegen.loadService(port, runtime_gen_1.RuntimeServiceDefinition);
|
|
57
|
+
case '~system/CommunicationsController':
|
|
58
|
+
return codegen.loadService(port, communications_controller_gen_1.CommunicationsControllerServiceDefinition);
|
|
59
|
+
case '~system/UserIdentity':
|
|
60
|
+
return codegen.loadService(port, user_identity_gen_1.UserIdentityServiceDefinition);
|
|
61
|
+
case '~system/UserActionModule':
|
|
62
|
+
return codegen.loadService(port, user_action_module_gen_1.UserActionModuleServiceDefinition);
|
|
63
|
+
case '~system/RestrictedActions':
|
|
64
|
+
return codegen.loadService(port, restricted_actions_gen_1.RestrictedActionsServiceDefinition);
|
|
65
|
+
case '~system/SignedFetch':
|
|
66
|
+
return codegen.loadService(port, signed_fetch_gen_1.SignedFetchServiceDefinition);
|
|
67
|
+
case '~system/Testing':
|
|
68
|
+
return codegen.loadService(port, testing_gen_1.TestingServiceDefinition);
|
|
69
|
+
default:
|
|
70
|
+
throw new Error('Unknown module ' + moduleName);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.loadModuleForPort = loadModuleForPort;
|
|
74
|
+
//# sourceMappingURL=modules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../../src/lib/common-runtime/modules.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iGAAoI;AACpI,2FAAoG;AAEpG,+DAAgD;AAChD,iEAAgE;AAChE,2FAAoG;AACpG,uGAA+G;AAC/G,iHAAwH;AACxH,iHAAyH;AACzH,+HAAuI;AACvI,qGAA6G;AAE7G,SAAgB,iBAAiB,CAAC,IAAmB,EAAE,UAAkB;IACvE,QAAQ,UAAU,EAAE;QAClB,KAAK,mBAAmB;YACtB,MAAM,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,2CAA0B,CAAC,CAAA;YAC7E,kGAAkG;YAClG,6FAA6F;YAC7F,OAAO;gBACL,GAAG,eAAe;gBAClB,KAAK,CAAC,QAAQ;oBACZ,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBAC3B,CAAC;gBACD,KAAK,CAAC,kBAAkB,CAAC,OAAkC;oBACzD,OAAO,MAAM,eAAe,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,IAAA,oCAAkB,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;gBAC7F,CAAC;aACF,CAAA;QAEH,KAAK,iBAAiB;YACpB,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,sCAAwB,CAAC,CAAA;QAC5D,KAAK,kCAAkC;YACrC,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,yEAAyC,CAAC,CAAA;QAC7E,KAAK,sBAAsB;YACzB,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,iDAA6B,CAAC,CAAA;QACjE,KAAK,0BAA0B;YAC7B,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,0DAAiC,CAAC,CAAA;QACrE,KAAK,2BAA2B;YAC9B,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,2DAAkC,CAAC,CAAA;QACtE,KAAK,qBAAqB;YACxB,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,+CAA4B,CAAC,CAAA;QAChE,KAAK,iBAAiB;YACpB,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,sCAAwB,CAAC,CAAA;QAC5D;YACE,MAAM,IAAI,KAAK,CAAC,iBAAiB,GAAG,UAAU,CAAC,CAAA;KAClD;AACH,CAAC;AAjCD,8CAiCC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RpcClientPort } from '@dcl/rpc';
|
|
2
|
+
import { Scene } from '@dcl/schemas';
|
|
3
|
+
export declare function getStartupData(port: RpcClientPort): Promise<{
|
|
4
|
+
mainFile: import("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen").ReadFileResponse;
|
|
5
|
+
scene: Scene;
|
|
6
|
+
mainFileName: string;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=startup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startup.d.ts","sourceRoot":"","sources":["../../../src/lib/common-runtime/startup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,wBAAsB,cAAc,CAAC,IAAI,EAAE,aAAa;;;;GAmBvD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getStartupData = void 0;
|
|
27
|
+
const runtime_gen_1 = require("@dcl/protocol/out-js/decentraland/kernel/apis/runtime.gen");
|
|
28
|
+
const codegen = __importStar(require("@dcl/rpc/dist/codegen"));
|
|
29
|
+
async function getStartupData(port) {
|
|
30
|
+
// we are going to need to load a remote module for this RPC client. the module
|
|
31
|
+
// will provide all the information to run the scene
|
|
32
|
+
const runtime = codegen.loadService(port, runtime_gen_1.RuntimeServiceDefinition);
|
|
33
|
+
// first we will fetch the information about the entity
|
|
34
|
+
const sceneInfo = await runtime.getSceneInformation({});
|
|
35
|
+
const scene = JSON.parse(sceneInfo.metadataJson || '{}');
|
|
36
|
+
if (!scene || !scene.main) {
|
|
37
|
+
throw new Error(`No boostrap data`);
|
|
38
|
+
}
|
|
39
|
+
// look for the "bin/game.js" or similar specified in the .main field
|
|
40
|
+
const mainFileName = scene.main;
|
|
41
|
+
const mainFile = await runtime.readFile({ fileName: mainFileName });
|
|
42
|
+
return { mainFile, scene, mainFileName };
|
|
43
|
+
}
|
|
44
|
+
exports.getStartupData = getStartupData;
|
|
45
|
+
//# sourceMappingURL=startup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startup.js","sourceRoot":"","sources":["../../../src/lib/common-runtime/startup.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2FAAoG;AAEpG,+DAAgD;AAGzC,KAAK,UAAU,cAAc,CAAC,IAAmB;IACtD,+EAA+E;IAC/E,oDAAoD;IACpD,MAAM,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,sCAAwB,CAAC,CAAA;IAEnE,uDAAuD;IACvD,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAA;IAEvD,MAAM,KAAK,GAAU,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,IAAI,IAAI,CAAC,CAAA;IAE/D,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;KACpC;IAED,qEAAqE;IACrE,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAA;IAC/B,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,CAAA;IAEnE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,CAAA;AAC1C,CAAC;AAnBD,wCAmBC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The runtimes of this project can start a scene in many different runners. Like
|
|
3
|
+
* a WebWorker, an isolated-vm in node, and QuickJS via WASM.
|
|
4
|
+
*/
|
|
5
|
+
export type RuntimeAbstraction = {
|
|
6
|
+
onStart(): Promise<void>;
|
|
7
|
+
onUpdate(deltaTime: number): Promise<void>;
|
|
8
|
+
isRunning(): boolean;
|
|
9
|
+
};
|
|
10
|
+
export type RpcSceneRuntimeOptions = {
|
|
11
|
+
log(...args: any[]): void;
|
|
12
|
+
error(...args: any[]): void;
|
|
13
|
+
updateLoop: (opts: RuntimeAbstraction) => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/common-runtime/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAG1C,SAAS,IAAI,OAAO,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IAEnC,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IAEzB,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IAE3B,UAAU,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACxD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The runtimes of this project can start a scene in many different runners. Like
|
|
4
|
+
* a WebWorker, an isolated-vm in node, and QuickJS via WASM.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/lib/common-runtime/types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ByteBuffer } from './types';
|
|
2
|
+
export { ByteBuffer };
|
|
3
|
+
/**
|
|
4
|
+
* ByteBuffer is a wrapper of DataView which also adds a read and write offset.
|
|
5
|
+
* Also in a write operation it resizes the buffer is being used if it needs.
|
|
6
|
+
*
|
|
7
|
+
* - Use read and write function to generate or consume data.
|
|
8
|
+
* - Use set and get only if you are sure that you're doing.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ReadWriteByteBuffer implements ByteBuffer {
|
|
11
|
+
#private;
|
|
12
|
+
woffset: number;
|
|
13
|
+
roffset: number;
|
|
14
|
+
/**
|
|
15
|
+
* @param buffer - The initial buffer, provide a buffer if you need to set "initial capacity"
|
|
16
|
+
* @param readingOffset - Set the cursor where begins to read. Default 0
|
|
17
|
+
* @param writingOffset - Set the cursor to not start writing from the begin of it. Defaults to the buffer size
|
|
18
|
+
*/
|
|
19
|
+
constructor(buffer?: Uint8Array | undefined, readingOffset?: number | undefined, writingOffset?: number | undefined);
|
|
20
|
+
buffer(): Uint8Array;
|
|
21
|
+
bufferLength(): number;
|
|
22
|
+
resetBuffer(): void;
|
|
23
|
+
currentReadOffset(): number;
|
|
24
|
+
currentWriteOffset(): number;
|
|
25
|
+
incrementReadOffset(amount: number): number;
|
|
26
|
+
remainingBytes(): number;
|
|
27
|
+
readFloat32(): number;
|
|
28
|
+
readFloat64(): number;
|
|
29
|
+
readInt8(): number;
|
|
30
|
+
readInt16(): number;
|
|
31
|
+
readInt32(): number;
|
|
32
|
+
readInt64(): bigint;
|
|
33
|
+
readUint8(): number;
|
|
34
|
+
readUint16(): number;
|
|
35
|
+
readUint32(): number;
|
|
36
|
+
readUint64(): bigint;
|
|
37
|
+
readBuffer(): Uint8Array;
|
|
38
|
+
readUtf8String(): string;
|
|
39
|
+
incrementWriteOffset(amount: number): number;
|
|
40
|
+
toBinary(): Uint8Array;
|
|
41
|
+
toCopiedBinary(): Uint8Array;
|
|
42
|
+
writeBuffer(value: Uint8Array, writeLength?: boolean): void;
|
|
43
|
+
writeUtf8String(value: string, writeLength?: boolean): void;
|
|
44
|
+
writeFloat32(value: number): void;
|
|
45
|
+
writeFloat64(value: number): void;
|
|
46
|
+
writeInt8(value: number): void;
|
|
47
|
+
writeInt16(value: number): void;
|
|
48
|
+
writeInt32(value: number): void;
|
|
49
|
+
writeInt64(value: bigint): void;
|
|
50
|
+
writeUint8(value: number): void;
|
|
51
|
+
writeUint16(value: number): void;
|
|
52
|
+
writeUint32(value: number): void;
|
|
53
|
+
writeUint64(value: bigint): void;
|
|
54
|
+
getFloat32(offset: number): number;
|
|
55
|
+
getFloat64(offset: number): number;
|
|
56
|
+
getInt8(offset: number): number;
|
|
57
|
+
getInt16(offset: number): number;
|
|
58
|
+
getInt32(offset: number): number;
|
|
59
|
+
getInt64(offset: number): bigint;
|
|
60
|
+
getUint8(offset: number): number;
|
|
61
|
+
getUint16(offset: number): number;
|
|
62
|
+
getUint32(offset: number): number;
|
|
63
|
+
getUint64(offset: number): bigint;
|
|
64
|
+
setFloat32(offset: number, value: number): void;
|
|
65
|
+
setFloat64(offset: number, value: number): void;
|
|
66
|
+
setInt8(offset: number, value: number): void;
|
|
67
|
+
setInt16(offset: number, value: number): void;
|
|
68
|
+
setInt32(offset: number, value: number): void;
|
|
69
|
+
setInt64(offset: number, value: bigint): void;
|
|
70
|
+
setUint8(offset: number, value: number): void;
|
|
71
|
+
setUint16(offset: number, value: number): void;
|
|
72
|
+
setUint32(offset: number, value: number): void;
|
|
73
|
+
setUint64(offset: number, value: bigint): void;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/ByteBuffer/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,CAAA;AAIrB;;;;;;GAMG;AACH,qBAAa,mBAAoB,YAAW,UAAU;;IAGpD,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf;;;;OAIG;gBACS,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS;IAqCnH,MAAM,IAAI,UAAU;IAGpB,YAAY,IAAI,MAAM;IAGtB,WAAW,IAAI,IAAI;IAInB,iBAAiB,IAAI,MAAM;IAG3B,kBAAkB,IAAI,MAAM;IAG5B,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAG3C,cAAc,IAAI,MAAM;IAGxB,WAAW,IAAI,MAAM;IAGrB,WAAW,IAAI,MAAM;IAGrB,QAAQ,IAAI,MAAM;IAGlB,SAAS,IAAI,MAAM;IAGnB,SAAS,IAAI,MAAM;IAGnB,SAAS,IAAI,MAAM;IAGnB,SAAS,IAAI,MAAM;IAGnB,UAAU,IAAI,MAAM;IAGpB,UAAU,IAAI,MAAM;IAGpB,UAAU,IAAI,MAAM;IAGpB,UAAU;IAIV,cAAc;IAId,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAG5C,QAAQ;IAGR,cAAc;IAGd,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,GAAE,OAAc;IAQ1D,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,GAAE,OAAc;IAW1D,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIjC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIjC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI9B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIhC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIhC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKhC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGlC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGlC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAG/B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGhC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGhC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGhC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGhC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGjC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGjC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAGjC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG/C,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG/C,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG5C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG7C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG7C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG7C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG7C,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG9C,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAG9C,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAG/C"}
|