@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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pickWorldSpawnpoint = void 0;
|
|
4
|
+
const core_1 = require("@babylonjs/core");
|
|
5
|
+
const positions_1 = require("../positions");
|
|
6
|
+
/**
|
|
7
|
+
* Computes the spawn point based on a scene.
|
|
8
|
+
*
|
|
9
|
+
* The computation takes the spawning points defined in the scene document and computes the spawning point in the world based on the base parcel position.
|
|
10
|
+
*
|
|
11
|
+
* @param scene Scene on which the player is spawning
|
|
12
|
+
* @param loadPosition Parcel position on which the player is teleporting to
|
|
13
|
+
*/
|
|
14
|
+
function pickWorldSpawnpoint(scene) {
|
|
15
|
+
const baseParcel = scene.scene.base;
|
|
16
|
+
const [bx, by] = baseParcel.split(',');
|
|
17
|
+
const basePosition = new core_1.Vector3();
|
|
18
|
+
(0, positions_1.gridToWorld)(parseInt(bx, 10), parseInt(by, 10), basePosition);
|
|
19
|
+
const spawnpoint = pickSpawnpoint(scene);
|
|
20
|
+
const { position, cameraTarget } = spawnpoint;
|
|
21
|
+
return {
|
|
22
|
+
position: basePosition.add(position),
|
|
23
|
+
cameraTarget: cameraTarget ? basePosition.add(cameraTarget) : undefined
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.pickWorldSpawnpoint = pickWorldSpawnpoint;
|
|
27
|
+
function pickSpawnpoint(land) {
|
|
28
|
+
let spawnPoints = land.spawnPoints;
|
|
29
|
+
if (!spawnPoints || !Array.isArray(spawnPoints) || spawnPoints.length === 0) {
|
|
30
|
+
spawnPoints = [
|
|
31
|
+
{
|
|
32
|
+
position: {
|
|
33
|
+
x: 8,
|
|
34
|
+
y: 0,
|
|
35
|
+
z: 8
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
// 1 - default spawn points
|
|
41
|
+
const defaults = spawnPoints.filter(($) => $.default);
|
|
42
|
+
// 2 - if no default spawn points => all existing spawn points
|
|
43
|
+
const eligiblePoints = defaults.length === 0 ? spawnPoints : defaults;
|
|
44
|
+
// 3 - get a random spawn point
|
|
45
|
+
const index = Math.floor(Math.random() * eligiblePoints.length);
|
|
46
|
+
const { position, cameraTarget } = eligiblePoints[index];
|
|
47
|
+
// 4 - generate random x, y, z components when in arrays
|
|
48
|
+
const finalPosition = new core_1.Vector3(computeComponentValue(position.x), computeComponentValue(position.y), computeComponentValue(position.z));
|
|
49
|
+
return {
|
|
50
|
+
position: finalPosition,
|
|
51
|
+
cameraTarget: new core_1.Vector3(cameraTarget?.x ?? 0, cameraTarget?.y ?? 0, cameraTarget?.z ?? 0)
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function computeComponentValue(x) {
|
|
55
|
+
if (typeof x === 'number') {
|
|
56
|
+
return x;
|
|
57
|
+
}
|
|
58
|
+
const length = x.length;
|
|
59
|
+
if (length === 0) {
|
|
60
|
+
return 0;
|
|
61
|
+
}
|
|
62
|
+
else if (length < 2) {
|
|
63
|
+
return x[0];
|
|
64
|
+
}
|
|
65
|
+
else if (length > 2) {
|
|
66
|
+
x = [x[0], x[1]];
|
|
67
|
+
}
|
|
68
|
+
let [min, max] = x;
|
|
69
|
+
if (min === max)
|
|
70
|
+
return max;
|
|
71
|
+
if (min > max) {
|
|
72
|
+
const aux = min;
|
|
73
|
+
min = max;
|
|
74
|
+
max = aux;
|
|
75
|
+
}
|
|
76
|
+
return Math.random() * (max - min) + min;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=spawn-points.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spawn-points.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/scene/spawn-points.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CrdtGetStateResponse, CrdtMessageFromRendererRequest, CrdtMessageFromRendererResponse } from "@dcl/protocol/out-js/decentraland/kernel/apis/engine_api.gen";
|
|
2
|
+
/**
|
|
3
|
+
* The scenes in any renderer implementing the Decentraland Protocol are controlled
|
|
4
|
+
* by the scripting host (the JS vm). Each host should run its own (game) loop,
|
|
5
|
+
* and call the .onUpdate function of the scene, its result is a promise, because
|
|
6
|
+
* as part of the onUpdate, the scene code sends all the CRDT updates to the renderer
|
|
7
|
+
* and awaits its response. The response may be delayed a couple of "rendering frames",
|
|
8
|
+
* generating the need of asynchronous code.
|
|
9
|
+
*
|
|
10
|
+
* The EngineApiInterface exposes the two functions required by the scene via
|
|
11
|
+
* require("~system/EngineApi")
|
|
12
|
+
* to articulate the previously described behaviors. To gain more details about
|
|
13
|
+
* the semantics of the messages, refer to
|
|
14
|
+
*
|
|
15
|
+
* @ADR https://adr.decentraland.org/adr/ADR-133 - Scene runtime definition
|
|
16
|
+
* @ADR https://adr.decentraland.org/adr/ADR-148 - Synchronization of CRDT messages between scenes and Renderer
|
|
17
|
+
*
|
|
18
|
+
* This type is defined at https://github.com/decentraland/protocol/blob/d0a21d73e4d50e6d94f161269c021688ef719083/proto/decentraland/kernel/apis/engine_api.proto#L215
|
|
19
|
+
*/
|
|
20
|
+
export type EngineApiInterface = {
|
|
21
|
+
/**
|
|
22
|
+
* The crdtGetState function is used to hydrate the state of the SDK engine
|
|
23
|
+
* and send information about static entities. i.e. the CameraEntity. It must
|
|
24
|
+
* also be used in cases where the scene runtime is unloaded and reloaded,
|
|
25
|
+
* also known as "hot reloading".
|
|
26
|
+
*
|
|
27
|
+
* This function is suggested in ADR-133 in the "GetInitialState" stage
|
|
28
|
+
*/
|
|
29
|
+
crdtGetState(): Promise<CrdtGetStateResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* The crdtSendToRenderer function is executed every tick of the scene, the payload
|
|
32
|
+
* includes all the updates from the scripted scene, its result includes all the updates
|
|
33
|
+
* from the renderer engine for the scripted scene e.g. input events, camera position updates,
|
|
34
|
+
* etc.
|
|
35
|
+
*/
|
|
36
|
+
crdtSendToRenderer(payload: CrdtMessageFromRendererRequest): Promise<CrdtMessageFromRendererResponse>;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/scene/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,8DAA8D,CAAA;AAEpK;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;;;OAOG;IACH,YAAY,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAC7C;;;;;OAKG;IACH,kBAAkB,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAA;CACtG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/scene/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animator-component.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/animator-component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+DAA+D,CAAC;AAI3F,eAAO,MAAM,iBAAiB,8EAI5B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.animatorComponent = void 0;
|
|
4
|
+
const animator_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/animator.gen");
|
|
5
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
6
|
+
const apply_animations_1 = require("../../babylon/scene/logic/apply-animations");
|
|
7
|
+
exports.animatorComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(animator_gen_1.PBAnimator, 1042, (entity, component) => {
|
|
8
|
+
if (component.componentType !== 0 /* ComponentType.LastWriteWinElementSet */)
|
|
9
|
+
return;
|
|
10
|
+
(0, apply_animations_1.applyAnimations)(entity);
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=animator-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animator-component.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/animator-component.ts"],"names":[],"mappings":";;;AACA,gGAA2F;AAC3F,2EAA8E;AAC9E,iFAA6E;AAEhE,QAAA,iBAAiB,GAAG,IAAA,2DAA+B,EAAC,yBAAU,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;IACvG,IAAI,SAAS,CAAC,aAAa,iDAAyC;QAAE,OAAM;IAE5E,IAAA,kCAAe,EAAC,MAAM,CAAC,CAAA;AACzB,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PBAvatarBase } from "@dcl/protocol/out-js/decentraland/sdk/components/avatar_base.gen";
|
|
2
|
+
import { BabylonEntity } from "../../babylon/scene/BabylonEntity";
|
|
3
|
+
export declare const avatarBaseComponent: import("../crdt-internal/components").ComponentDeclaration<PBAvatarBase, 1087>;
|
|
4
|
+
export declare function setAvatarBase(entity: BabylonEntity, data: PBAvatarBase | null): void;
|
|
5
|
+
//# sourceMappingURL=avatar-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-base.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/avatar-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAC;AAEhG,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE,eAAO,MAAM,mBAAmB,gFAQ9B,CAAA;AAEF,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,GAAG,IAAI,QAyB7E"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setAvatarBase = exports.avatarBaseComponent = void 0;
|
|
4
|
+
const avatar_base_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/avatar_base.gen");
|
|
5
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
6
|
+
const AvatarRenderer_1 = require("../../babylon/avatars/AvatarRenderer");
|
|
7
|
+
exports.avatarBaseComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(avatar_base_gen_1.PBAvatarBase, 1087, (entity, component) => {
|
|
8
|
+
if (component.componentType !== 0 /* ComponentType.LastWriteWinElementSet */)
|
|
9
|
+
return;
|
|
10
|
+
if (entity.entityId === 0)
|
|
11
|
+
return;
|
|
12
|
+
const newValue = component.getOrNull(entity.entityId);
|
|
13
|
+
setAvatarBase(entity, newValue);
|
|
14
|
+
});
|
|
15
|
+
function setAvatarBase(entity, data) {
|
|
16
|
+
if (data) {
|
|
17
|
+
// Store avatar base data for use by avatar renderer
|
|
18
|
+
entity.appliedComponents.avatarBase = data;
|
|
19
|
+
// Create or update avatar renderer
|
|
20
|
+
if (!entity.appliedComponents.avatarRenderer) {
|
|
21
|
+
entity.appliedComponents.avatarRenderer = new AvatarRenderer_1.AvatarRenderer(entity);
|
|
22
|
+
entity.appliedComponents.avatarRenderer.parent = entity;
|
|
23
|
+
}
|
|
24
|
+
// Update with the new base data
|
|
25
|
+
entity.appliedComponents.avatarRenderer.updateAvatarBase(data);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
if (entity.appliedComponents.avatarBase) {
|
|
29
|
+
delete entity.appliedComponents.avatarBase;
|
|
30
|
+
}
|
|
31
|
+
// Clear avatar renderer if no avatar base data
|
|
32
|
+
if (entity.appliedComponents.avatarRenderer) {
|
|
33
|
+
entity.appliedComponents.avatarRenderer.parent = null;
|
|
34
|
+
entity.appliedComponents.avatarRenderer.dispose();
|
|
35
|
+
delete entity.appliedComponents.avatarRenderer;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.setAvatarBase = setAvatarBase;
|
|
40
|
+
//# sourceMappingURL=avatar-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-base.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/avatar-base.ts"],"names":[],"mappings":";;;AACA,sGAAgG;AAChG,2EAA8E;AAE9E,yEAAsE;AAEzD,QAAA,mBAAmB,GAAG,IAAA,2DAA+B,EAAC,8BAAY,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;IAC3G,IAAI,SAAS,CAAC,aAAa,iDAAyC;QAAE,OAAM;IAE5E,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC;QAAE,OAAM;IAEjC,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAwB,CAAA;IAE5E,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AACjC,CAAC,CAAC,CAAA;AAEF,SAAgB,aAAa,CAAC,MAAqB,EAAE,IAAyB;IAC5E,IAAI,IAAI,EAAE;QACR,oDAAoD;QACpD,MAAM,CAAC,iBAAiB,CAAC,UAAU,GAAG,IAAI,CAAA;QAE1C,mCAAmC;QACnC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,cAAc,EAAE;YAC5C,MAAM,CAAC,iBAAiB,CAAC,cAAc,GAAG,IAAI,+BAAc,CAAC,MAAM,CAAC,CAAA;YACpE,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,GAAG,MAAM,CAAA;SACxD;QAED,gCAAgC;QAChC,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAA;KAC/D;SAAM;QACL,IAAI,MAAM,CAAC,iBAAiB,CAAC,UAAU,EAAE;YACvC,OAAO,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAA;SAC3C;QAED,+CAA+C;QAC/C,IAAI,MAAM,CAAC,iBAAiB,CAAC,cAAc,EAAE;YAC3C,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAA;YACrD,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,CAAA;YACjD,OAAO,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAA;SAC/C;KACF;AACH,CAAC;AAzBD,sCAyBC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PBAvatarEmoteCommand } from "@dcl/protocol/out-js/decentraland/sdk/components/avatar_emote_command.gen";
|
|
2
|
+
import { PBAvatarEquippedData } from "@dcl/protocol/out-js/decentraland/sdk/components/avatar_equipped_data.gen";
|
|
3
|
+
export declare const avatarEmoteCommandComponent: import("../crdt-internal/components").ComponentDeclaration<PBAvatarEmoteCommand, 1088>;
|
|
4
|
+
export declare const avatarEquippedDataComponent: import("../crdt-internal/components").ComponentDeclaration<PBAvatarEquippedData, 1091>;
|
|
5
|
+
//# sourceMappingURL=avatar-customizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-customizations.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/avatar-customizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AAEjH,eAAO,MAAM,2BAA2B,wFAA4E,CAAA;AACpH,eAAO,MAAM,2BAA2B,wFAA4E,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.avatarEquippedDataComponent = exports.avatarEmoteCommandComponent = void 0;
|
|
4
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
5
|
+
const avatar_emote_command_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/avatar_emote_command.gen");
|
|
6
|
+
const avatar_equipped_data_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/avatar_equipped_data.gen");
|
|
7
|
+
exports.avatarEmoteCommandComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(avatar_emote_command_gen_1.PBAvatarEmoteCommand, 1088, () => void 0);
|
|
8
|
+
exports.avatarEquippedDataComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(avatar_equipped_data_gen_1.PBAvatarEquippedData, 1091, () => void 0);
|
|
9
|
+
//# sourceMappingURL=avatar-customizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-customizations.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/avatar-customizations.ts"],"names":[],"mappings":";;;AACA,2EAA8E;AAC9E,wHAAiH;AACjH,wHAAiH;AAEpG,QAAA,2BAA2B,GAAG,IAAA,2DAA+B,EAAC,+CAAoB,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;AACvG,QAAA,2BAA2B,GAAG,IAAA,2DAA+B,EAAC,+CAAoB,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PBAvatarShape } from "@dcl/protocol/out-js/decentraland/sdk/components/avatar_shape.gen";
|
|
2
|
+
import { BabylonEntity } from "../../babylon/scene/BabylonEntity";
|
|
3
|
+
export declare const avatarShapeComponent: import("../crdt-internal/components").ComponentDeclaration<PBAvatarShape, 1080>;
|
|
4
|
+
export declare function setAvatarRenderer(entity: BabylonEntity, data: PBAvatarShape | null): void;
|
|
5
|
+
//# sourceMappingURL=avatar-shape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-shape.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/avatar-shape.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mEAAmE,CAAC;AAGlG,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,eAAO,MAAM,oBAAoB,iFAQ/B,CAAA;AAEF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,QAgBlF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setAvatarRenderer = exports.avatarShapeComponent = void 0;
|
|
4
|
+
const avatar_shape_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/avatar_shape.gen");
|
|
5
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
6
|
+
const AvatarRenderer_1 = require("../../babylon/avatars/AvatarRenderer");
|
|
7
|
+
exports.avatarShapeComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(avatar_shape_gen_1.PBAvatarShape, 1080, (entity, component) => {
|
|
8
|
+
if (component.componentType !== 0 /* ComponentType.LastWriteWinElementSet */)
|
|
9
|
+
return;
|
|
10
|
+
if (entity.entityId === 0)
|
|
11
|
+
return;
|
|
12
|
+
const newValue = component.getOrNull(entity.entityId);
|
|
13
|
+
setAvatarRenderer(entity, newValue);
|
|
14
|
+
});
|
|
15
|
+
function setAvatarRenderer(entity, data) {
|
|
16
|
+
if (data) {
|
|
17
|
+
if (entity.appliedComponents.avatarRenderer) {
|
|
18
|
+
entity.appliedComponents.avatarRenderer.parent = null;
|
|
19
|
+
entity.appliedComponents.avatarRenderer.dispose();
|
|
20
|
+
}
|
|
21
|
+
entity.appliedComponents.avatarRenderer = new AvatarRenderer_1.AvatarRenderer(entity);
|
|
22
|
+
entity.appliedComponents.avatarRenderer.parent = entity;
|
|
23
|
+
entity.appliedComponents.avatarRenderer.setAvatarShape(data);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
if (entity.appliedComponents.avatarRenderer) {
|
|
27
|
+
entity.appliedComponents.avatarRenderer.parent = null;
|
|
28
|
+
entity.appliedComponents.avatarRenderer.dispose();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.setAvatarRenderer = setAvatarRenderer;
|
|
33
|
+
//# sourceMappingURL=avatar-shape.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-shape.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/avatar-shape.ts"],"names":[],"mappings":";;;AACA,wGAAkG;AAClG,2EAA8E;AAC9E,yEAAsE;AAGzD,QAAA,oBAAoB,GAAG,IAAA,2DAA+B,EAAC,gCAAa,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;IAC7G,IAAI,SAAS,CAAC,aAAa,iDAAyC;QAAE,OAAM;IAE5E,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC;QAAE,OAAM;IAEjC,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAyB,CAAA;IAE7E,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AACrC,CAAC,CAAC,CAAA;AAEF,SAAgB,iBAAiB,CAAC,MAAqB,EAAE,IAA0B;IACjF,IAAI,IAAI,EAAE;QACR,IAAI,MAAM,CAAC,iBAAiB,CAAC,cAAc,EAAE;YAC3C,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAA;YACrD,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,CAAA;SAClD;QAED,MAAM,CAAC,iBAAiB,CAAC,cAAc,GAAG,IAAI,+BAAc,CAAC,MAAM,CAAC,CAAA;QACpE,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,GAAG,MAAM,CAAA;QACvD,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;KAC7D;SAAM;QACL,IAAI,MAAM,CAAC,iBAAiB,CAAC,cAAc,EAAE;YAC3C,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAA;YACrD,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,CAAA;SAClD;KACF;AACH,CAAC;AAhBD,8CAgBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billboard-component.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/billboard-component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gEAAgE,CAAC;AAG7F,eAAO,MAAM,kBAAkB,+EAQ7B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.billboardComponent = void 0;
|
|
4
|
+
const billboard_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/billboard.gen");
|
|
5
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
6
|
+
exports.billboardComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(billboard_gen_1.PBBillboard, 1090, (entity, component) => {
|
|
7
|
+
if (component.componentType !== 0 /* ComponentType.LastWriteWinElementSet */)
|
|
8
|
+
return;
|
|
9
|
+
// the billboard of the ROOT entity 0 cannot be changed by a CRDT message
|
|
10
|
+
if (entity.entityId === 0)
|
|
11
|
+
return;
|
|
12
|
+
const newValue = component.getOrNull(entity.entityId);
|
|
13
|
+
entity.appliedComponents.billboard = newValue || undefined;
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=billboard-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billboard-component.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/billboard-component.ts"],"names":[],"mappings":";;;AACA,kGAA6F;AAC7F,2EAA8E;AAEjE,QAAA,kBAAkB,GAAG,IAAA,2DAA+B,EAAC,2BAAW,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;IACzG,IAAI,SAAS,CAAC,aAAa,iDAAyC;QAAE,OAAM;IAE5E,yEAAyE;IACzE,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC;QAAE,OAAM;IAEjC,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAuB,CAAA;IAC3E,MAAM,CAAC,iBAAiB,CAAC,SAAS,GAAG,QAAQ,IAAI,SAAS,CAAA;AAC5D,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PBDelayedInterpolation } from "@dcl/protocol/out-js/decentraland/sdk/components/delayed_interpolation.gen";
|
|
2
|
+
export declare const delayedInterpolationComponent: import("../crdt-internal/components").ComponentDeclaration<PBDelayedInterpolation, 1101>;
|
|
3
|
+
//# sourceMappingURL=delayed-interpolation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delayed-interpolation.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/delayed-interpolation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4EAA4E,CAAC;AAGpH,eAAO,MAAM,6BAA6B,0FAQxC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.delayedInterpolationComponent = void 0;
|
|
4
|
+
const delayed_interpolation_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/delayed_interpolation.gen");
|
|
5
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
6
|
+
exports.delayedInterpolationComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(delayed_interpolation_gen_1.PBDelayedInterpolation, 1101, (entity, component) => {
|
|
7
|
+
if (component.componentType !== 0 /* ComponentType.LastWriteWinElementSet */)
|
|
8
|
+
return;
|
|
9
|
+
// the billboard of the ROOT entity 0 cannot be changed by a CRDT message
|
|
10
|
+
if (entity.entityId === 0)
|
|
11
|
+
return;
|
|
12
|
+
const newValue = component.getOrNull(entity.entityId);
|
|
13
|
+
entity.appliedComponents.delayedInterpolation = newValue || undefined;
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=delayed-interpolation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delayed-interpolation.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/delayed-interpolation.ts"],"names":[],"mappings":";;;AACA,0HAAoH;AACpH,2EAA8E;AAEjE,QAAA,6BAA6B,GAAG,IAAA,2DAA+B,EAAC,kDAAsB,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;IAC/H,IAAI,SAAS,CAAC,aAAa,iDAAyC;QAAE,OAAM;IAE5E,yEAAyE;IACzE,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC;QAAE,OAAM;IAEjC,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAkC,CAAA;IACtF,MAAM,CAAC,iBAAiB,CAAC,oBAAoB,GAAG,QAAQ,IAAI,SAAS,CAAA;AACvE,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-info.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/engine-info.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAC;AAEhG,eAAO,MAAM,mBAAmB,gFAAoE,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.engineInfoComponent = void 0;
|
|
4
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
5
|
+
const engine_info_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/engine_info.gen");
|
|
6
|
+
exports.engineInfoComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(engine_info_gen_1.PBEngineInfo, 1048, () => void 0);
|
|
7
|
+
//# sourceMappingURL=engine-info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-info.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/engine-info.ts"],"names":[],"mappings":";;;AACA,2EAA8E;AAC9E,sGAAgG;AAEnF,QAAA,mBAAmB,GAAG,IAAA,2DAA+B,EAAC,8BAAY,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PBGltfContainer } from "@dcl/protocol/out-js/decentraland/sdk/components/gltf_container.gen";
|
|
2
|
+
export declare const gltfContainerComponent: import("../crdt-internal/components").ComponentDeclaration<PBGltfContainer, 1041>;
|
|
3
|
+
//# sourceMappingURL=gltf-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gltf-component.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/gltf-component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qEAAqE,CAAC;AActG,eAAO,MAAM,sBAAsB,mFAuFjC,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gltfContainerComponent = void 0;
|
|
4
|
+
const gltf_container_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/gltf_container.gen");
|
|
5
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
6
|
+
const apply_animations_1 = require("../../babylon/scene/logic/apply-animations");
|
|
7
|
+
const gltf_loading_state_1 = require("./gltf-loading-state");
|
|
8
|
+
const loading_state_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/common/loading_state.gen");
|
|
9
|
+
const colliders_1 = require("../../babylon/scene/logic/colliders");
|
|
10
|
+
const mesh_collider_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/mesh_collider.gen");
|
|
11
|
+
const AssetManager_1 = require("../../babylon/scene/AssetManager");
|
|
12
|
+
const DEFAULT_VISIBLE_COLLIDER_LAYERS = 0;
|
|
13
|
+
const DEFAULT_INVISIBLE_COLLIDER_LAYERS = mesh_collider_gen_1.ColliderLayer.CL_PHYSICS | mesh_collider_gen_1.ColliderLayer.CL_POINTER;
|
|
14
|
+
exports.gltfContainerComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(gltf_container_gen_1.PBGltfContainer, 1041, (entity, component) => {
|
|
15
|
+
if (component.componentType !== 0 /* ComponentType.LastWriteWinElementSet */)
|
|
16
|
+
return;
|
|
17
|
+
const newValue = component.get(entity.entityId);
|
|
18
|
+
const oldValue = entity.appliedComponents.gltfContainer;
|
|
19
|
+
if (newValue && newValue.src !== oldValue?.value?.src && newValue.src) {
|
|
20
|
+
const newGltfContainerValue = entity.appliedComponents.gltfContainer = {
|
|
21
|
+
value: newValue,
|
|
22
|
+
gltfContainer: oldValue?.gltfContainer || null,
|
|
23
|
+
instancedEntries: oldValue?.instancedEntries || null
|
|
24
|
+
};
|
|
25
|
+
const context = entity.context.deref();
|
|
26
|
+
if (!context)
|
|
27
|
+
return;
|
|
28
|
+
const newSrc = newValue.src;
|
|
29
|
+
// inform the component is loading
|
|
30
|
+
const loadingStateComponent = context.components[gltf_loading_state_1.gltfContainerLoadingStateComponent.componentId];
|
|
31
|
+
loadingStateComponent.createOrReplace(entity.entityId, {
|
|
32
|
+
currentState: loading_state_gen_1.LoadingState.LOADING
|
|
33
|
+
});
|
|
34
|
+
// this procedure loads a GLTF into a babylonEntity. the model loading will happen in parallel by another
|
|
35
|
+
// procedure. once the model becomes available (downloaded + loaded) this method will create
|
|
36
|
+
// an instance or copy of the required meshes/bodies/bones and attach them to the entity
|
|
37
|
+
// if the "src" property didn't change
|
|
38
|
+
context.assetManager.getContainerFuture(newValue.src).then((assetContainer) => {
|
|
39
|
+
// check if we need to update the gltf, this may be false due to async nature of the loader
|
|
40
|
+
// in that case we simply ignore the result
|
|
41
|
+
const isCurrentValueUpdated = newSrc === entity.appliedComponents.gltfContainer?.value.src;
|
|
42
|
+
if (isCurrentValueUpdated) {
|
|
43
|
+
// remove the previous gltf
|
|
44
|
+
removeCurrentGltf(entity);
|
|
45
|
+
// and attach the new one
|
|
46
|
+
const instanced = newGltfContainerValue.instancedEntries = (0, AssetManager_1.instantiateAssetContainer)(assetContainer, entity, entity);
|
|
47
|
+
// setup colliders
|
|
48
|
+
instanced.rootNodes.forEach(root => {
|
|
49
|
+
for (const mesh of root.getChildMeshes(false)) {
|
|
50
|
+
if (mesh.name.endsWith('_collider')) {
|
|
51
|
+
(0, colliders_1.setColliderMask)(mesh, newValue.invisibleMeshesCollisionMask ?? DEFAULT_INVISIBLE_COLLIDER_LAYERS);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
(0, colliders_1.setColliderMask)(mesh, newValue.invisibleMeshesCollisionMask ?? DEFAULT_VISIBLE_COLLIDER_LAYERS);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
// apply animations if needed
|
|
59
|
+
(0, apply_animations_1.applyAnimations)(entity);
|
|
60
|
+
// inform the component loaded
|
|
61
|
+
loadingStateComponent.createOrReplace(entity.entityId, {
|
|
62
|
+
currentState: loading_state_gen_1.LoadingState.FINISHED
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}).catch(() => {
|
|
66
|
+
const isCurrentValueUpdated = newSrc === entity.appliedComponents.gltfContainer?.value.src;
|
|
67
|
+
if (isCurrentValueUpdated) {
|
|
68
|
+
// inform the component is failed loading
|
|
69
|
+
loadingStateComponent.createOrReplace(entity.entityId, {
|
|
70
|
+
currentState: loading_state_gen_1.LoadingState.FINISHED_WITH_ERROR
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
else if (newValue) {
|
|
76
|
+
// this condition is "set same value, didn't change .src"
|
|
77
|
+
entity.appliedComponents.gltfContainer?.instancedEntries?.rootNodes.forEach(root => {
|
|
78
|
+
for (const mesh of root.getChildMeshes(false)) {
|
|
79
|
+
if (mesh.name.endsWith('_collider')) {
|
|
80
|
+
(0, colliders_1.setColliderMask)(mesh, newValue.invisibleMeshesCollisionMask ?? DEFAULT_INVISIBLE_COLLIDER_LAYERS);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
(0, colliders_1.setColliderMask)(mesh, newValue.invisibleMeshesCollisionMask ?? DEFAULT_VISIBLE_COLLIDER_LAYERS);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
else if (!newValue) {
|
|
89
|
+
removeCurrentGltf(entity);
|
|
90
|
+
// remove the loading state of the removed entity
|
|
91
|
+
const loadingStateComponent = entity.context.deref()?.components[gltf_loading_state_1.gltfContainerLoadingStateComponent.componentId];
|
|
92
|
+
if (loadingStateComponent) {
|
|
93
|
+
loadingStateComponent.deleteFrom(entity.entityId);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
// this function releases the current gltf allocated resources and its container
|
|
98
|
+
// it won't remove the base meshes, models and textures that are used for the instance
|
|
99
|
+
// only the copies
|
|
100
|
+
function removeCurrentGltf(entity) {
|
|
101
|
+
// first remove the instance of the gltf
|
|
102
|
+
if (entity.appliedComponents.gltfContainer?.instancedEntries) {
|
|
103
|
+
entity.appliedComponents.gltfContainer.instancedEntries.dispose();
|
|
104
|
+
entity.appliedComponents.gltfContainer.instancedEntries = null;
|
|
105
|
+
}
|
|
106
|
+
// and then its container
|
|
107
|
+
if (entity.appliedComponents.gltfContainer?.gltfContainer) {
|
|
108
|
+
entity.appliedComponents.gltfContainer.gltfContainer.setEnabled(false);
|
|
109
|
+
entity.appliedComponents.gltfContainer.gltfContainer.parent = null;
|
|
110
|
+
entity.appliedComponents.gltfContainer.gltfContainer.dispose(true, true);
|
|
111
|
+
entity.appliedComponents.gltfContainer.gltfContainer = null;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=gltf-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gltf-component.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/gltf-component.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PBGltfContainerLoadingState } from "@dcl/protocol/out-js/decentraland/sdk/components/gltf_container_loading_state.gen";
|
|
2
|
+
export declare const gltfContainerLoadingStateComponent: import("../crdt-internal/components").ComponentDeclaration<PBGltfContainerLoadingState, 1049>;
|
|
3
|
+
//# sourceMappingURL=gltf-loading-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gltf-loading-state.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/gltf-loading-state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mFAAmF,CAAC;AAEhI,eAAO,MAAM,kCAAkC,+FAAmF,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gltfContainerLoadingStateComponent = void 0;
|
|
4
|
+
const pb_based_component_helper_1 = require("./pb-based-component-helper");
|
|
5
|
+
const gltf_container_loading_state_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/components/gltf_container_loading_state.gen");
|
|
6
|
+
exports.gltfContainerLoadingStateComponent = (0, pb_based_component_helper_1.declareComponentUsingProtobufJs)(gltf_container_loading_state_gen_1.PBGltfContainerLoadingState, 1049, () => void 0);
|
|
7
|
+
//# sourceMappingURL=gltf-loading-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gltf-loading-state.js","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/gltf-loading-state.ts"],"names":[],"mappings":";;;AACA,2EAA8E;AAC9E,wIAAgI;AAEnH,QAAA,kCAAkC,GAAG,IAAA,2DAA+B,EAAC,8DAA2B,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PBMaterial } from "@dcl/protocol/out-js/decentraland/sdk/components/material.gen";
|
|
2
|
+
import { BabylonEntity } from "../../babylon/scene/BabylonEntity";
|
|
3
|
+
export declare const materialComponent: import("../crdt-internal/components").ComponentDeclaration<PBMaterial, 1017>;
|
|
4
|
+
export declare function setMeshRendererMaterial(entity: BabylonEntity): void;
|
|
5
|
+
//# sourceMappingURL=material-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"material-component.d.ts","sourceRoot":"","sources":["../../../../src/lib/decentraland/sdk-components/material-component.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,UAAU,EAAE,MAAM,+DAA+D,CAAC;AAGrH,OAAO,EAAE,aAAa,EAAgB,MAAM,mCAAmC,CAAC;AAEhF,eAAO,MAAM,iBAAiB,8EAqF5B,CAAA;AAGF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,QAQ5D"}
|