@dcl/protocol 1.0.0-3939040004.commit-2c2721f → 1.0.0-39771882714.commit-70f2654
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/README.md +241 -12
- package/out-js/about.gen.d.ts +1 -0
- package/out-js/about.gen.js +6 -0
- package/out-js/about.gen.js.map +1 -0
- package/out-js/comms.gen.d.ts +1 -0
- package/out-js/comms.gen.js +6 -0
- package/out-js/comms.gen.js.map +1 -0
- package/out-js/decentraland/common/border_rect.gen.d.ts +49 -0
- package/out-js/decentraland/common/border_rect.gen.js +201 -0
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
- package/out-js/decentraland/common/colors.gen.d.ts +59 -0
- package/out-js/decentraland/common/colors.gen.js +260 -0
- package/out-js/decentraland/common/colors.gen.js.map +1 -0
- package/out-js/decentraland/common/content_mapping.gen.d.ts +31 -0
- package/out-js/decentraland/common/content_mapping.gen.js +80 -0
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -0
- package/out-js/decentraland/common/sdk/user_data.gen.d.ts +63 -0
- package/out-js/decentraland/common/sdk/user_data.gen.js +330 -0
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -0
- package/out-js/decentraland/common/texture.gen.d.ts +105 -0
- package/out-js/decentraland/common/texture.gen.js +475 -0
- package/out-js/decentraland/common/texture.gen.js.map +1 -0
- package/out-js/decentraland/common/vectors.gen.d.ts +71 -0
- package/out-js/decentraland/common/vectors.gen.js +338 -0
- package/out-js/decentraland/common/vectors.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +206 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +792 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +105 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +400 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +58 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +142 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +338 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +1452 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +283 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +1122 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +225 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +878 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +146 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +557 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +100 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js +360 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/players.gen.d.ts +127 -0
- package/out-js/decentraland/kernel/apis/players.gen.js +372 -0
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +178 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +607 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +383 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1363 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +217 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.js +801 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/scene.gen.d.ts +59 -0
- package/out-js/decentraland/kernel/apis/scene.gen.js +171 -0
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +139 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +615 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +72 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.js +207 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/testing.gen.d.ts +249 -0
- package/out-js/decentraland/kernel/apis/testing.gen.js +1073 -0
- package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +56 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js +128 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +86 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.js +236 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +322 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +2009 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +183 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +906 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +249 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1384 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -0
- package/out-js/decentraland/pulse/pulse_clusters.gen.d.ts +105 -0
- package/out-js/decentraland/pulse/pulse_clusters.gen.js +336 -0
- package/out-js/decentraland/pulse/pulse_clusters.gen.js.map +1 -0
- package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
- package/out-js/decentraland/quests/definitions.gen.js +2728 -0
- package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
- package/out-js/decentraland/realm/about.gen.d.ts +229 -0
- package/out-js/decentraland/realm/about.gen.js +1185 -0
- package/out-js/decentraland/realm/about.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +62 -0
- package/out-js/decentraland/sdk/components/animator.gen.js +192 -0
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +61 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js +151 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +138 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +76 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +262 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js +148 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +64 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +171 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +62 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +160 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +264 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +61 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js +142 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +70 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +85 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js +34 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +10 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +46 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +19 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +80 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +209 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js +107 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +308 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +73 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +231 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +164 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +108 -0
- package/out-js/decentraland/sdk/components/material.gen.js +536 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +130 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +471 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +115 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +319 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +83 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js +358 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +201 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +1213 -0
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +47 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +200 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +46 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +185 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +81 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +190 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +238 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1547 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +51 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +177 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +83 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
- package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
- package/out-js/decentraland/social_service/errors.gen.js +405 -0
- package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2517 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1827 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9308 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
- package/out-js/google/protobuf/descriptor.gen.js +3173 -0
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
- package/out-js/google/protobuf/empty.gen.d.ts +38 -0
- package/out-js/google/protobuf/empty.gen.js +54 -0
- package/out-js/google/protobuf/empty.gen.js.map +1 -0
- package/out-js/quests.gen.d.ts +1 -0
- package/out-js/quests.gen.js +6 -0
- package/out-js/quests.gen.js.map +1 -0
- package/out-js/sdk-apis.gen.d.ts +1 -0
- package/out-js/sdk-apis.gen.js +6 -0
- package/out-js/sdk-apis.gen.js.map +1 -0
- package/out-js/sdk-components.gen.d.ts +1 -0
- package/out-js/sdk-components.gen.js +6 -0
- package/out-js/sdk-components.gen.js.map +1 -0
- package/out-js/sdk-development.gen.d.ts +1 -0
- package/out-js/sdk-development.gen.js +6 -0
- package/out-js/sdk-development.gen.js.map +1 -0
- package/out-js/social.gen.d.ts +1 -0
- package/out-js/social.gen.js +6 -0
- package/out-js/social.gen.js.map +1 -0
- package/out-ts/about.gen.ts +3 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
- package/out-ts/decentraland/common/colors.gen.ts +293 -0
- package/out-ts/decentraland/common/content_mapping.gen.ts +29 -20
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +127 -68
- package/out-ts/decentraland/common/texture.gen.ts +539 -0
- package/out-ts/decentraland/common/vectors.gen.ts +201 -62
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +334 -37
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +50 -38
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +703 -1775
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +466 -327
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +360 -235
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +215 -156
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +128 -80
- package/out-ts/decentraland/kernel/apis/players.gen.ts +158 -112
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +283 -176
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1054 -353
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +734 -159
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +346 -104
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +79 -57
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +46 -37
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +91 -74
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +1725 -256
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +366 -253
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1054 -627
- package/out-ts/decentraland/pulse/pulse_clusters.gen.ts +422 -0
- package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
- package/out-ts/decentraland/realm/about.gen.ts +1415 -0
- package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +182 -0
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
- package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +171 -0
- package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +202 -0
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +195 -0
- package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +349 -0
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +172 -0
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +86 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/common/avatar_mask.gen.ts +31 -0
- package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
- package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +77 -0
- package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +206 -0
- package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
- package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +281 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
- package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +655 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +536 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
- package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +436 -0
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
- package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +488 -0
- package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
- package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +249 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +233 -0
- package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +237 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1775 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +231 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +108 -0
- package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
- package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
- package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10674 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +3470 -0
- package/out-ts/google/protobuf/empty.gen.ts +19 -18
- package/out-ts/quests.gen.ts +3 -0
- package/out-ts/sdk-components.gen.ts +3 -0
- package/out-ts/sdk-development.gen.ts +3 -0
- package/out-ts/social.gen.ts +3 -0
- package/package.json +21 -11
- package/proto/decentraland/common/border_rect.proto +9 -1
- package/proto/decentraland/common/colors.proto +6 -0
- package/proto/decentraland/common/floats.proto +8 -0
- package/proto/decentraland/common/options.proto +51 -0
- package/proto/decentraland/common/quantization_example.proto +164 -0
- package/proto/decentraland/common/texture.proto +19 -8
- package/proto/decentraland/common/vectors.proto +7 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +19 -2
- package/proto/decentraland/kernel/apis/dev_tools.proto +2 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +13 -111
- package/proto/decentraland/kernel/apis/environment_api.proto +5 -0
- package/proto/decentraland/kernel/apis/ethereum_controller.proto +10 -0
- package/proto/decentraland/kernel/apis/parcel_identity.proto +3 -0
- package/proto/decentraland/kernel/apis/permissions.proto +4 -0
- package/proto/decentraland/kernel/apis/players.proto +6 -0
- package/proto/decentraland/kernel/apis/portable_experiences.proto +15 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +84 -16
- package/proto/decentraland/kernel/apis/runtime.proto +50 -8
- package/proto/decentraland/kernel/apis/scene.proto +16 -0
- package/proto/decentraland/kernel/apis/signed_fetch.proto +8 -0
- package/proto/decentraland/kernel/apis/social_controller.proto +6 -3
- package/proto/decentraland/kernel/apis/testing.proto +100 -0
- package/proto/decentraland/kernel/apis/user_action_module.proto +1 -0
- package/proto/decentraland/kernel/apis/user_identity.proto +1 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +101 -0
- package/proto/decentraland/kernel/comms/v3/archipelago.proto +58 -34
- package/proto/decentraland/pulse/pulse_client.proto +120 -0
- package/proto/decentraland/pulse/pulse_clusters.proto +61 -0
- package/proto/decentraland/pulse/pulse_server.proto +144 -0
- package/proto/decentraland/pulse/pulse_shared.proto +57 -0
- package/proto/decentraland/quests/definitions.proto +185 -0
- package/proto/decentraland/realm/about.proto +138 -0
- package/proto/decentraland/sdk/components/animator.proto +20 -8
- package/proto/decentraland/sdk/components/asset_load.proto +10 -0
- package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/audio_event.proto +12 -0
- package/proto/decentraland/sdk/components/audio_source.proto +24 -6
- package/proto/decentraland/sdk/components/audio_stream.proto +14 -3
- package/proto/decentraland/sdk/components/avatar_attach.proto +37 -6
- package/proto/decentraland/sdk/components/avatar_base.proto +16 -0
- package/proto/decentraland/sdk/components/avatar_emote_command.proto +32 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -7
- package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +36 -24
- package/proto/decentraland/sdk/components/billboard.proto +20 -5
- package/proto/decentraland/sdk/components/camera_mode.proto +3 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +13 -2
- package/proto/decentraland/sdk/components/common/avatar_mask.proto +7 -0
- package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
- package/proto/decentraland/sdk/components/common/camera_type.proto +1 -0
- package/proto/decentraland/sdk/components/common/explorer_ui.proto +15 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +17 -0
- package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
- package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
- package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
- package/proto/decentraland/sdk/components/engine_info.proto +16 -0
- package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
- package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +33 -0
- package/proto/decentraland/sdk/components/gltf_container.proto +11 -5
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
- package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
- package/proto/decentraland/sdk/components/light_source.proto +28 -0
- package/proto/decentraland/sdk/components/main_camera.proto +11 -0
- package/proto/decentraland/sdk/components/map_pin.proto +16 -0
- package/proto/decentraland/sdk/components/material.proto +7 -6
- package/proto/decentraland/sdk/components/mesh_collider.proto +36 -9
- package/proto/decentraland/sdk/components/mesh_renderer.proto +17 -4
- package/proto/decentraland/sdk/components/nft_shape.proto +15 -7
- package/proto/decentraland/sdk/components/particle_system.proto +133 -0
- package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
- package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
- package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +51 -14
- package/proto/decentraland/sdk/components/pointer_events_result.proto +8 -14
- package/proto/decentraland/sdk/components/pointer_lock.proto +3 -1
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +39 -0
- package/proto/decentraland/sdk/components/raycast.proto +45 -7
- package/proto/decentraland/sdk/components/raycast_result.proto +12 -16
- package/proto/decentraland/sdk/components/realm_info.proto +15 -0
- package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
- package/proto/decentraland/sdk/components/text_shape.proto +34 -24
- package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
- package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
- package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
- package/proto/decentraland/sdk/components/tween.proto +117 -0
- package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
- package/proto/decentraland/sdk/components/tween_state.proto +18 -0
- package/proto/decentraland/sdk/components/ui_background.proto +2 -2
- package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
- package/proto/decentraland/sdk/components/ui_dropdown.proto +1 -0
- package/proto/decentraland/sdk/components/ui_input.proto +2 -0
- package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
- package/proto/decentraland/sdk/components/ui_input_result.proto +1 -0
- package/proto/decentraland/sdk/components/ui_text.proto +15 -5
- package/proto/decentraland/sdk/components/ui_transform.proto +37 -0
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/sdk/components/video_player.proto +24 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
- package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
- package/proto/decentraland/sdk/development/local_development.proto +29 -0
- package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
- package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
- package/proto/decentraland/social_service/errors.proto +30 -0
- package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +721 -0
- package/protoc-gen-bitwise/generator_csharp.js +248 -0
- package/protoc-gen-bitwise/options.js +139 -0
- package/protoc-gen-bitwise/plugin.js +87 -0
- package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
- package/protoc-gen-bitwise/wire.js +239 -0
- package/public/about.proto +5 -0
- package/public/comms.proto +2 -1
- package/public/quests.proto +5 -0
- package/public/sdk-apis.proto +3 -0
- package/public/sdk-components.proto +48 -0
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +6 -0
- package/out-ts/bff-services.gen.ts +0 -3
- package/out-ts/decentraland/bff/authentication_service.gen.ts +0 -295
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +0 -251
- package/out-ts/decentraland/bff/comms_service.gen.ts +0 -202
- package/out-ts/decentraland/bff/http_endpoints.gen.ts +0 -894
- package/out-ts/decentraland/bff/topics_service.gen.ts +0 -427
- package/out-ts/decentraland/common/entity.gen.ts +0 -126
- package/out-ts/decentraland/renderer/common/friend_request_common.gen.ts +0 -206
- package/out-ts/decentraland/renderer/engine_interface.gen.ts +0 -8933
- package/out-ts/decentraland/renderer/kernel_services/analytics.gen.ts +0 -1004
- package/out-ts/decentraland/renderer/kernel_services/emotes_kernel.gen.ts +0 -151
- package/out-ts/decentraland/renderer/kernel_services/friend_request_kernel.gen.ts +0 -1136
- package/out-ts/decentraland/renderer/kernel_services/friends_kernel.gen.ts +0 -191
- package/out-ts/decentraland/renderer/renderer_services/crdt.gen.ts +0 -284
- package/out-ts/decentraland/renderer/renderer_services/emotes_renderer.gen.ts +0 -147
- package/out-ts/decentraland/renderer/renderer_services/friend_request_renderer.gen.ts +0 -470
- package/out-ts/decentraland/renderer/renderer_services/scene_controller.gen.ts +0 -579
- package/out-ts/decentraland/renderer/renderer_services/transport.gen.ts +0 -141
- package/out-ts/renderer-interface.gen.ts +0 -3
- package/proto/buf.yaml +0 -47
- package/proto/decentraland/bff/authentication_service.proto +0 -27
- package/proto/decentraland/bff/comms_director_service.proto +0 -33
- package/proto/decentraland/bff/comms_service.proto +0 -25
- package/proto/decentraland/bff/http_endpoints.proto +0 -80
- package/proto/decentraland/bff/topics_service.proto +0 -34
- package/proto/decentraland/renderer/common/friend_request_common.proto +0 -20
- package/proto/decentraland/renderer/engine_interface.proto +0 -709
- package/proto/decentraland/renderer/kernel_services/analytics.proto +0 -69
- package/proto/decentraland/renderer/kernel_services/emotes_kernel.proto +0 -16
- package/proto/decentraland/renderer/kernel_services/friend_request_kernel.proto +0 -100
- package/proto/decentraland/renderer/kernel_services/friends_kernel.proto +0 -22
- package/proto/decentraland/renderer/renderer_services/crdt.proto +0 -29
- package/proto/decentraland/renderer/renderer_services/emotes_renderer.proto +0 -15
- package/proto/decentraland/renderer/renderer_services/friend_request_renderer.proto +0 -36
- package/proto/decentraland/renderer/renderer_services/scene_controller.proto +0 -54
- package/proto/decentraland/renderer/renderer_services/transport.proto +0 -14
- package/proto/google/LICENSE +0 -27
- package/proto/google/README.md +0 -1
- package/proto/google/api/annotations.json +0 -83
- package/proto/google/api/annotations.proto +0 -11
- package/proto/google/api/http.json +0 -86
- package/proto/google/api/http.proto +0 -31
- package/proto/google/protobuf/api.json +0 -118
- package/proto/google/protobuf/api.proto +0 -34
- package/proto/google/protobuf/descriptor.json +0 -739
- package/proto/google/protobuf/descriptor.proto +0 -286
- package/proto/google/protobuf/source_context.json +0 -20
- package/proto/google/protobuf/source_context.proto +0 -7
- package/proto/google/protobuf/type.json +0 -202
- package/proto/google/protobuf/type.proto +0 -89
- package/public/bff-services.proto +0 -16
- package/public/renderer-interface.proto +0 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading_state.gen.js","sourceRoot":"","sources":["../../../../../out-ts/decentraland/sdk/components/common/loading_state.gen.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAapB,oDAsBC;AAED,gDAgBC;AAnDY,QAAA,eAAe,GAAG,oCAAoC,CAAC;AAEpE,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,qDAAW,CAAA;IACX,qDAAW,CAAA;IACX,yDAAa,CAAA;IACb,6EAAuB,CAAA;IACvB,uDAAY,CAAA;IACZ,gEAAiB,CAAA;AACnB,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB;AAED,SAAgB,oBAAoB,CAAC,MAAW;IAC9C,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,CAAC,CAAC;QACP,KAAK,SAAS;YACZ,OAAO,YAAY,CAAC,OAAO,CAAC;QAC9B,KAAK,CAAC,CAAC;QACP,KAAK,SAAS;YACZ,OAAO,YAAY,CAAC,OAAO,CAAC;QAC9B,KAAK,CAAC,CAAC;QACP,KAAK,WAAW;YACd,OAAO,YAAY,CAAC,SAAS,CAAC;QAChC,KAAK,CAAC,CAAC;QACP,KAAK,qBAAqB;YACxB,OAAO,YAAY,CAAC,mBAAmB,CAAC;QAC1C,KAAK,CAAC,CAAC;QACP,KAAK,UAAU;YACb,OAAO,YAAY,CAAC,QAAQ,CAAC;QAC/B,KAAK,CAAC,CAAC,CAAC;QACR,KAAK,cAAc,CAAC;QACpB;YACE,OAAO,YAAY,CAAC,YAAY,CAAC;IACrC,CAAC;AACH,CAAC;AAED,SAAgB,kBAAkB,CAAC,MAAoB;IACrD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,YAAY,CAAC,OAAO;YACvB,OAAO,SAAS,CAAC;QACnB,KAAK,YAAY,CAAC,OAAO;YACvB,OAAO,SAAS,CAAC;QACnB,KAAK,YAAY,CAAC,SAAS;YACzB,OAAO,WAAW,CAAC;QACrB,KAAK,YAAY,CAAC,mBAAmB;YACnC,OAAO,qBAAqB,CAAC;QAC/B,KAAK,YAAY,CAAC,QAAQ;YACxB,OAAO,UAAU,CAAC;QACpB,KAAK,YAAY,CAAC,YAAY,CAAC;QAC/B;YACE,OAAO,cAAc,CAAC;IAC1B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Vector3 } from "../../../common/vectors.gen";
|
|
3
|
+
export declare const protobufPackage = "decentraland.sdk.components.common";
|
|
4
|
+
/** RaycastHit contains information about the intersection of a ray with a mesh. */
|
|
5
|
+
export interface RaycastHit {
|
|
6
|
+
/** Position will be relative to the scene */
|
|
7
|
+
position: Vector3 | undefined;
|
|
8
|
+
/** the starting point of the ray in global coordinates */
|
|
9
|
+
globalOrigin: Vector3 | undefined;
|
|
10
|
+
/** the direction vector of the ray in global coordinates */
|
|
11
|
+
direction: Vector3 | undefined;
|
|
12
|
+
/** normal of the hit surface in global coordinates */
|
|
13
|
+
normalHit: Vector3 | undefined;
|
|
14
|
+
/** the distance between the ray origin and the hit position */
|
|
15
|
+
length: number;
|
|
16
|
+
/** mesh name, if collision happened inside a GltfContainer */
|
|
17
|
+
meshName?: string | undefined;
|
|
18
|
+
/** the ID of the Entity that has the impacted mesh attached */
|
|
19
|
+
entityId?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace RaycastHit {
|
|
22
|
+
function encode(message: RaycastHit, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): RaycastHit;
|
|
24
|
+
function fromJSON(object: any): RaycastHit;
|
|
25
|
+
function toJSON(message: RaycastHit): unknown;
|
|
26
|
+
function create<I extends Exact<DeepPartial<RaycastHit>, I>>(base?: I): RaycastHit;
|
|
27
|
+
function fromPartial<I extends Exact<DeepPartial<RaycastHit>, I>>(object: I): RaycastHit;
|
|
28
|
+
}
|
|
29
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
30
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
31
|
+
$case: string;
|
|
32
|
+
} ? {
|
|
33
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
$case: T["$case"];
|
|
36
|
+
} : T extends {} ? {
|
|
37
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
38
|
+
} : Partial<T>;
|
|
39
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
40
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
41
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
42
|
+
} & {
|
|
43
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RaycastHit = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const vectors_gen_1 = require("../../../common/vectors.gen");
|
|
10
|
+
exports.protobufPackage = "decentraland.sdk.components.common";
|
|
11
|
+
function createBaseRaycastHit() {
|
|
12
|
+
return {
|
|
13
|
+
position: undefined,
|
|
14
|
+
globalOrigin: undefined,
|
|
15
|
+
direction: undefined,
|
|
16
|
+
normalHit: undefined,
|
|
17
|
+
length: 0,
|
|
18
|
+
meshName: undefined,
|
|
19
|
+
entityId: undefined,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
var RaycastHit;
|
|
23
|
+
(function (RaycastHit) {
|
|
24
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
25
|
+
if (message.position !== undefined) {
|
|
26
|
+
vectors_gen_1.Vector3.encode(message.position, writer.uint32(10).fork()).ldelim();
|
|
27
|
+
}
|
|
28
|
+
if (message.globalOrigin !== undefined) {
|
|
29
|
+
vectors_gen_1.Vector3.encode(message.globalOrigin, writer.uint32(18).fork()).ldelim();
|
|
30
|
+
}
|
|
31
|
+
if (message.direction !== undefined) {
|
|
32
|
+
vectors_gen_1.Vector3.encode(message.direction, writer.uint32(26).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
if (message.normalHit !== undefined) {
|
|
35
|
+
vectors_gen_1.Vector3.encode(message.normalHit, writer.uint32(34).fork()).ldelim();
|
|
36
|
+
}
|
|
37
|
+
if (message.length !== 0) {
|
|
38
|
+
writer.uint32(45).float(message.length);
|
|
39
|
+
}
|
|
40
|
+
if (message.meshName !== undefined) {
|
|
41
|
+
writer.uint32(50).string(message.meshName);
|
|
42
|
+
}
|
|
43
|
+
if (message.entityId !== undefined) {
|
|
44
|
+
writer.uint32(56).uint32(message.entityId);
|
|
45
|
+
}
|
|
46
|
+
return writer;
|
|
47
|
+
}
|
|
48
|
+
RaycastHit.encode = encode;
|
|
49
|
+
function decode(input, length) {
|
|
50
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
51
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
52
|
+
const message = createBaseRaycastHit();
|
|
53
|
+
while (reader.pos < end) {
|
|
54
|
+
const tag = reader.uint32();
|
|
55
|
+
switch (tag >>> 3) {
|
|
56
|
+
case 1:
|
|
57
|
+
if (tag !== 10) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.position = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
61
|
+
continue;
|
|
62
|
+
case 2:
|
|
63
|
+
if (tag !== 18) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.globalOrigin = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
67
|
+
continue;
|
|
68
|
+
case 3:
|
|
69
|
+
if (tag !== 26) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.direction = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
73
|
+
continue;
|
|
74
|
+
case 4:
|
|
75
|
+
if (tag !== 34) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.normalHit = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
79
|
+
continue;
|
|
80
|
+
case 5:
|
|
81
|
+
if (tag !== 45) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.length = reader.float();
|
|
85
|
+
continue;
|
|
86
|
+
case 6:
|
|
87
|
+
if (tag !== 50) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.meshName = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
case 7:
|
|
93
|
+
if (tag !== 56) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.entityId = reader.uint32();
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
reader.skipType(tag & 7);
|
|
103
|
+
}
|
|
104
|
+
return message;
|
|
105
|
+
}
|
|
106
|
+
RaycastHit.decode = decode;
|
|
107
|
+
function fromJSON(object) {
|
|
108
|
+
return {
|
|
109
|
+
position: isSet(object.position) ? vectors_gen_1.Vector3.fromJSON(object.position) : undefined,
|
|
110
|
+
globalOrigin: isSet(object.globalOrigin) ? vectors_gen_1.Vector3.fromJSON(object.globalOrigin) : undefined,
|
|
111
|
+
direction: isSet(object.direction) ? vectors_gen_1.Vector3.fromJSON(object.direction) : undefined,
|
|
112
|
+
normalHit: isSet(object.normalHit) ? vectors_gen_1.Vector3.fromJSON(object.normalHit) : undefined,
|
|
113
|
+
length: isSet(object.length) ? Number(object.length) : 0,
|
|
114
|
+
meshName: isSet(object.meshName) ? String(object.meshName) : undefined,
|
|
115
|
+
entityId: isSet(object.entityId) ? Number(object.entityId) : undefined,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
RaycastHit.fromJSON = fromJSON;
|
|
119
|
+
function toJSON(message) {
|
|
120
|
+
const obj = {};
|
|
121
|
+
message.position !== undefined && (obj.position = message.position ? vectors_gen_1.Vector3.toJSON(message.position) : undefined);
|
|
122
|
+
message.globalOrigin !== undefined &&
|
|
123
|
+
(obj.globalOrigin = message.globalOrigin ? vectors_gen_1.Vector3.toJSON(message.globalOrigin) : undefined);
|
|
124
|
+
message.direction !== undefined &&
|
|
125
|
+
(obj.direction = message.direction ? vectors_gen_1.Vector3.toJSON(message.direction) : undefined);
|
|
126
|
+
message.normalHit !== undefined &&
|
|
127
|
+
(obj.normalHit = message.normalHit ? vectors_gen_1.Vector3.toJSON(message.normalHit) : undefined);
|
|
128
|
+
message.length !== undefined && (obj.length = message.length);
|
|
129
|
+
message.meshName !== undefined && (obj.meshName = message.meshName);
|
|
130
|
+
message.entityId !== undefined && (obj.entityId = Math.round(message.entityId));
|
|
131
|
+
return obj;
|
|
132
|
+
}
|
|
133
|
+
RaycastHit.toJSON = toJSON;
|
|
134
|
+
function create(base) {
|
|
135
|
+
return RaycastHit.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
136
|
+
}
|
|
137
|
+
RaycastHit.create = create;
|
|
138
|
+
function fromPartial(object) {
|
|
139
|
+
var _a, _b, _c;
|
|
140
|
+
const message = createBaseRaycastHit();
|
|
141
|
+
message.position = (object.position !== undefined && object.position !== null)
|
|
142
|
+
? vectors_gen_1.Vector3.fromPartial(object.position)
|
|
143
|
+
: undefined;
|
|
144
|
+
message.globalOrigin = (object.globalOrigin !== undefined && object.globalOrigin !== null)
|
|
145
|
+
? vectors_gen_1.Vector3.fromPartial(object.globalOrigin)
|
|
146
|
+
: undefined;
|
|
147
|
+
message.direction = (object.direction !== undefined && object.direction !== null)
|
|
148
|
+
? vectors_gen_1.Vector3.fromPartial(object.direction)
|
|
149
|
+
: undefined;
|
|
150
|
+
message.normalHit = (object.normalHit !== undefined && object.normalHit !== null)
|
|
151
|
+
? vectors_gen_1.Vector3.fromPartial(object.normalHit)
|
|
152
|
+
: undefined;
|
|
153
|
+
message.length = (_a = object.length) !== null && _a !== void 0 ? _a : 0;
|
|
154
|
+
message.meshName = (_b = object.meshName) !== null && _b !== void 0 ? _b : undefined;
|
|
155
|
+
message.entityId = (_c = object.entityId) !== null && _c !== void 0 ? _c : undefined;
|
|
156
|
+
return message;
|
|
157
|
+
}
|
|
158
|
+
RaycastHit.fromPartial = fromPartial;
|
|
159
|
+
})(RaycastHit || (exports.RaycastHit = RaycastHit = {}));
|
|
160
|
+
function isSet(value) {
|
|
161
|
+
return value !== null && value !== undefined;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=raycast_hit.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raycast_hit.gen.js","sourceRoot":"","sources":["../../../../../out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,6DAAsD;AAEzC,QAAA,eAAe,GAAG,oCAAoC,CAAC;AA8BpE,SAAS,oBAAoB;IAC3B,OAAO;QACL,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE,SAAS;QACvB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,CAAC;QACT,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;AACJ,CAAC;AAED,IAAiB,UAAU,CA6I1B;AA7ID,WAAiB,UAAU;IACzB,SAAgB,MAAM,CAAC,OAAmB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAClF,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,qBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACtE,CAAC;QACD,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YACvC,qBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1E,CAAC;QACD,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACpC,qBAAO,C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,SAAS,CAAC;QACd,OAAO,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI,CAAC;YAC/E,CAAC,CAAC,qBAAO,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC;YACvC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,MAAM,GAAG,MAAA,MAAM,CAAC,MAAM,mCAAI,CAAC,CAAC;QACpC,OAAO,CAAC,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,SAAS,CAAC;QAChD,OAAO,CAAC,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,SAAS,CAAC;QAChD,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,sBAAW,cAkB1B,CAAA;AACH,CAAC,EA7IgB,UAAU,0BAAV,UAAU,QA6I1B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const protobufPackage = "decentraland.sdk.components.common";
|
|
2
|
+
export declare enum TextAlignMode {
|
|
3
|
+
TAM_TOP_LEFT = 0,
|
|
4
|
+
TAM_TOP_CENTER = 1,
|
|
5
|
+
TAM_TOP_RIGHT = 2,
|
|
6
|
+
TAM_MIDDLE_LEFT = 3,
|
|
7
|
+
TAM_MIDDLE_CENTER = 4,
|
|
8
|
+
TAM_MIDDLE_RIGHT = 5,
|
|
9
|
+
TAM_BOTTOM_LEFT = 6,
|
|
10
|
+
TAM_BOTTOM_CENTER = 7,
|
|
11
|
+
TAM_BOTTOM_RIGHT = 8,
|
|
12
|
+
UNRECOGNIZED = -1
|
|
13
|
+
}
|
|
14
|
+
export declare function textAlignModeFromJSON(object: any): TextAlignMode;
|
|
15
|
+
export declare function textAlignModeToJSON(object: TextAlignMode): string;
|
|
16
|
+
export declare enum Font {
|
|
17
|
+
F_SANS_SERIF = 0,
|
|
18
|
+
F_SERIF = 1,
|
|
19
|
+
F_MONOSPACE = 2,
|
|
20
|
+
UNRECOGNIZED = -1
|
|
21
|
+
}
|
|
22
|
+
export declare function fontFromJSON(object: any): Font;
|
|
23
|
+
export declare function fontToJSON(object: Font): string;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Font = exports.TextAlignMode = exports.protobufPackage = void 0;
|
|
5
|
+
exports.textAlignModeFromJSON = textAlignModeFromJSON;
|
|
6
|
+
exports.textAlignModeToJSON = textAlignModeToJSON;
|
|
7
|
+
exports.fontFromJSON = fontFromJSON;
|
|
8
|
+
exports.fontToJSON = fontToJSON;
|
|
9
|
+
exports.protobufPackage = "decentraland.sdk.components.common";
|
|
10
|
+
var TextAlignMode;
|
|
11
|
+
(function (TextAlignMode) {
|
|
12
|
+
TextAlignMode[TextAlignMode["TAM_TOP_LEFT"] = 0] = "TAM_TOP_LEFT";
|
|
13
|
+
TextAlignMode[TextAlignMode["TAM_TOP_CENTER"] = 1] = "TAM_TOP_CENTER";
|
|
14
|
+
TextAlignMode[TextAlignMode["TAM_TOP_RIGHT"] = 2] = "TAM_TOP_RIGHT";
|
|
15
|
+
TextAlignMode[TextAlignMode["TAM_MIDDLE_LEFT"] = 3] = "TAM_MIDDLE_LEFT";
|
|
16
|
+
TextAlignMode[TextAlignMode["TAM_MIDDLE_CENTER"] = 4] = "TAM_MIDDLE_CENTER";
|
|
17
|
+
TextAlignMode[TextAlignMode["TAM_MIDDLE_RIGHT"] = 5] = "TAM_MIDDLE_RIGHT";
|
|
18
|
+
TextAlignMode[TextAlignMode["TAM_BOTTOM_LEFT"] = 6] = "TAM_BOTTOM_LEFT";
|
|
19
|
+
TextAlignMode[TextAlignMode["TAM_BOTTOM_CENTER"] = 7] = "TAM_BOTTOM_CENTER";
|
|
20
|
+
TextAlignMode[TextAlignMode["TAM_BOTTOM_RIGHT"] = 8] = "TAM_BOTTOM_RIGHT";
|
|
21
|
+
TextAlignMode[TextAlignMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
22
|
+
})(TextAlignMode || (exports.TextAlignMode = TextAlignMode = {}));
|
|
23
|
+
function textAlignModeFromJSON(object) {
|
|
24
|
+
switch (object) {
|
|
25
|
+
case 0:
|
|
26
|
+
case "TAM_TOP_LEFT":
|
|
27
|
+
return TextAlignMode.TAM_TOP_LEFT;
|
|
28
|
+
case 1:
|
|
29
|
+
case "TAM_TOP_CENTER":
|
|
30
|
+
return TextAlignMode.TAM_TOP_CENTER;
|
|
31
|
+
case 2:
|
|
32
|
+
case "TAM_TOP_RIGHT":
|
|
33
|
+
return TextAlignMode.TAM_TOP_RIGHT;
|
|
34
|
+
case 3:
|
|
35
|
+
case "TAM_MIDDLE_LEFT":
|
|
36
|
+
return TextAlignMode.TAM_MIDDLE_LEFT;
|
|
37
|
+
case 4:
|
|
38
|
+
case "TAM_MIDDLE_CENTER":
|
|
39
|
+
return TextAlignMode.TAM_MIDDLE_CENTER;
|
|
40
|
+
case 5:
|
|
41
|
+
case "TAM_MIDDLE_RIGHT":
|
|
42
|
+
return TextAlignMode.TAM_MIDDLE_RIGHT;
|
|
43
|
+
case 6:
|
|
44
|
+
case "TAM_BOTTOM_LEFT":
|
|
45
|
+
return TextAlignMode.TAM_BOTTOM_LEFT;
|
|
46
|
+
case 7:
|
|
47
|
+
case "TAM_BOTTOM_CENTER":
|
|
48
|
+
return TextAlignMode.TAM_BOTTOM_CENTER;
|
|
49
|
+
case 8:
|
|
50
|
+
case "TAM_BOTTOM_RIGHT":
|
|
51
|
+
return TextAlignMode.TAM_BOTTOM_RIGHT;
|
|
52
|
+
case -1:
|
|
53
|
+
case "UNRECOGNIZED":
|
|
54
|
+
default:
|
|
55
|
+
return TextAlignMode.UNRECOGNIZED;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function textAlignModeToJSON(object) {
|
|
59
|
+
switch (object) {
|
|
60
|
+
case TextAlignMode.TAM_TOP_LEFT:
|
|
61
|
+
return "TAM_TOP_LEFT";
|
|
62
|
+
case TextAlignMode.TAM_TOP_CENTER:
|
|
63
|
+
return "TAM_TOP_CENTER";
|
|
64
|
+
case TextAlignMode.TAM_TOP_RIGHT:
|
|
65
|
+
return "TAM_TOP_RIGHT";
|
|
66
|
+
case TextAlignMode.TAM_MIDDLE_LEFT:
|
|
67
|
+
return "TAM_MIDDLE_LEFT";
|
|
68
|
+
case TextAlignMode.TAM_MIDDLE_CENTER:
|
|
69
|
+
return "TAM_MIDDLE_CENTER";
|
|
70
|
+
case TextAlignMode.TAM_MIDDLE_RIGHT:
|
|
71
|
+
return "TAM_MIDDLE_RIGHT";
|
|
72
|
+
case TextAlignMode.TAM_BOTTOM_LEFT:
|
|
73
|
+
return "TAM_BOTTOM_LEFT";
|
|
74
|
+
case TextAlignMode.TAM_BOTTOM_CENTER:
|
|
75
|
+
return "TAM_BOTTOM_CENTER";
|
|
76
|
+
case TextAlignMode.TAM_BOTTOM_RIGHT:
|
|
77
|
+
return "TAM_BOTTOM_RIGHT";
|
|
78
|
+
case TextAlignMode.UNRECOGNIZED:
|
|
79
|
+
default:
|
|
80
|
+
return "UNRECOGNIZED";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
var Font;
|
|
84
|
+
(function (Font) {
|
|
85
|
+
Font[Font["F_SANS_SERIF"] = 0] = "F_SANS_SERIF";
|
|
86
|
+
Font[Font["F_SERIF"] = 1] = "F_SERIF";
|
|
87
|
+
Font[Font["F_MONOSPACE"] = 2] = "F_MONOSPACE";
|
|
88
|
+
Font[Font["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
89
|
+
})(Font || (exports.Font = Font = {}));
|
|
90
|
+
function fontFromJSON(object) {
|
|
91
|
+
switch (object) {
|
|
92
|
+
case 0:
|
|
93
|
+
case "F_SANS_SERIF":
|
|
94
|
+
return Font.F_SANS_SERIF;
|
|
95
|
+
case 1:
|
|
96
|
+
case "F_SERIF":
|
|
97
|
+
return Font.F_SERIF;
|
|
98
|
+
case 2:
|
|
99
|
+
case "F_MONOSPACE":
|
|
100
|
+
return Font.F_MONOSPACE;
|
|
101
|
+
case -1:
|
|
102
|
+
case "UNRECOGNIZED":
|
|
103
|
+
default:
|
|
104
|
+
return Font.UNRECOGNIZED;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function fontToJSON(object) {
|
|
108
|
+
switch (object) {
|
|
109
|
+
case Font.F_SANS_SERIF:
|
|
110
|
+
return "F_SANS_SERIF";
|
|
111
|
+
case Font.F_SERIF:
|
|
112
|
+
return "F_SERIF";
|
|
113
|
+
case Font.F_MONOSPACE:
|
|
114
|
+
return "F_MONOSPACE";
|
|
115
|
+
case Font.UNRECOGNIZED:
|
|
116
|
+
default:
|
|
117
|
+
return "UNRECOGNIZED";
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=texts.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texts.gen.js","sourceRoot":"","sources":["../../../../../out-ts/decentraland/sdk/components/common/texts.gen.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAiBpB,sDAkCC;AAED,kDAwBC;AASD,oCAgBC;AAED,gCAYC;AAlHY,QAAA,eAAe,GAAG,oCAAoC,CAAC;AAEpE,IAAY,aAWX;AAXD,WAAY,aAAa;IACvB,iEAAgB,CAAA;IAChB,qEAAkB,CAAA;IAClB,mEAAiB,CAAA;IACjB,uEAAmB,CAAA;IACnB,2EAAqB,CAAA;IACrB,yEAAoB,CAAA;IACpB,uEAAmB,CAAA;IACnB,2EAAqB,CAAA;IACrB,yEAAoB,CAAA;IACpB,kEAAiB,CAAA;AACnB,CAAC,EAXW,aAAa,6BAAb,aAAa,QAWxB;AAED,SAAgB,qBAAqB,CAAC,MAAW;IAC/C,QAAQ,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imal";
|
|
2
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
3
|
+
/**
|
|
4
|
+
* EngineInfo provides information about the graphics engine running the scene.
|
|
5
|
+
* The values of this component are written at the "physics" stage of the ADR-148. Meaning
|
|
6
|
+
* the tick_number and frame_number of the same frame could be used as correlation numbers
|
|
7
|
+
* for timestamps in other components.
|
|
8
|
+
*/
|
|
9
|
+
export interface PBEngineInfo {
|
|
10
|
+
/** frame counter of the engine */
|
|
11
|
+
frameNumber: number;
|
|
12
|
+
/** total runtime of this scene in seconds */
|
|
13
|
+
totalRuntime: number;
|
|
14
|
+
/** tick counter of the scene as per ADR-148 */
|
|
15
|
+
tickNumber: number;
|
|
16
|
+
/** visibility state of the scene regarding Explorer fullscreen UI */
|
|
17
|
+
sceneHidden: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace PBEngineInfo {
|
|
20
|
+
function encode(message: PBEngineInfo, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
|
|
22
|
+
function fromJSON(object: any): PBEngineInfo;
|
|
23
|
+
function toJSON(message: PBEngineInfo): unknown;
|
|
24
|
+
function create<I extends Exact<DeepPartial<PBEngineInfo>, I>>(base?: I): PBEngineInfo;
|
|
25
|
+
function fromPartial<I extends Exact<DeepPartial<PBEngineInfo>, I>>(object: I): PBEngineInfo;
|
|
26
|
+
}
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
29
|
+
$case: string;
|
|
30
|
+
} ? {
|
|
31
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
$case: T["$case"];
|
|
34
|
+
} : T extends {} ? {
|
|
35
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
36
|
+
} : Partial<T>;
|
|
37
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
38
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
39
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
40
|
+
} & {
|
|
41
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
42
|
+
};
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PBEngineInfo = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
10
|
+
function createBasePBEngineInfo() {
|
|
11
|
+
return { frameNumber: 0, totalRuntime: 0, tickNumber: 0, sceneHidden: false };
|
|
12
|
+
}
|
|
13
|
+
var PBEngineInfo;
|
|
14
|
+
(function (PBEngineInfo) {
|
|
15
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
|
+
if (message.frameNumber !== 0) {
|
|
17
|
+
writer.uint32(8).uint32(message.frameNumber);
|
|
18
|
+
}
|
|
19
|
+
if (message.totalRuntime !== 0) {
|
|
20
|
+
writer.uint32(21).float(message.totalRuntime);
|
|
21
|
+
}
|
|
22
|
+
if (message.tickNumber !== 0) {
|
|
23
|
+
writer.uint32(24).uint32(message.tickNumber);
|
|
24
|
+
}
|
|
25
|
+
if (message.sceneHidden === true) {
|
|
26
|
+
writer.uint32(32).bool(message.sceneHidden);
|
|
27
|
+
}
|
|
28
|
+
return writer;
|
|
29
|
+
}
|
|
30
|
+
PBEngineInfo.encode = encode;
|
|
31
|
+
function decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBasePBEngineInfo();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 8) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.frameNumber = reader.uint32();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 21) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.totalRuntime = reader.float();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 24) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.tickNumber = reader.uint32();
|
|
55
|
+
continue;
|
|
56
|
+
case 4:
|
|
57
|
+
if (tag !== 32) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.sceneHidden = reader.bool();
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
reader.skipType(tag & 7);
|
|
67
|
+
}
|
|
68
|
+
return message;
|
|
69
|
+
}
|
|
70
|
+
PBEngineInfo.decode = decode;
|
|
71
|
+
function fromJSON(object) {
|
|
72
|
+
return {
|
|
73
|
+
frameNumber: isSet(object.frameNumber) ? Number(object.frameNumber) : 0,
|
|
74
|
+
totalRuntime: isSet(object.totalRuntime) ? Number(object.totalRuntime) : 0,
|
|
75
|
+
tickNumber: isSet(object.tickNumber) ? Number(object.tickNumber) : 0,
|
|
76
|
+
sceneHidden: isSet(object.sceneHidden) ? Boolean(object.sceneHidden) : false,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
PBEngineInfo.fromJSON = fromJSON;
|
|
80
|
+
function toJSON(message) {
|
|
81
|
+
const obj = {};
|
|
82
|
+
message.frameNumber !== undefined && (obj.frameNumber = Math.round(message.frameNumber));
|
|
83
|
+
message.totalRuntime !== undefined && (obj.totalRuntime = message.totalRuntime);
|
|
84
|
+
message.tickNumber !== undefined && (obj.tickNumber = Math.round(message.tickNumber));
|
|
85
|
+
message.sceneHidden !== undefined && (obj.sceneHidden = message.sceneHidden);
|
|
86
|
+
return obj;
|
|
87
|
+
}
|
|
88
|
+
PBEngineInfo.toJSON = toJSON;
|
|
89
|
+
function create(base) {
|
|
90
|
+
return PBEngineInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
91
|
+
}
|
|
92
|
+
PBEngineInfo.create = create;
|
|
93
|
+
function fromPartial(object) {
|
|
94
|
+
var _a, _b, _c, _d;
|
|
95
|
+
const message = createBasePBEngineInfo();
|
|
96
|
+
message.frameNumber = (_a = object.frameNumber) !== null && _a !== void 0 ? _a : 0;
|
|
97
|
+
message.totalRuntime = (_b = object.totalRuntime) !== null && _b !== void 0 ? _b : 0;
|
|
98
|
+
message.tickNumber = (_c = object.tickNumber) !== null && _c !== void 0 ? _c : 0;
|
|
99
|
+
message.sceneHidden = (_d = object.sceneHidden) !== null && _d !== void 0 ? _d : false;
|
|
100
|
+
return message;
|
|
101
|
+
}
|
|
102
|
+
PBEngineInfo.fromPartial = fromPartial;
|
|
103
|
+
})(PBEngineInfo || (exports.PBEngineInfo = PBEngineInfo = {}));
|
|
104
|
+
function isSet(value) {
|
|
105
|
+
return value !== null && value !== undefined;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=engine_info.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine_info.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/engine_info.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAmB7D,SAAS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J,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IAFe,mBAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAgD,MAAS;;QAClF,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;QACzC,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,CAAC,CAAC;QAC9C,OAAO,CAAC,YAAY,GAAG,MAAA,MAAM,CAAC,YAAY,mCAAI,CAAC,CAAC;QAChD,OAAO,CAAC,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,CAAC,CAAC;QAC5C,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,KAAK,CAAC;QAClD,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,wBAAW,cAO1B,CAAA;AACH,CAAC,EA3FgB,YAAY,4BAAZ,YAAY,QA2F5B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
3
|
+
/**
|
|
4
|
+
* Grow-only value set appended to the scene root entity.
|
|
5
|
+
* Reports the outcome of an EU_ITEM_PURCHASE flow triggered via OpenExplorerUi.
|
|
6
|
+
*/
|
|
7
|
+
export interface PBExplorerItemPurchaseResult {
|
|
8
|
+
urn: string;
|
|
9
|
+
/** The scene tick when the event occurred */
|
|
10
|
+
timestamp: number;
|
|
11
|
+
/** The OpenExplorerUiRequest.request_id that caused this event; 0 when the request carried none */
|
|
12
|
+
requestId: number;
|
|
13
|
+
status?: {
|
|
14
|
+
$case: "purchased";
|
|
15
|
+
purchased: PBExplorerItemPurchaseResult_Purchased;
|
|
16
|
+
} | {
|
|
17
|
+
$case: "dismissed";
|
|
18
|
+
dismissed: PBExplorerItemPurchaseResult_Dismissed;
|
|
19
|
+
} | {
|
|
20
|
+
$case: "failed";
|
|
21
|
+
failed: PBExplorerItemPurchaseResult_Failed;
|
|
22
|
+
} | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface PBExplorerItemPurchaseResult_Purchased {
|
|
25
|
+
}
|
|
26
|
+
export interface PBExplorerItemPurchaseResult_Dismissed {
|
|
27
|
+
}
|
|
28
|
+
export interface PBExplorerItemPurchaseResult_Failed {
|
|
29
|
+
}
|
|
30
|
+
export declare namespace PBExplorerItemPurchaseResult {
|
|
31
|
+
function encode(message: PBExplorerItemPurchaseResult, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult;
|
|
33
|
+
function fromJSON(object: any): PBExplorerItemPurchaseResult;
|
|
34
|
+
function toJSON(message: PBExplorerItemPurchaseResult): unknown;
|
|
35
|
+
function create<I extends Exact<DeepPartial<PBExplorerItemPurchaseResult>, I>>(base?: I): PBExplorerItemPurchaseResult;
|
|
36
|
+
function fromPartial<I extends Exact<DeepPartial<PBExplorerItemPurchaseResult>, I>>(object: I): PBExplorerItemPurchaseResult;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace PBExplorerItemPurchaseResult_Purchased {
|
|
39
|
+
function encode(_: PBExplorerItemPurchaseResult_Purchased, writer?: _m0.Writer): _m0.Writer;
|
|
40
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Purchased;
|
|
41
|
+
function fromJSON(_: any): PBExplorerItemPurchaseResult_Purchased;
|
|
42
|
+
function toJSON(_: PBExplorerItemPurchaseResult_Purchased): unknown;
|
|
43
|
+
function create<I extends Exact<DeepPartial<PBExplorerItemPurchaseResult_Purchased>, I>>(base?: I): PBExplorerItemPurchaseResult_Purchased;
|
|
44
|
+
function fromPartial<I extends Exact<DeepPartial<PBExplorerItemPurchaseResult_Purchased>, I>>(_: I): PBExplorerItemPurchaseResult_Purchased;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace PBExplorerItemPurchaseResult_Dismissed {
|
|
47
|
+
function encode(_: PBExplorerItemPurchaseResult_Dismissed, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Dismissed;
|
|
49
|
+
function fromJSON(_: any): PBExplorerItemPurchaseResult_Dismissed;
|
|
50
|
+
function toJSON(_: PBExplorerItemPurchaseResult_Dismissed): unknown;
|
|
51
|
+
function create<I extends Exact<DeepPartial<PBExplorerItemPurchaseResult_Dismissed>, I>>(base?: I): PBExplorerItemPurchaseResult_Dismissed;
|
|
52
|
+
function fromPartial<I extends Exact<DeepPartial<PBExplorerItemPurchaseResult_Dismissed>, I>>(_: I): PBExplorerItemPurchaseResult_Dismissed;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace PBExplorerItemPurchaseResult_Failed {
|
|
55
|
+
function encode(_: PBExplorerItemPurchaseResult_Failed, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Failed;
|
|
57
|
+
function fromJSON(_: any): PBExplorerItemPurchaseResult_Failed;
|
|
58
|
+
function toJSON(_: PBExplorerItemPurchaseResult_Failed): unknown;
|
|
59
|
+
function create<I extends Exact<DeepPartial<PBExplorerItemPurchaseResult_Failed>, I>>(base?: I): PBExplorerItemPurchaseResult_Failed;
|
|
60
|
+
function fromPartial<I extends Exact<DeepPartial<PBExplorerItemPurchaseResult_Failed>, I>>(_: I): PBExplorerItemPurchaseResult_Failed;
|
|
61
|
+
}
|
|
62
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
63
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
64
|
+
$case: string;
|
|
65
|
+
} ? {
|
|
66
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
67
|
+
} & {
|
|
68
|
+
$case: T["$case"];
|
|
69
|
+
} : T extends {} ? {
|
|
70
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
71
|
+
} : Partial<T>;
|
|
72
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
73
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
74
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
75
|
+
} & {
|
|
76
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
77
|
+
};
|
|
78
|
+
export {};
|