@dcl/protocol 1.0.0-2689188518.commit-e68d82c → 1.0.0-27167791416.commit-a470b13
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 +68 -0
- 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 +303 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1056 -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 +334 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +2093 -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 +224 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1204 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.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 +36 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -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 +37 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +95 -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 +60 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +153 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +82 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +298 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +54 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js +128 -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/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/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 +41 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js +95 -0
- package/out-js/decentraland/sdk/components/engine_info.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 +129 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +470 -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 +110 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +306 -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 +81 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
- package/out-js/decentraland/sdk/components/text_shape.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 +45 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -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 +44 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
- package/out-js/decentraland/sdk/components/ui_input.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 +50 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -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/comms.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 +93 -0
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +370 -0
- package/out-ts/decentraland/common/texture.gen.ts +539 -0
- package/out-ts/decentraland/common/vectors.gen.ts +377 -0
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +434 -0
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +161 -0
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +1587 -0
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +1264 -0
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +982 -0
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +608 -0
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +397 -0
- package/out-ts/decentraland/kernel/apis/players.gen.ts +415 -0
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +668 -0
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1150 -0
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +911 -0
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +691 -0
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +230 -0
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +146 -0
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +264 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2389 -0
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +1029 -0
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1338 -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 +149 -0
- package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +115 -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 +188 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +383 -0
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +148 -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/camera_type.gen.ts +43 -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 +119 -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 +535 -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 +415 -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 +470 -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 +231 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -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 +72 -0
- package/out-ts/quests.gen.ts +3 -0
- package/out-ts/sdk-apis.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 +26 -10
- package/proto/buf.yaml +47 -0
- package/proto/decentraland/common/border_rect.proto +18 -0
- package/proto/decentraland/common/colors.proto +21 -0
- package/proto/decentraland/common/content_mapping.proto +7 -0
- package/proto/decentraland/common/entity.proto +13 -0
- package/proto/decentraland/common/floats.proto +8 -0
- package/{kernel/apis/UserIdentity.proto → proto/decentraland/common/sdk/user_data.proto} +1 -17
- package/proto/decentraland/common/texture.proto +45 -0
- package/proto/decentraland/common/vectors.proto +26 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +29 -0
- package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +3 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
- package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
- package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +12 -1
- package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +6 -5
- package/proto/decentraland/kernel/apis/permissions.proto +36 -0
- package/proto/decentraland/kernel/apis/players.proto +35 -0
- package/proto/decentraland/kernel/apis/portable_experiences.proto +55 -0
- package/proto/decentraland/kernel/apis/restricted_actions.proto +100 -0
- package/proto/decentraland/kernel/apis/runtime.proto +71 -0
- package/proto/decentraland/kernel/apis/scene.proto +16 -0
- package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +9 -0
- package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
- package/proto/decentraland/kernel/apis/testing.proto +100 -0
- package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +2 -0
- package/proto/decentraland/kernel/apis/user_identity.proto +22 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +176 -0
- package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +104 -0
- package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
- package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
- package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
- package/proto/decentraland/kernel/comms/v3/archipelago.proto +86 -0
- package/proto/decentraland/kernel/comms/v3/comms.proto +64 -0
- package/proto/decentraland/quests/definitions.proto +185 -0
- package/proto/decentraland/realm/about.proto +138 -0
- package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
- package/proto/decentraland/sdk/components/animator.proto +31 -0
- 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 +31 -0
- package/proto/decentraland/sdk/components/audio_stream.proto +22 -0
- package/proto/decentraland/sdk/components/avatar_attach.proto +51 -0
- package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
- package/proto/decentraland/sdk/components/avatar_emote_command.proto +13 -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 +32 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +49 -0
- package/proto/decentraland/sdk/components/billboard.proto +29 -0
- package/proto/decentraland/sdk/components/camera_mode.proto +12 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +25 -0
- package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
- package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
- package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +37 -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/common/texts.proto +21 -0
- package/proto/decentraland/sdk/components/engine_info.proto +15 -0
- package/proto/decentraland/sdk/components/gltf_container.proto +19 -0
- 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 +57 -0
- package/proto/decentraland/sdk/components/mesh_collider.proto +62 -0
- package/proto/decentraland/sdk/components/mesh_renderer.proto +43 -0
- package/proto/decentraland/sdk/components/nft_shape.proto +48 -0
- 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 +64 -0
- package/proto/decentraland/sdk/components/pointer_events_result.proto +19 -0
- package/proto/decentraland/sdk/components/pointer_lock.proto +11 -0
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +39 -0
- package/proto/decentraland/sdk/components/raycast.proto +58 -0
- package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
- 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 +45 -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 +34 -0
- package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
- package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
- package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
- package/proto/decentraland/sdk/components/ui_input.proto +20 -0
- package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +26 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +178 -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 +16 -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/proto/google/LICENSE +27 -0
- package/proto/google/README.md +1 -0
- package/proto/google/api/annotations.json +83 -0
- package/proto/google/api/annotations.proto +11 -0
- package/proto/google/api/http.json +86 -0
- package/proto/google/api/http.proto +31 -0
- package/proto/google/protobuf/api.json +118 -0
- package/proto/google/protobuf/api.proto +34 -0
- package/proto/google/protobuf/descriptor.json +739 -0
- package/proto/google/protobuf/descriptor.proto +286 -0
- package/proto/google/protobuf/source_context.json +20 -0
- package/proto/google/protobuf/source_context.proto +7 -0
- package/proto/google/protobuf/type.json +202 -0
- package/proto/google/protobuf/type.proto +89 -0
- package/public/about.proto +5 -0
- package/public/comms.proto +5 -0
- package/public/quests.proto +5 -0
- package/public/sdk-apis.proto +25 -0
- package/public/sdk-components.proto +43 -0
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +6 -0
- package/ecs/components/Animator.proto +0 -18
- package/ecs/components/AudioSource.proto +0 -12
- package/ecs/components/AudioStream.proto +0 -10
- package/ecs/components/AvatarAttach.proto +0 -9
- package/ecs/components/AvatarModifierArea.proto +0 -15
- package/ecs/components/AvatarShape.proto +0 -20
- package/ecs/components/Billboard.proto +0 -10
- package/ecs/components/BoxShape.proto +0 -11
- package/ecs/components/CameraModeArea.proto +0 -14
- package/ecs/components/CylinderShape.proto +0 -12
- package/ecs/components/GLTFShape.proto +0 -11
- package/ecs/components/NFTShape.proto +0 -16
- package/ecs/components/OnPointerDown.proto +0 -11
- package/ecs/components/OnPointerDownResult.proto +0 -16
- package/ecs/components/OnPointerUp.proto +0 -11
- package/ecs/components/OnPointerUpResult.proto +0 -16
- package/ecs/components/PlaneShape.proto +0 -11
- package/ecs/components/SphereShape.proto +0 -10
- package/ecs/components/TextShape.proto +0 -33
- package/ecs/components/UiTransform.proto +0 -159
- package/ecs/components/common/Color3.proto +0 -8
- package/ecs/components/common/Vector3.proto +0 -7
- package/kernel/apis/CommunicationsController.proto +0 -11
- package/kernel/apis/EngineAPI.proto +0 -180
- package/kernel/apis/EnvironmentAPI.proto +0 -70
- package/kernel/apis/ExperimentalAPI.proto +0 -16
- package/kernel/apis/Permissions.proto +0 -30
- package/kernel/apis/Players.proto +0 -28
- package/kernel/apis/PortableExperiences.proto +0 -40
- package/kernel/apis/RestrictedActions.proto +0 -25
- package/kernel/apis/SceneStateStorageController.proto +0 -114
- package/kernel/apis/SocialController.proto +0 -15
- package/kernel/comms/v1/broker.proto +0 -114
- package/kernel/comms/v1/comms.proto +0 -68
- package/kernel/comms/v2/comms.proto +0 -59
- package/renderer-protocol/RendererProtocol.proto +0 -24
- /package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
- /package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
|
@@ -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,C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C;YACvC,CAAC,CAAC,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,M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+
import _m0 from "protobufjs/minimal";
|
|
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
|
+
}
|
|
17
|
+
export declare namespace PBEngineInfo {
|
|
18
|
+
function encode(message: PBEngineInfo, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
|
|
20
|
+
function fromJSON(object: any): PBEngineInfo;
|
|
21
|
+
function toJSON(message: PBEngineInfo): unknown;
|
|
22
|
+
function create<I extends Exact<DeepPartial<PBEngineInfo>, I>>(base?: I): PBEngineInfo;
|
|
23
|
+
function fromPartial<I extends Exact<DeepPartial<PBEngineInfo>, I>>(object: I): PBEngineInfo;
|
|
24
|
+
}
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {
|
|
27
|
+
$case: string;
|
|
28
|
+
} ? {
|
|
29
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
30
|
+
} & {
|
|
31
|
+
$case: T["$case"];
|
|
32
|
+
} : T extends {} ? {
|
|
33
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
34
|
+
} : Partial<T>;
|
|
35
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
36
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
37
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
38
|
+
} & {
|
|
39
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,95 @@
|
|
|
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 };
|
|
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
|
+
return writer;
|
|
26
|
+
}
|
|
27
|
+
PBEngineInfo.encode = encode;
|
|
28
|
+
function decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBasePBEngineInfo();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 8) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.frameNumber = reader.uint32();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 21) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.totalRuntime = reader.float();
|
|
46
|
+
continue;
|
|
47
|
+
case 3:
|
|
48
|
+
if (tag !== 24) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
message.tickNumber = reader.uint32();
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
reader.skipType(tag & 7);
|
|
58
|
+
}
|
|
59
|
+
return message;
|
|
60
|
+
}
|
|
61
|
+
PBEngineInfo.decode = decode;
|
|
62
|
+
function fromJSON(object) {
|
|
63
|
+
return {
|
|
64
|
+
frameNumber: isSet(object.frameNumber) ? Number(object.frameNumber) : 0,
|
|
65
|
+
totalRuntime: isSet(object.totalRuntime) ? Number(object.totalRuntime) : 0,
|
|
66
|
+
tickNumber: isSet(object.tickNumber) ? Number(object.tickNumber) : 0,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
PBEngineInfo.fromJSON = fromJSON;
|
|
70
|
+
function toJSON(message) {
|
|
71
|
+
const obj = {};
|
|
72
|
+
message.frameNumber !== undefined && (obj.frameNumber = Math.round(message.frameNumber));
|
|
73
|
+
message.totalRuntime !== undefined && (obj.totalRuntime = message.totalRuntime);
|
|
74
|
+
message.tickNumber !== undefined && (obj.tickNumber = Math.round(message.tickNumber));
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
PBEngineInfo.toJSON = toJSON;
|
|
78
|
+
function create(base) {
|
|
79
|
+
return PBEngineInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
80
|
+
}
|
|
81
|
+
PBEngineInfo.create = create;
|
|
82
|
+
function fromPartial(object) {
|
|
83
|
+
var _a, _b, _c;
|
|
84
|
+
const message = createBasePBEngineInfo();
|
|
85
|
+
message.frameNumber = (_a = object.frameNumber) !== null && _a !== void 0 ? _a : 0;
|
|
86
|
+
message.totalRuntime = (_b = object.totalRuntime) !== null && _b !== void 0 ? _b : 0;
|
|
87
|
+
message.tickNumber = (_c = object.tickNumber) !== null && _c !== void 0 ? _c : 0;
|
|
88
|
+
return message;
|
|
89
|
+
}
|
|
90
|
+
PBEngineInfo.fromPartial = fromPartial;
|
|
91
|
+
})(PBEngineInfo || (exports.PBEngineInfo = PBEngineInfo = {}));
|
|
92
|
+
function isSet(value) {
|
|
93
|
+
return value !== null && value !== undefined;
|
|
94
|
+
}
|
|
95
|
+
//# 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;AAiB7D,SAAS,sBAAsB;IAC7B,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;AAC5D,CAAC;AAED,IAAiB,YAAY,CA8E5B;AA9ED,WAAiB,YAAY;IAC3B,SAAgB,MAAM,CAAC,OAAqB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACpF,IAAI,OAAO,CAAC,WAAW,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,OAAO,CAAC,YAAY,KAAK,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AU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QACtF,OAAO,GAAG,CAAC;IACb,CAAC;IANe,mBAAM,SAMrB,CAAA;IAED,SAAgB,MAAM,CAAgD,IAAQ;QAC5E,OAAO,YAAY,CAAC,WAAW,CAAC,IAAI,aAAJ,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,OAAO,CAAC;IACjB,CAAC;IANe,wBAAW,cAM1B,CAAA;AACH,CAAC,EA9EgB,YAAY,4BAAZ,YAAY,QA8E5B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
3
|
+
/**
|
|
4
|
+
* GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
|
|
5
|
+
*
|
|
6
|
+
* This allows the use of custom models, materials, collision boundaries and shapes that can't be
|
|
7
|
+
* achieved using MeshRenderer, MeshCollider and other standard components.
|
|
8
|
+
*/
|
|
9
|
+
export interface PBGltfContainer {
|
|
10
|
+
/** the GLTF file path as listed in the scene's manifest. */
|
|
11
|
+
src: string;
|
|
12
|
+
/** default: 0 */
|
|
13
|
+
visibleMeshesCollisionMask?: number | undefined;
|
|
14
|
+
/** default: CL_POINTER | CL_PHYSICS */
|
|
15
|
+
invisibleMeshesCollisionMask?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace PBGltfContainer {
|
|
18
|
+
function encode(message: PBGltfContainer, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainer;
|
|
20
|
+
function fromJSON(object: any): PBGltfContainer;
|
|
21
|
+
function toJSON(message: PBGltfContainer): unknown;
|
|
22
|
+
function create<I extends Exact<DeepPartial<PBGltfContainer>, I>>(base?: I): PBGltfContainer;
|
|
23
|
+
function fromPartial<I extends Exact<DeepPartial<PBGltfContainer>, I>>(object: I): PBGltfContainer;
|
|
24
|
+
}
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {
|
|
27
|
+
$case: string;
|
|
28
|
+
} ? {
|
|
29
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
30
|
+
} & {
|
|
31
|
+
$case: T["$case"];
|
|
32
|
+
} : T extends {} ? {
|
|
33
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
34
|
+
} : Partial<T>;
|
|
35
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
36
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
37
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
38
|
+
} & {
|
|
39
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
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.PBGltfContainer = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
10
|
+
function createBasePBGltfContainer() {
|
|
11
|
+
return { src: "", visibleMeshesCollisionMask: undefined, invisibleMeshesCollisionMask: undefined };
|
|
12
|
+
}
|
|
13
|
+
var PBGltfContainer;
|
|
14
|
+
(function (PBGltfContainer) {
|
|
15
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
|
+
if (message.src !== "") {
|
|
17
|
+
writer.uint32(10).string(message.src);
|
|
18
|
+
}
|
|
19
|
+
if (message.visibleMeshesCollisionMask !== undefined) {
|
|
20
|
+
writer.uint32(32).uint32(message.visibleMeshesCollisionMask);
|
|
21
|
+
}
|
|
22
|
+
if (message.invisibleMeshesCollisionMask !== undefined) {
|
|
23
|
+
writer.uint32(40).uint32(message.invisibleMeshesCollisionMask);
|
|
24
|
+
}
|
|
25
|
+
return writer;
|
|
26
|
+
}
|
|
27
|
+
PBGltfContainer.encode = encode;
|
|
28
|
+
function decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBasePBGltfContainer();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 10) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.src = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 4:
|
|
42
|
+
if (tag !== 32) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.visibleMeshesCollisionMask = reader.uint32();
|
|
46
|
+
continue;
|
|
47
|
+
case 5:
|
|
48
|
+
if (tag !== 40) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
message.invisibleMeshesCollisionMask = reader.uint32();
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
reader.skipType(tag & 7);
|
|
58
|
+
}
|
|
59
|
+
return message;
|
|
60
|
+
}
|
|
61
|
+
PBGltfContainer.decode = decode;
|
|
62
|
+
function fromJSON(object) {
|
|
63
|
+
return {
|
|
64
|
+
src: isSet(object.src) ? String(object.src) : "",
|
|
65
|
+
visibleMeshesCollisionMask: isSet(object.visibleMeshesCollisionMask)
|
|
66
|
+
? Number(object.visibleMeshesCollisionMask)
|
|
67
|
+
: undefined,
|
|
68
|
+
invisibleMeshesCollisionMask: isSet(object.invisibleMeshesCollisionMask)
|
|
69
|
+
? Number(object.invisibleMeshesCollisionMask)
|
|
70
|
+
: undefined,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
PBGltfContainer.fromJSON = fromJSON;
|
|
74
|
+
function toJSON(message) {
|
|
75
|
+
const obj = {};
|
|
76
|
+
message.src !== undefined && (obj.src = message.src);
|
|
77
|
+
message.visibleMeshesCollisionMask !== undefined &&
|
|
78
|
+
(obj.visibleMeshesCollisionMask = Math.round(message.visibleMeshesCollisionMask));
|
|
79
|
+
message.invisibleMeshesCollisionMask !== undefined &&
|
|
80
|
+
(obj.invisibleMeshesCollisionMask = Math.round(message.invisibleMeshesCollisionMask));
|
|
81
|
+
return obj;
|
|
82
|
+
}
|
|
83
|
+
PBGltfContainer.toJSON = toJSON;
|
|
84
|
+
function create(base) {
|
|
85
|
+
return PBGltfContainer.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
86
|
+
}
|
|
87
|
+
PBGltfContainer.create = create;
|
|
88
|
+
function fromPartial(object) {
|
|
89
|
+
var _a, _b, _c;
|
|
90
|
+
const message = createBasePBGltfContainer();
|
|
91
|
+
message.src = (_a = object.src) !== null && _a !== void 0 ? _a : "";
|
|
92
|
+
message.visibleMeshesCollisionMask = (_b = object.visibleMeshesCollisionMask) !== null && _b !== void 0 ? _b : undefined;
|
|
93
|
+
message.invisibleMeshesCollisionMask = (_c = object.invisibleMeshesCollisionMask) !== null && _c !== void 0 ? _c : undefined;
|
|
94
|
+
return message;
|
|
95
|
+
}
|
|
96
|
+
PBGltfContainer.fromPartial = fromPartial;
|
|
97
|
+
})(PBGltfContainer || (exports.PBGltfContainer = PBGltfContainer = {}));
|
|
98
|
+
function isSet(value) {
|
|
99
|
+
return value !== null && value !== undefined;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=gltf_container.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gltf_container.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/gltf_container.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAmB7D,SAAS,yBAAyB;IAChC,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,0BAA0B,EAAE,SAAS,EAAE,4BAA4B,EAAE,SAAS,EAAE,CAAC;AACrG,CAAC;AAED,IAAiB,eAAe,CAoF/B;AApFD,WAAiB,eAAe;IAC9B,SAAgB,MAAM,CAAC,OAAwB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACvF,IAAI,OAAO,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,OAAO,CAAC,0BAA0B,KAAK,SAAS,EAAE,CAAC;YACrD,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAA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C,4BAA4B,CAAC,CAAC,CAAC;QACxF,OAAO,GAAG,CAAC;IACb,CAAC;IARe,sBAAM,SAQrB,CAAA;IAED,SAAgB,MAAM,CAAmD,IAAQ;QAC/E,OAAO,eAAe,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACjD,CAAC;IAFe,sBAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAmD,MAAS;;QACrF,MAAM,OAAO,GAAG,yBAAyB,EAAE,CAAC;QAC5C,OAAO,CAAC,GAAG,GAAG,MAAA,MAAM,CAAC,GAAG,mCAAI,EAAE,CAAC;QAC/B,OAAO,CAAC,0BAA0B,GAAG,MAAA,MAAM,CAAC,0BAA0B,mCAAI,SAAS,CAAC;QACpF,OAAO,CAAC,4BAA4B,GAAG,MAAA,MAAM,CAAC,4BAA4B,mCAAI,SAAS,CAAC;QACxF,OAAO,OAAO,CAAC;IACjB,CAAC;IANe,2BAAW,cAM1B,CAAA;AACH,CAAC,EApFgB,eAAe,+BAAf,eAAe,QAoF/B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { LoadingState } from "./common/loading_state.gen";
|
|
3
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
+
/**
|
|
5
|
+
* GltfContainerLoadingState is set by the engine and provides information about
|
|
6
|
+
* the current state of the GltfContainer of an entity.
|
|
7
|
+
*/
|
|
8
|
+
export interface PBGltfContainerLoadingState {
|
|
9
|
+
currentState: LoadingState;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace PBGltfContainerLoadingState {
|
|
12
|
+
function encode(message: PBGltfContainerLoadingState, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainerLoadingState;
|
|
14
|
+
function fromJSON(object: any): PBGltfContainerLoadingState;
|
|
15
|
+
function toJSON(message: PBGltfContainerLoadingState): unknown;
|
|
16
|
+
function create<I extends Exact<DeepPartial<PBGltfContainerLoadingState>, I>>(base?: I): PBGltfContainerLoadingState;
|
|
17
|
+
function fromPartial<I extends Exact<DeepPartial<PBGltfContainerLoadingState>, I>>(object: I): PBGltfContainerLoadingState;
|
|
18
|
+
}
|
|
19
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
20
|
+
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 {
|
|
21
|
+
$case: string;
|
|
22
|
+
} ? {
|
|
23
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
24
|
+
} & {
|
|
25
|
+
$case: T["$case"];
|
|
26
|
+
} : T extends {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|