@dcl/protocol 1.0.0-10043247792.commit-428d1eb
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/LICENSE +201 -0
- package/README.md +69 -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 +46 -0
- package/out-js/decentraland/common/colors.gen.js +189 -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 +100 -0
- package/out-js/decentraland/common/texture.gen.js +446 -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 +76 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +257 -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 +89 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +301 -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 +244 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +824 -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 +213 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1282 -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 +150 -0
- package/out-js/decentraland/realm/about.gen.js +914 -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 +40 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +95 -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 +72 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +251 -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 +30 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +157 -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/material.gen.d.ts +106 -0
- package/out-js/decentraland/sdk/components/material.gen.js +515 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +128 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +469 -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 +79 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +247 -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 +35 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js +131 -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 +125 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +598 -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 +204 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1210 -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 +41 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +138 -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 +31 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +69 -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/friendships/friendships.gen.d.ts +500 -0
- package/out-js/decentraland/social/friendships/friendships.gen.js +2517 -0
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.d.ts +357 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.js +1554 -0
- package/out-js/decentraland/social_service_v2/social_service.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-js/social_service_v2.gen.d.ts +1 -0
- package/out-js/social_service_v2.gen.js +6 -0
- package/out-js/social_service_v2.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 +214 -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 +500 -0
- package/out-ts/decentraland/common/vectors.gen.ts +377 -0
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +295 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +327 -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 +895 -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 +1440 -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 +1062 -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 +122 -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 +333 -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 +154 -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/material.gen.ts +629 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +534 -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 +310 -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 +152 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +648 -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 +1361 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +173 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +83 -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/friendships/friendships.gen.ts +2798 -0
- package/out-ts/decentraland/social_service_v2/social_service.gen.ts +1709 -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/out-ts/social_service_v2.gen.ts +3 -0
- package/package.json +33 -0
- package/proto/buf.yaml +47 -0
- package/proto/decentraland/common/border_rect.proto +18 -0
- package/proto/decentraland/common/colors.proto +15 -0
- package/proto/decentraland/common/content_mapping.proto +7 -0
- package/proto/decentraland/common/entity.proto +13 -0
- package/proto/decentraland/common/sdk/user_data.proto +25 -0
- package/proto/decentraland/common/texture.proto +40 -0
- package/proto/decentraland/common/vectors.proto +26 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +25 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +23 -0
- package/proto/decentraland/kernel/apis/dev_tools.proto +15 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
- package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
- package/proto/decentraland/kernel/apis/ethereum_controller.proto +64 -0
- package/proto/decentraland/kernel/apis/parcel_identity.proto +43 -0
- 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 +78 -0
- package/proto/decentraland/kernel/apis/runtime.proto +71 -0
- package/proto/decentraland/kernel/apis/scene.proto +16 -0
- package/proto/decentraland/kernel/apis/signed_fetch.proto +33 -0
- package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
- package/proto/decentraland/kernel/apis/testing.proto +100 -0
- package/proto/decentraland/kernel/apis/user_action_module.proto +13 -0
- package/proto/decentraland/kernel/apis/user_identity.proto +22 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +110 -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 +73 -0
- package/proto/decentraland/sdk/components/README.md +32 -0
- package/proto/decentraland/sdk/components/Transform.md +25 -0
- package/proto/decentraland/sdk/components/animator.proto +31 -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 +14 -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_modifier_area.proto +32 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +42 -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_type.proto +9 -0
- package/proto/decentraland/sdk/components/common/id.md +2 -0
- package/proto/decentraland/sdk/components/common/id.proto +8 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +28 -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/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/player_identity_data.proto +13 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +37 -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/raycast.proto +58 -0
- package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
- package/proto/decentraland/sdk/components/realm_info.proto +14 -0
- package/proto/decentraland/sdk/components/text_shape.proto +45 -0
- package/proto/decentraland/sdk/components/tween.proto +74 -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 +24 -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 +148 -0
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/sdk/components/video_player.proto +16 -0
- package/proto/decentraland/sdk/components/visibility_component.proto +9 -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/friendships/friendships.proto +162 -0
- package/proto/decentraland/social_service_v2/social_service.proto +111 -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 +42 -0
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +4 -0
- package/public/social_service_v2.proto +4 -0
|
@@ -0,0 +1,274 @@
|
|
|
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.PBRaycast = exports.RaycastQueryType = exports.protobufPackage = void 0;
|
|
7
|
+
exports.raycastQueryTypeFromJSON = raycastQueryTypeFromJSON;
|
|
8
|
+
exports.raycastQueryTypeToJSON = raycastQueryTypeToJSON;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
11
|
+
const vectors_gen_1 = require("../../common/vectors.gen");
|
|
12
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
13
|
+
/** RaycastQueryType indicates whether the ray should stop on the first collition, or continue. */
|
|
14
|
+
var RaycastQueryType;
|
|
15
|
+
(function (RaycastQueryType) {
|
|
16
|
+
/** RQT_HIT_FIRST - Pick the first (not necessarily the closest) hit within the range */
|
|
17
|
+
RaycastQueryType[RaycastQueryType["RQT_HIT_FIRST"] = 0] = "RQT_HIT_FIRST";
|
|
18
|
+
/** RQT_QUERY_ALL - Pick all hits within the range */
|
|
19
|
+
RaycastQueryType[RaycastQueryType["RQT_QUERY_ALL"] = 1] = "RQT_QUERY_ALL";
|
|
20
|
+
/** RQT_NONE - Do not perform the raycast, only set the raycast result with empty hits */
|
|
21
|
+
RaycastQueryType[RaycastQueryType["RQT_NONE"] = 2] = "RQT_NONE";
|
|
22
|
+
RaycastQueryType[RaycastQueryType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
|
+
})(RaycastQueryType || (exports.RaycastQueryType = RaycastQueryType = {}));
|
|
24
|
+
function raycastQueryTypeFromJSON(object) {
|
|
25
|
+
switch (object) {
|
|
26
|
+
case 0:
|
|
27
|
+
case "RQT_HIT_FIRST":
|
|
28
|
+
return RaycastQueryType.RQT_HIT_FIRST;
|
|
29
|
+
case 1:
|
|
30
|
+
case "RQT_QUERY_ALL":
|
|
31
|
+
return RaycastQueryType.RQT_QUERY_ALL;
|
|
32
|
+
case 2:
|
|
33
|
+
case "RQT_NONE":
|
|
34
|
+
return RaycastQueryType.RQT_NONE;
|
|
35
|
+
case -1:
|
|
36
|
+
case "UNRECOGNIZED":
|
|
37
|
+
default:
|
|
38
|
+
return RaycastQueryType.UNRECOGNIZED;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function raycastQueryTypeToJSON(object) {
|
|
42
|
+
switch (object) {
|
|
43
|
+
case RaycastQueryType.RQT_HIT_FIRST:
|
|
44
|
+
return "RQT_HIT_FIRST";
|
|
45
|
+
case RaycastQueryType.RQT_QUERY_ALL:
|
|
46
|
+
return "RQT_QUERY_ALL";
|
|
47
|
+
case RaycastQueryType.RQT_NONE:
|
|
48
|
+
return "RQT_NONE";
|
|
49
|
+
case RaycastQueryType.UNRECOGNIZED:
|
|
50
|
+
default:
|
|
51
|
+
return "UNRECOGNIZED";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function createBasePBRaycast() {
|
|
55
|
+
return {
|
|
56
|
+
timestamp: undefined,
|
|
57
|
+
originOffset: undefined,
|
|
58
|
+
direction: undefined,
|
|
59
|
+
maxDistance: 0,
|
|
60
|
+
queryType: 0,
|
|
61
|
+
continuous: undefined,
|
|
62
|
+
collisionMask: undefined,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
var PBRaycast;
|
|
66
|
+
(function (PBRaycast) {
|
|
67
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
68
|
+
var _a;
|
|
69
|
+
if (message.timestamp !== undefined) {
|
|
70
|
+
writer.uint32(8).uint32(message.timestamp);
|
|
71
|
+
}
|
|
72
|
+
if (message.originOffset !== undefined) {
|
|
73
|
+
vectors_gen_1.Vector3.encode(message.originOffset, writer.uint32(18).fork()).ldelim();
|
|
74
|
+
}
|
|
75
|
+
switch ((_a = message.direction) === null || _a === void 0 ? void 0 : _a.$case) {
|
|
76
|
+
case "localDirection":
|
|
77
|
+
vectors_gen_1.Vector3.encode(message.direction.localDirection, writer.uint32(50).fork()).ldelim();
|
|
78
|
+
break;
|
|
79
|
+
case "globalDirection":
|
|
80
|
+
vectors_gen_1.Vector3.encode(message.direction.globalDirection, writer.uint32(26).fork()).ldelim();
|
|
81
|
+
break;
|
|
82
|
+
case "globalTarget":
|
|
83
|
+
vectors_gen_1.Vector3.encode(message.direction.globalTarget, writer.uint32(58).fork()).ldelim();
|
|
84
|
+
break;
|
|
85
|
+
case "targetEntity":
|
|
86
|
+
writer.uint32(80).uint32(message.direction.targetEntity);
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
if (message.maxDistance !== 0) {
|
|
90
|
+
writer.uint32(37).float(message.maxDistance);
|
|
91
|
+
}
|
|
92
|
+
if (message.queryType !== 0) {
|
|
93
|
+
writer.uint32(40).int32(message.queryType);
|
|
94
|
+
}
|
|
95
|
+
if (message.continuous !== undefined) {
|
|
96
|
+
writer.uint32(64).bool(message.continuous);
|
|
97
|
+
}
|
|
98
|
+
if (message.collisionMask !== undefined) {
|
|
99
|
+
writer.uint32(72).uint32(message.collisionMask);
|
|
100
|
+
}
|
|
101
|
+
return writer;
|
|
102
|
+
}
|
|
103
|
+
PBRaycast.encode = encode;
|
|
104
|
+
function decode(input, length) {
|
|
105
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
106
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
107
|
+
const message = createBasePBRaycast();
|
|
108
|
+
while (reader.pos < end) {
|
|
109
|
+
const tag = reader.uint32();
|
|
110
|
+
switch (tag >>> 3) {
|
|
111
|
+
case 1:
|
|
112
|
+
if (tag !== 8) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
message.timestamp = reader.uint32();
|
|
116
|
+
continue;
|
|
117
|
+
case 2:
|
|
118
|
+
if (tag !== 18) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
message.originOffset = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
122
|
+
continue;
|
|
123
|
+
case 6:
|
|
124
|
+
if (tag !== 50) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
message.direction = { $case: "localDirection", localDirection: vectors_gen_1.Vector3.decode(reader, reader.uint32()) };
|
|
128
|
+
continue;
|
|
129
|
+
case 3:
|
|
130
|
+
if (tag !== 26) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
message.direction = { $case: "globalDirection", globalDirection: vectors_gen_1.Vector3.decode(reader, reader.uint32()) };
|
|
134
|
+
continue;
|
|
135
|
+
case 7:
|
|
136
|
+
if (tag !== 58) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.direction = { $case: "globalTarget", globalTarget: vectors_gen_1.Vector3.decode(reader, reader.uint32()) };
|
|
140
|
+
continue;
|
|
141
|
+
case 10:
|
|
142
|
+
if (tag !== 80) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
message.direction = { $case: "targetEntity", targetEntity: reader.uint32() };
|
|
146
|
+
continue;
|
|
147
|
+
case 4:
|
|
148
|
+
if (tag !== 37) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
message.maxDistance = reader.float();
|
|
152
|
+
continue;
|
|
153
|
+
case 5:
|
|
154
|
+
if (tag !== 40) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
message.queryType = reader.int32();
|
|
158
|
+
continue;
|
|
159
|
+
case 8:
|
|
160
|
+
if (tag !== 64) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.continuous = reader.bool();
|
|
164
|
+
continue;
|
|
165
|
+
case 9:
|
|
166
|
+
if (tag !== 72) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
message.collisionMask = reader.uint32();
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
reader.skipType(tag & 7);
|
|
176
|
+
}
|
|
177
|
+
return message;
|
|
178
|
+
}
|
|
179
|
+
PBRaycast.decode = decode;
|
|
180
|
+
function fromJSON(object) {
|
|
181
|
+
return {
|
|
182
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : undefined,
|
|
183
|
+
originOffset: isSet(object.originOffset) ? vectors_gen_1.Vector3.fromJSON(object.originOffset) : undefined,
|
|
184
|
+
direction: isSet(object.localDirection)
|
|
185
|
+
? { $case: "localDirection", localDirection: vectors_gen_1.Vector3.fromJSON(object.localDirection) }
|
|
186
|
+
: isSet(object.globalDirection)
|
|
187
|
+
? { $case: "globalDirection", globalDirection: vectors_gen_1.Vector3.fromJSON(object.globalDirection) }
|
|
188
|
+
: isSet(object.globalTarget)
|
|
189
|
+
? { $case: "globalTarget", globalTarget: vectors_gen_1.Vector3.fromJSON(object.globalTarget) }
|
|
190
|
+
: isSet(object.targetEntity)
|
|
191
|
+
? { $case: "targetEntity", targetEntity: Number(object.targetEntity) }
|
|
192
|
+
: undefined,
|
|
193
|
+
maxDistance: isSet(object.maxDistance) ? Number(object.maxDistance) : 0,
|
|
194
|
+
queryType: isSet(object.queryType) ? raycastQueryTypeFromJSON(object.queryType) : 0,
|
|
195
|
+
continuous: isSet(object.continuous) ? Boolean(object.continuous) : undefined,
|
|
196
|
+
collisionMask: isSet(object.collisionMask) ? Number(object.collisionMask) : undefined,
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
PBRaycast.fromJSON = fromJSON;
|
|
200
|
+
function toJSON(message) {
|
|
201
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
202
|
+
const obj = {};
|
|
203
|
+
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
204
|
+
message.originOffset !== undefined &&
|
|
205
|
+
(obj.originOffset = message.originOffset ? vectors_gen_1.Vector3.toJSON(message.originOffset) : undefined);
|
|
206
|
+
((_a = message.direction) === null || _a === void 0 ? void 0 : _a.$case) === "localDirection" &&
|
|
207
|
+
(obj.localDirection = ((_b = message.direction) === null || _b === void 0 ? void 0 : _b.localDirection)
|
|
208
|
+
? vectors_gen_1.Vector3.toJSON((_c = message.direction) === null || _c === void 0 ? void 0 : _c.localDirection)
|
|
209
|
+
: undefined);
|
|
210
|
+
((_d = message.direction) === null || _d === void 0 ? void 0 : _d.$case) === "globalDirection" &&
|
|
211
|
+
(obj.globalDirection = ((_e = message.direction) === null || _e === void 0 ? void 0 : _e.globalDirection)
|
|
212
|
+
? vectors_gen_1.Vector3.toJSON((_f = message.direction) === null || _f === void 0 ? void 0 : _f.globalDirection)
|
|
213
|
+
: undefined);
|
|
214
|
+
((_g = message.direction) === null || _g === void 0 ? void 0 : _g.$case) === "globalTarget" &&
|
|
215
|
+
(obj.globalTarget = ((_h = message.direction) === null || _h === void 0 ? void 0 : _h.globalTarget)
|
|
216
|
+
? vectors_gen_1.Vector3.toJSON((_j = message.direction) === null || _j === void 0 ? void 0 : _j.globalTarget)
|
|
217
|
+
: undefined);
|
|
218
|
+
((_k = message.direction) === null || _k === void 0 ? void 0 : _k.$case) === "targetEntity" && (obj.targetEntity = Math.round((_l = message.direction) === null || _l === void 0 ? void 0 : _l.targetEntity));
|
|
219
|
+
message.maxDistance !== undefined && (obj.maxDistance = message.maxDistance);
|
|
220
|
+
message.queryType !== undefined && (obj.queryType = raycastQueryTypeToJSON(message.queryType));
|
|
221
|
+
message.continuous !== undefined && (obj.continuous = message.continuous);
|
|
222
|
+
message.collisionMask !== undefined && (obj.collisionMask = Math.round(message.collisionMask));
|
|
223
|
+
return obj;
|
|
224
|
+
}
|
|
225
|
+
PBRaycast.toJSON = toJSON;
|
|
226
|
+
function create(base) {
|
|
227
|
+
return PBRaycast.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
228
|
+
}
|
|
229
|
+
PBRaycast.create = create;
|
|
230
|
+
function fromPartial(object) {
|
|
231
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
232
|
+
const message = createBasePBRaycast();
|
|
233
|
+
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : undefined;
|
|
234
|
+
message.originOffset = (object.originOffset !== undefined && object.originOffset !== null)
|
|
235
|
+
? vectors_gen_1.Vector3.fromPartial(object.originOffset)
|
|
236
|
+
: undefined;
|
|
237
|
+
if (((_b = object.direction) === null || _b === void 0 ? void 0 : _b.$case) === "localDirection" &&
|
|
238
|
+
((_c = object.direction) === null || _c === void 0 ? void 0 : _c.localDirection) !== undefined &&
|
|
239
|
+
((_d = object.direction) === null || _d === void 0 ? void 0 : _d.localDirection) !== null) {
|
|
240
|
+
message.direction = {
|
|
241
|
+
$case: "localDirection",
|
|
242
|
+
localDirection: vectors_gen_1.Vector3.fromPartial(object.direction.localDirection),
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
if (((_e = object.direction) === null || _e === void 0 ? void 0 : _e.$case) === "globalDirection" &&
|
|
246
|
+
((_f = object.direction) === null || _f === void 0 ? void 0 : _f.globalDirection) !== undefined &&
|
|
247
|
+
((_g = object.direction) === null || _g === void 0 ? void 0 : _g.globalDirection) !== null) {
|
|
248
|
+
message.direction = {
|
|
249
|
+
$case: "globalDirection",
|
|
250
|
+
globalDirection: vectors_gen_1.Vector3.fromPartial(object.direction.globalDirection),
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
if (((_h = object.direction) === null || _h === void 0 ? void 0 : _h.$case) === "globalTarget" &&
|
|
254
|
+
((_j = object.direction) === null || _j === void 0 ? void 0 : _j.globalTarget) !== undefined &&
|
|
255
|
+
((_k = object.direction) === null || _k === void 0 ? void 0 : _k.globalTarget) !== null) {
|
|
256
|
+
message.direction = { $case: "globalTarget", globalTarget: vectors_gen_1.Vector3.fromPartial(object.direction.globalTarget) };
|
|
257
|
+
}
|
|
258
|
+
if (((_l = object.direction) === null || _l === void 0 ? void 0 : _l.$case) === "targetEntity" &&
|
|
259
|
+
((_m = object.direction) === null || _m === void 0 ? void 0 : _m.targetEntity) !== undefined &&
|
|
260
|
+
((_o = object.direction) === null || _o === void 0 ? void 0 : _o.targetEntity) !== null) {
|
|
261
|
+
message.direction = { $case: "targetEntity", targetEntity: object.direction.targetEntity };
|
|
262
|
+
}
|
|
263
|
+
message.maxDistance = (_p = object.maxDistance) !== null && _p !== void 0 ? _p : 0;
|
|
264
|
+
message.queryType = (_q = object.queryType) !== null && _q !== void 0 ? _q : 0;
|
|
265
|
+
message.continuous = (_r = object.continuous) !== null && _r !== void 0 ? _r : undefined;
|
|
266
|
+
message.collisionMask = (_s = object.collisionMask) !== null && _s !== void 0 ? _s : undefined;
|
|
267
|
+
return message;
|
|
268
|
+
}
|
|
269
|
+
PBRaycast.fromPartial = fromPartial;
|
|
270
|
+
})(PBRaycast || (exports.PBRaycast = PBRaycast = {}));
|
|
271
|
+
function isSet(value) {
|
|
272
|
+
return value !== null && value !== undefined;
|
|
273
|
+
}
|
|
274
|
+
//# sourceMappingURL=raycast.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raycast.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/raycast.gen.ts"],"names":[],"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C,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;QAClH,CAAC;QACD,IACE,CAAA,MAAA,MAAM,CAAC,SAAS,0CAAE,KAAK,MAAK,cAAc;YAC1C,CAAA,MAAA,MAAM,CAAC,SAAS,0CAAE,YAAY,MAAK,SAAS;YAC5C,CAAA,MAAA,MAAM,CAAC,SAAS,0CAAE,YAAY,MAAK,IAAI,EACvC,CAAC;YACD,OAAO,CAAC,SAAS,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;QAC7F,CAAC;QACD,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,CAAC,CAAC;QAC9C,OAAO,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,CAAC,CAAC;QAC1C,OAAO,CAAC,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,SAAS,CAAC;QACpD,OAAO,CAAC,aAAa,GAAG,MAAA,MAAM,CAAC,aAAa,mCAAI,SAAS,CAAC;QAC1D,OAAO,OAAO,CAAC;IACjB,CAAC;IA7Ce,qBAAW,cA6C1B,CAAA;AACH,CAAC,EA1NgB,SAAS,yBAAT,SAAS,QA0NzB;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Vector3 } from "../../common/vectors.gen";
|
|
3
|
+
import { RaycastHit } from "./common/raycast_hit.gen";
|
|
4
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
5
|
+
/**
|
|
6
|
+
* The PBRaycast component and PBRaycastResult are defined in https://adr.decentraland.org/adr/ADR-200
|
|
7
|
+
*
|
|
8
|
+
* The RaycastResult component is added to an Entity when the results of a previously attached
|
|
9
|
+
* Raycast component are available. It contains information about the ray and any objects it
|
|
10
|
+
* collided with.
|
|
11
|
+
*/
|
|
12
|
+
export interface PBRaycastResult {
|
|
13
|
+
/** timestamp is a correlation id, copied from the PBRaycast */
|
|
14
|
+
timestamp?: number | undefined;
|
|
15
|
+
/** the starting point of the ray in global coordinates */
|
|
16
|
+
globalOrigin: Vector3 | undefined;
|
|
17
|
+
/** the direction vector of the ray in global coordinates */
|
|
18
|
+
direction: Vector3 | undefined;
|
|
19
|
+
/** zero or more hits */
|
|
20
|
+
hits: RaycastHit[];
|
|
21
|
+
/** number of tick in which the event was produced, equals to EngineInfo.tick_number */
|
|
22
|
+
tickNumber: number;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace PBRaycastResult {
|
|
25
|
+
function encode(message: PBRaycastResult, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBRaycastResult;
|
|
27
|
+
function fromJSON(object: any): PBRaycastResult;
|
|
28
|
+
function toJSON(message: PBRaycastResult): unknown;
|
|
29
|
+
function create<I extends Exact<DeepPartial<PBRaycastResult>, I>>(base?: I): PBRaycastResult;
|
|
30
|
+
function fromPartial<I extends Exact<DeepPartial<PBRaycastResult>, I>>(object: I): PBRaycastResult;
|
|
31
|
+
}
|
|
32
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
33
|
+
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 {
|
|
34
|
+
$case: string;
|
|
35
|
+
} ? {
|
|
36
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
37
|
+
} & {
|
|
38
|
+
$case: T["$case"];
|
|
39
|
+
} : T extends {} ? {
|
|
40
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
41
|
+
} : Partial<T>;
|
|
42
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
43
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
44
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
45
|
+
} & {
|
|
46
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
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.PBRaycastResult = 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
|
+
const raycast_hit_gen_1 = require("./common/raycast_hit.gen");
|
|
11
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
12
|
+
function createBasePBRaycastResult() {
|
|
13
|
+
return { timestamp: undefined, globalOrigin: undefined, direction: undefined, hits: [], tickNumber: 0 };
|
|
14
|
+
}
|
|
15
|
+
var PBRaycastResult;
|
|
16
|
+
(function (PBRaycastResult) {
|
|
17
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
18
|
+
if (message.timestamp !== undefined) {
|
|
19
|
+
writer.uint32(8).uint32(message.timestamp);
|
|
20
|
+
}
|
|
21
|
+
if (message.globalOrigin !== undefined) {
|
|
22
|
+
vectors_gen_1.Vector3.encode(message.globalOrigin, writer.uint32(18).fork()).ldelim();
|
|
23
|
+
}
|
|
24
|
+
if (message.direction !== undefined) {
|
|
25
|
+
vectors_gen_1.Vector3.encode(message.direction, writer.uint32(26).fork()).ldelim();
|
|
26
|
+
}
|
|
27
|
+
for (const v of message.hits) {
|
|
28
|
+
raycast_hit_gen_1.RaycastHit.encode(v, writer.uint32(34).fork()).ldelim();
|
|
29
|
+
}
|
|
30
|
+
if (message.tickNumber !== 0) {
|
|
31
|
+
writer.uint32(40).uint32(message.tickNumber);
|
|
32
|
+
}
|
|
33
|
+
return writer;
|
|
34
|
+
}
|
|
35
|
+
PBRaycastResult.encode = encode;
|
|
36
|
+
function decode(input, length) {
|
|
37
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
38
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
+
const message = createBasePBRaycastResult();
|
|
40
|
+
while (reader.pos < end) {
|
|
41
|
+
const tag = reader.uint32();
|
|
42
|
+
switch (tag >>> 3) {
|
|
43
|
+
case 1:
|
|
44
|
+
if (tag !== 8) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.timestamp = reader.uint32();
|
|
48
|
+
continue;
|
|
49
|
+
case 2:
|
|
50
|
+
if (tag !== 18) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
message.globalOrigin = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
54
|
+
continue;
|
|
55
|
+
case 3:
|
|
56
|
+
if (tag !== 26) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
message.direction = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
60
|
+
continue;
|
|
61
|
+
case 4:
|
|
62
|
+
if (tag !== 34) {
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
message.hits.push(raycast_hit_gen_1.RaycastHit.decode(reader, reader.uint32()));
|
|
66
|
+
continue;
|
|
67
|
+
case 5:
|
|
68
|
+
if (tag !== 40) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
message.tickNumber = reader.uint32();
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
reader.skipType(tag & 7);
|
|
78
|
+
}
|
|
79
|
+
return message;
|
|
80
|
+
}
|
|
81
|
+
PBRaycastResult.decode = decode;
|
|
82
|
+
function fromJSON(object) {
|
|
83
|
+
return {
|
|
84
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : undefined,
|
|
85
|
+
globalOrigin: isSet(object.globalOrigin) ? vectors_gen_1.Vector3.fromJSON(object.globalOrigin) : undefined,
|
|
86
|
+
direction: isSet(object.direction) ? vectors_gen_1.Vector3.fromJSON(object.direction) : undefined,
|
|
87
|
+
hits: Array.isArray(object === null || object === void 0 ? void 0 : object.hits) ? object.hits.map((e) => raycast_hit_gen_1.RaycastHit.fromJSON(e)) : [],
|
|
88
|
+
tickNumber: isSet(object.tickNumber) ? Number(object.tickNumber) : 0,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
PBRaycastResult.fromJSON = fromJSON;
|
|
92
|
+
function toJSON(message) {
|
|
93
|
+
const obj = {};
|
|
94
|
+
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
95
|
+
message.globalOrigin !== undefined &&
|
|
96
|
+
(obj.globalOrigin = message.globalOrigin ? vectors_gen_1.Vector3.toJSON(message.globalOrigin) : undefined);
|
|
97
|
+
message.direction !== undefined &&
|
|
98
|
+
(obj.direction = message.direction ? vectors_gen_1.Vector3.toJSON(message.direction) : undefined);
|
|
99
|
+
if (message.hits) {
|
|
100
|
+
obj.hits = message.hits.map((e) => e ? raycast_hit_gen_1.RaycastHit.toJSON(e) : undefined);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
obj.hits = [];
|
|
104
|
+
}
|
|
105
|
+
message.tickNumber !== undefined && (obj.tickNumber = Math.round(message.tickNumber));
|
|
106
|
+
return obj;
|
|
107
|
+
}
|
|
108
|
+
PBRaycastResult.toJSON = toJSON;
|
|
109
|
+
function create(base) {
|
|
110
|
+
return PBRaycastResult.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
111
|
+
}
|
|
112
|
+
PBRaycastResult.create = create;
|
|
113
|
+
function fromPartial(object) {
|
|
114
|
+
var _a, _b, _c;
|
|
115
|
+
const message = createBasePBRaycastResult();
|
|
116
|
+
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : undefined;
|
|
117
|
+
message.globalOrigin = (object.globalOrigin !== undefined && object.globalOrigin !== null)
|
|
118
|
+
? vectors_gen_1.Vector3.fromPartial(object.globalOrigin)
|
|
119
|
+
: undefined;
|
|
120
|
+
message.direction = (object.direction !== undefined && object.direction !== null)
|
|
121
|
+
? vectors_gen_1.Vector3.fromPartial(object.direction)
|
|
122
|
+
: undefined;
|
|
123
|
+
message.hits = ((_b = object.hits) === null || _b === void 0 ? void 0 : _b.map((e) => raycast_hit_gen_1.RaycastHit.fromPartial(e))) || [];
|
|
124
|
+
message.tickNumber = (_c = object.tickNumber) !== null && _c !== void 0 ? _c : 0;
|
|
125
|
+
return message;
|
|
126
|
+
}
|
|
127
|
+
PBRaycastResult.fromPartial = fromPartial;
|
|
128
|
+
})(PBRaycastResult || (exports.PBRaycastResult = PBRaycastResult = {}));
|
|
129
|
+
function isSet(value) {
|
|
130
|
+
return value !== null && value !== undefined;
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=raycast_result.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raycast_result.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/raycast_result.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AACnD,8DAAsD;AAEzC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AA4B7D,SAAS,yBAAyB;IAChC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;AAC1G,CAAC;AAED,IAAiB,eAAe,CAkH/B;AAlHD,WAAiB,eAAe;IAC9B,SAAgB,MAAM,C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sBAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAmD,MAAS;;QACrF,MAAM,OAAO,GAAG,yBAAyB,EAAE,CAAC;QAC5C,OAAO,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,SAAS,CAAC;QAClD,OAAO,CAAC,YAAY,GAAG,CAAC,MAAM,CAAC,YAAY,KAAK,SAAS,IAAI,MAAM,CAAC,YAAY,KAAK,IAAI,CAAC;YACxF,CAAC,CAAC,qBAAO,CAAC,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC;YAC1C,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,IAAI,GAAG,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,4BAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QACxE,OAAO,CAAC,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,CAAC,CAAC;QAC5C,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,2BAAW,cAY1B,CAAA;AACH,CAAC,EAlHgB,eAAe,+BAAf,eAAe,QAkH/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
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
3
|
+
export interface PBRealmInfo {
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
realmName: string;
|
|
6
|
+
networkId: number;
|
|
7
|
+
commsAdapter: string;
|
|
8
|
+
isPreview: boolean;
|
|
9
|
+
room?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace PBRealmInfo {
|
|
12
|
+
function encode(message: PBRealmInfo, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
|
|
14
|
+
function fromJSON(object: any): PBRealmInfo;
|
|
15
|
+
function toJSON(message: PBRealmInfo): unknown;
|
|
16
|
+
function create<I extends Exact<DeepPartial<PBRealmInfo>, I>>(base?: I): PBRealmInfo;
|
|
17
|
+
function fromPartial<I extends Exact<DeepPartial<PBRealmInfo>, I>>(object: I): PBRealmInfo;
|
|
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 {};
|
|
@@ -0,0 +1,131 @@
|
|
|
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.PBRealmInfo = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
10
|
+
function createBasePBRealmInfo() {
|
|
11
|
+
return { baseUrl: "", realmName: "", networkId: 0, commsAdapter: "", isPreview: false, room: undefined };
|
|
12
|
+
}
|
|
13
|
+
var PBRealmInfo;
|
|
14
|
+
(function (PBRealmInfo) {
|
|
15
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
|
+
if (message.baseUrl !== "") {
|
|
17
|
+
writer.uint32(10).string(message.baseUrl);
|
|
18
|
+
}
|
|
19
|
+
if (message.realmName !== "") {
|
|
20
|
+
writer.uint32(18).string(message.realmName);
|
|
21
|
+
}
|
|
22
|
+
if (message.networkId !== 0) {
|
|
23
|
+
writer.uint32(24).int32(message.networkId);
|
|
24
|
+
}
|
|
25
|
+
if (message.commsAdapter !== "") {
|
|
26
|
+
writer.uint32(34).string(message.commsAdapter);
|
|
27
|
+
}
|
|
28
|
+
if (message.isPreview === true) {
|
|
29
|
+
writer.uint32(40).bool(message.isPreview);
|
|
30
|
+
}
|
|
31
|
+
if (message.room !== undefined) {
|
|
32
|
+
writer.uint32(50).string(message.room);
|
|
33
|
+
}
|
|
34
|
+
return writer;
|
|
35
|
+
}
|
|
36
|
+
PBRealmInfo.encode = encode;
|
|
37
|
+
function decode(input, length) {
|
|
38
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
39
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
40
|
+
const message = createBasePBRealmInfo();
|
|
41
|
+
while (reader.pos < end) {
|
|
42
|
+
const tag = reader.uint32();
|
|
43
|
+
switch (tag >>> 3) {
|
|
44
|
+
case 1:
|
|
45
|
+
if (tag !== 10) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.baseUrl = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 2:
|
|
51
|
+
if (tag !== 18) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.realmName = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
case 3:
|
|
57
|
+
if (tag !== 24) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.networkId = reader.int32();
|
|
61
|
+
continue;
|
|
62
|
+
case 4:
|
|
63
|
+
if (tag !== 34) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.commsAdapter = reader.string();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 40) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.isPreview = reader.bool();
|
|
73
|
+
continue;
|
|
74
|
+
case 6:
|
|
75
|
+
if (tag !== 50) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.room = reader.string();
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
reader.skipType(tag & 7);
|
|
85
|
+
}
|
|
86
|
+
return message;
|
|
87
|
+
}
|
|
88
|
+
PBRealmInfo.decode = decode;
|
|
89
|
+
function fromJSON(object) {
|
|
90
|
+
return {
|
|
91
|
+
baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : "",
|
|
92
|
+
realmName: isSet(object.realmName) ? String(object.realmName) : "",
|
|
93
|
+
networkId: isSet(object.networkId) ? Number(object.networkId) : 0,
|
|
94
|
+
commsAdapter: isSet(object.commsAdapter) ? String(object.commsAdapter) : "",
|
|
95
|
+
isPreview: isSet(object.isPreview) ? Boolean(object.isPreview) : false,
|
|
96
|
+
room: isSet(object.room) ? String(object.room) : undefined,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
PBRealmInfo.fromJSON = fromJSON;
|
|
100
|
+
function toJSON(message) {
|
|
101
|
+
const obj = {};
|
|
102
|
+
message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl);
|
|
103
|
+
message.realmName !== undefined && (obj.realmName = message.realmName);
|
|
104
|
+
message.networkId !== undefined && (obj.networkId = Math.round(message.networkId));
|
|
105
|
+
message.commsAdapter !== undefined && (obj.commsAdapter = message.commsAdapter);
|
|
106
|
+
message.isPreview !== undefined && (obj.isPreview = message.isPreview);
|
|
107
|
+
message.room !== undefined && (obj.room = message.room);
|
|
108
|
+
return obj;
|
|
109
|
+
}
|
|
110
|
+
PBRealmInfo.toJSON = toJSON;
|
|
111
|
+
function create(base) {
|
|
112
|
+
return PBRealmInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
113
|
+
}
|
|
114
|
+
PBRealmInfo.create = create;
|
|
115
|
+
function fromPartial(object) {
|
|
116
|
+
var _a, _b, _c, _d, _e, _f;
|
|
117
|
+
const message = createBasePBRealmInfo();
|
|
118
|
+
message.baseUrl = (_a = object.baseUrl) !== null && _a !== void 0 ? _a : "";
|
|
119
|
+
message.realmName = (_b = object.realmName) !== null && _b !== void 0 ? _b : "";
|
|
120
|
+
message.networkId = (_c = object.networkId) !== null && _c !== void 0 ? _c : 0;
|
|
121
|
+
message.commsAdapter = (_d = object.commsAdapter) !== null && _d !== void 0 ? _d : "";
|
|
122
|
+
message.isPreview = (_e = object.isPreview) !== null && _e !== void 0 ? _e : false;
|
|
123
|
+
message.room = (_f = object.room) !== null && _f !== void 0 ? _f : undefined;
|
|
124
|
+
return message;
|
|
125
|
+
}
|
|
126
|
+
PBRealmInfo.fromPartial = fromPartial;
|
|
127
|
+
})(PBRealmInfo || (exports.PBRealmInfo = PBRealmInfo = {}));
|
|
128
|
+
function isSet(value) {
|
|
129
|
+
return value !== null && value !== undefined;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=realm_info.gen.js.map
|