@dcl/protocol 1.0.0-2731649607.commit-890a990 → 1.0.0-27574288540.commit-f0df3e0
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 +269 -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 +130 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +471 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +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 +536 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
- package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +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 +29 -10
- 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/proto/decentraland/common/options.proto +30 -0
- package/proto/decentraland/common/quantization_example.proto +132 -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/pulse/pulse_client.proto +77 -0
- package/proto/decentraland/pulse/pulse_server.proto +138 -0
- package/proto/decentraland/pulse/pulse_shared.proto +48 -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/protoc-gen-bitwise/generator_csharp.js +215 -0
- package/protoc-gen-bitwise/options.js +108 -0
- package/protoc-gen-bitwise/plugin.js +87 -0
- package/protoc-gen-bitwise/runtime/cs/BitReader.cs +112 -0
- package/protoc-gen-bitwise/runtime/cs/BitWriter.cs +117 -0
- package/protoc-gen-bitwise/runtime/cs/Quantize.cs +35 -0
- package/protoc-gen-bitwise/wire.js +239 -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 -16
- package/ecs/components/AvatarModifierArea.proto +0 -16
- 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 -15
- 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 -12
- package/ecs/components/OnPointerDownResult.proto +0 -17
- package/ecs/components/OnPointerUp.proto +0 -12
- package/ecs/components/OnPointerUpResult.proto +0 -17
- 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/ActionButton.proto +0 -18
- 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,239 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Self-contained protobuf wire-format codec for protoc-gen-bitwise.
|
|
5
|
+
*
|
|
6
|
+
* The plugin only needs a tiny slice of the descriptor/plugin schemas, so
|
|
7
|
+
* rather than pull in a protobuf runtime (which would force every consumer —
|
|
8
|
+
* including the sibling Pulse checkout that runs this file directly off disk —
|
|
9
|
+
* to `npm install` the protocol repo) we decode the handful of fields we care
|
|
10
|
+
* about by walking the wire format directly. This mirrors the original Python
|
|
11
|
+
* plugin, which already hand-parsed FieldOptions for the same reason.
|
|
12
|
+
*
|
|
13
|
+
* Decoded subset:
|
|
14
|
+
* CodeGeneratorRequest { file_to_generate = 1; proto_file = 15; }
|
|
15
|
+
* FileDescriptorProto { name = 1; package = 2; message_type = 4; }
|
|
16
|
+
* DescriptorProto { name = 1; field = 2; }
|
|
17
|
+
* FieldDescriptorProto { name = 1; label = 4; type = 5; options = 8 (raw bytes); }
|
|
18
|
+
*
|
|
19
|
+
* Encoded subset:
|
|
20
|
+
* CodeGeneratorResponse { error = 1; supported_features = 2; file = 15; }
|
|
21
|
+
* CodeGeneratorResponse.File { name = 1; content = 15; }
|
|
22
|
+
*
|
|
23
|
+
* Wire types: 0 = varint, 1 = 64-bit, 2 = length-delimited, 5 = 32-bit.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
// ---------------------------------------------------------------------------
|
|
27
|
+
// Low-level readers
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
/** Decode a protobuf varint at `pos`. Returns [value, newPos]. */
|
|
31
|
+
function readVarint(buf, pos) {
|
|
32
|
+
let result = 0
|
|
33
|
+
let shift = 0
|
|
34
|
+
let byte
|
|
35
|
+
do {
|
|
36
|
+
byte = buf[pos++]
|
|
37
|
+
// Multiplication (not <<) keeps values correct past 32 bits.
|
|
38
|
+
result += (byte & 0x7f) * Math.pow(2, shift)
|
|
39
|
+
shift += 7
|
|
40
|
+
} while (byte & 0x80)
|
|
41
|
+
return [result, pos]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Advance `pos` past a field of the given wire type. Returns newPos. */
|
|
45
|
+
function skipField(buf, pos, wireType) {
|
|
46
|
+
switch (wireType) {
|
|
47
|
+
case 0: // varint
|
|
48
|
+
return readVarint(buf, pos)[1]
|
|
49
|
+
case 1: // 64-bit
|
|
50
|
+
return pos + 8
|
|
51
|
+
case 2: {
|
|
52
|
+
// length-delimited
|
|
53
|
+
const [length, next] = readVarint(buf, pos)
|
|
54
|
+
return next + length
|
|
55
|
+
}
|
|
56
|
+
case 5: // 32-bit
|
|
57
|
+
return pos + 4
|
|
58
|
+
default:
|
|
59
|
+
// Groups (3/4) are deprecated and never appear in descriptors.
|
|
60
|
+
return pos
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// ---------------------------------------------------------------------------
|
|
65
|
+
// Request decoding
|
|
66
|
+
// ---------------------------------------------------------------------------
|
|
67
|
+
|
|
68
|
+
function decodeFieldDescriptor(buf) {
|
|
69
|
+
const field = { name: '', label: 0, type: 0, optionsRaw: null }
|
|
70
|
+
let pos = 0
|
|
71
|
+
while (pos < buf.length) {
|
|
72
|
+
let tag
|
|
73
|
+
;[tag, pos] = readVarint(buf, pos)
|
|
74
|
+
const fieldNum = tag >>> 3
|
|
75
|
+
const wireType = tag & 0x7
|
|
76
|
+
if (fieldNum === 1 && wireType === 2) {
|
|
77
|
+
let len
|
|
78
|
+
;[len, pos] = readVarint(buf, pos)
|
|
79
|
+
field.name = buf.toString('utf8', pos, pos + len)
|
|
80
|
+
pos += len
|
|
81
|
+
} else if (fieldNum === 4 && wireType === 0) {
|
|
82
|
+
;[field.label, pos] = readVarint(buf, pos)
|
|
83
|
+
} else if (fieldNum === 5 && wireType === 0) {
|
|
84
|
+
;[field.type, pos] = readVarint(buf, pos)
|
|
85
|
+
} else if (fieldNum === 8 && wireType === 2) {
|
|
86
|
+
let len
|
|
87
|
+
;[len, pos] = readVarint(buf, pos)
|
|
88
|
+
// Keep the raw FieldOptions bytes so custom extensions survive (the
|
|
89
|
+
// descriptor schema doesn't know about ext 50001/50002).
|
|
90
|
+
field.optionsRaw = buf.subarray(pos, pos + len)
|
|
91
|
+
pos += len
|
|
92
|
+
} else {
|
|
93
|
+
pos = skipField(buf, pos, wireType)
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return field
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function decodeDescriptor(buf) {
|
|
100
|
+
const message = { name: '', field: [] }
|
|
101
|
+
let pos = 0
|
|
102
|
+
while (pos < buf.length) {
|
|
103
|
+
let tag
|
|
104
|
+
;[tag, pos] = readVarint(buf, pos)
|
|
105
|
+
const fieldNum = tag >>> 3
|
|
106
|
+
const wireType = tag & 0x7
|
|
107
|
+
if (fieldNum === 1 && wireType === 2) {
|
|
108
|
+
let len
|
|
109
|
+
;[len, pos] = readVarint(buf, pos)
|
|
110
|
+
message.name = buf.toString('utf8', pos, pos + len)
|
|
111
|
+
pos += len
|
|
112
|
+
} else if (fieldNum === 2 && wireType === 2) {
|
|
113
|
+
let len
|
|
114
|
+
;[len, pos] = readVarint(buf, pos)
|
|
115
|
+
message.field.push(decodeFieldDescriptor(buf.subarray(pos, pos + len)))
|
|
116
|
+
pos += len
|
|
117
|
+
} else {
|
|
118
|
+
// nested_type / enum_type / etc. are intentionally ignored — the
|
|
119
|
+
// generator only walks top-level messages, matching the Python plugin.
|
|
120
|
+
pos = skipField(buf, pos, wireType)
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return message
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function decodeFileDescriptor(buf) {
|
|
127
|
+
const file = { name: '', package: '', messageType: [] }
|
|
128
|
+
let pos = 0
|
|
129
|
+
while (pos < buf.length) {
|
|
130
|
+
let tag
|
|
131
|
+
;[tag, pos] = readVarint(buf, pos)
|
|
132
|
+
const fieldNum = tag >>> 3
|
|
133
|
+
const wireType = tag & 0x7
|
|
134
|
+
if (fieldNum === 1 && wireType === 2) {
|
|
135
|
+
let len
|
|
136
|
+
;[len, pos] = readVarint(buf, pos)
|
|
137
|
+
file.name = buf.toString('utf8', pos, pos + len)
|
|
138
|
+
pos += len
|
|
139
|
+
} else if (fieldNum === 2 && wireType === 2) {
|
|
140
|
+
let len
|
|
141
|
+
;[len, pos] = readVarint(buf, pos)
|
|
142
|
+
file.package = buf.toString('utf8', pos, pos + len)
|
|
143
|
+
pos += len
|
|
144
|
+
} else if (fieldNum === 4 && wireType === 2) {
|
|
145
|
+
let len
|
|
146
|
+
;[len, pos] = readVarint(buf, pos)
|
|
147
|
+
file.messageType.push(decodeDescriptor(buf.subarray(pos, pos + len)))
|
|
148
|
+
pos += len
|
|
149
|
+
} else {
|
|
150
|
+
pos = skipField(buf, pos, wireType)
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return file
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** Decode a serialized CodeGeneratorRequest. */
|
|
157
|
+
function decodeRequest(buf) {
|
|
158
|
+
const request = { fileToGenerate: [], protoFile: [] }
|
|
159
|
+
let pos = 0
|
|
160
|
+
while (pos < buf.length) {
|
|
161
|
+
let tag
|
|
162
|
+
;[tag, pos] = readVarint(buf, pos)
|
|
163
|
+
const fieldNum = tag >>> 3
|
|
164
|
+
const wireType = tag & 0x7
|
|
165
|
+
if (fieldNum === 1 && wireType === 2) {
|
|
166
|
+
let len
|
|
167
|
+
;[len, pos] = readVarint(buf, pos)
|
|
168
|
+
request.fileToGenerate.push(buf.toString('utf8', pos, pos + len))
|
|
169
|
+
pos += len
|
|
170
|
+
} else if (fieldNum === 15 && wireType === 2) {
|
|
171
|
+
let len
|
|
172
|
+
;[len, pos] = readVarint(buf, pos)
|
|
173
|
+
request.protoFile.push(decodeFileDescriptor(buf.subarray(pos, pos + len)))
|
|
174
|
+
pos += len
|
|
175
|
+
} else {
|
|
176
|
+
pos = skipField(buf, pos, wireType)
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return request
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// ---------------------------------------------------------------------------
|
|
183
|
+
// Response encoding
|
|
184
|
+
// ---------------------------------------------------------------------------
|
|
185
|
+
|
|
186
|
+
/** Encode an unsigned integer as a protobuf varint Buffer. */
|
|
187
|
+
function encodeVarint(value) {
|
|
188
|
+
const bytes = []
|
|
189
|
+
let v = value
|
|
190
|
+
while (v > 0x7f) {
|
|
191
|
+
bytes.push((v & 0x7f) | 0x80)
|
|
192
|
+
v = Math.floor(v / 128)
|
|
193
|
+
}
|
|
194
|
+
bytes.push(v & 0x7f)
|
|
195
|
+
return Buffer.from(bytes)
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function encodeTag(fieldNum, wireType) {
|
|
199
|
+
return encodeVarint((fieldNum << 3) | wireType)
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Encode a length-delimited (string/bytes) field: tag + length + payload. */
|
|
203
|
+
function encodeLengthDelimited(fieldNum, payload) {
|
|
204
|
+
const buf = Buffer.isBuffer(payload) ? payload : Buffer.from(payload, 'utf8')
|
|
205
|
+
return Buffer.concat([encodeTag(fieldNum, 2), encodeVarint(buf.length), buf])
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
function encodeFile(file) {
|
|
209
|
+
return Buffer.concat([
|
|
210
|
+
encodeLengthDelimited(1, file.name), // name = 1
|
|
211
|
+
encodeLengthDelimited(15, file.content), // content = 15
|
|
212
|
+
])
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Encode a CodeGeneratorResponse.
|
|
217
|
+
* @param {{error?: string|null, supportedFeatures?: number, files?: Array<{name:string,content:string}>}} response
|
|
218
|
+
*/
|
|
219
|
+
function encodeResponse(response) {
|
|
220
|
+
const parts = []
|
|
221
|
+
if (response.error != null) {
|
|
222
|
+
parts.push(encodeLengthDelimited(1, response.error)) // error = 1
|
|
223
|
+
}
|
|
224
|
+
if (response.supportedFeatures != null) {
|
|
225
|
+
parts.push(encodeTag(2, 0)) // supported_features = 2 (varint)
|
|
226
|
+
parts.push(encodeVarint(response.supportedFeatures))
|
|
227
|
+
}
|
|
228
|
+
for (const file of response.files || []) {
|
|
229
|
+
parts.push(encodeLengthDelimited(15, encodeFile(file))) // file = 15
|
|
230
|
+
}
|
|
231
|
+
return Buffer.concat(parts)
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
module.exports = {
|
|
235
|
+
readVarint,
|
|
236
|
+
skipField,
|
|
237
|
+
decodeRequest,
|
|
238
|
+
encodeResponse,
|
|
239
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk;
|
|
4
|
+
// This file only imports all the modules exposed to the scenes to help the compiler
|
|
5
|
+
// resolve all files without conflicts
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
import public "decentraland/kernel/apis/communications_controller.proto";
|
|
9
|
+
import public "decentraland/kernel/apis/dev_tools.proto";
|
|
10
|
+
import public "decentraland/kernel/apis/engine_api.proto";
|
|
11
|
+
import public "decentraland/kernel/apis/environment_api.proto";
|
|
12
|
+
import public "decentraland/kernel/apis/ethereum_controller.proto";
|
|
13
|
+
import public "decentraland/kernel/apis/parcel_identity.proto";
|
|
14
|
+
import public "decentraland/kernel/apis/permissions.proto";
|
|
15
|
+
import public "decentraland/kernel/apis/players.proto";
|
|
16
|
+
import public "decentraland/kernel/apis/portable_experiences.proto";
|
|
17
|
+
import public "decentraland/kernel/apis/restricted_actions.proto";
|
|
18
|
+
import public "decentraland/kernel/apis/runtime.proto";
|
|
19
|
+
import public "decentraland/kernel/apis/testing.proto";
|
|
20
|
+
import public "decentraland/kernel/apis/signed_fetch.proto";
|
|
21
|
+
import public "decentraland/kernel/apis/social_controller.proto";
|
|
22
|
+
import public "decentraland/kernel/apis/user_action_module.proto";
|
|
23
|
+
import public "decentraland/kernel/apis/user_identity.proto";
|
|
24
|
+
import public "decentraland/kernel/apis/scene.proto";
|
|
25
|
+
import public "decentraland/kernel/apis/comms_api.proto";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
import public "decentraland/sdk/components/animator.proto";
|
|
5
|
+
import public "decentraland/sdk/components/audio_source.proto";
|
|
6
|
+
import public "decentraland/sdk/components/audio_stream.proto";
|
|
7
|
+
import public "decentraland/sdk/components/avatar_attach.proto";
|
|
8
|
+
import public "decentraland/sdk/components/avatar_base.proto";
|
|
9
|
+
import public "decentraland/sdk/components/avatar_emote_command.proto";
|
|
10
|
+
import public "decentraland/sdk/components/avatar_equipped_data.proto";
|
|
11
|
+
import public "decentraland/sdk/components/avatar_modifier_area.proto";
|
|
12
|
+
import public "decentraland/sdk/components/avatar_shape.proto";
|
|
13
|
+
import public "decentraland/sdk/components/billboard.proto";
|
|
14
|
+
import public "decentraland/sdk/components/camera_mode_area.proto";
|
|
15
|
+
import public "decentraland/sdk/components/camera_mode.proto";
|
|
16
|
+
import public "decentraland/sdk/components/engine_info.proto";
|
|
17
|
+
import public "decentraland/sdk/components/gltf_container.proto";
|
|
18
|
+
import public "decentraland/sdk/components/gltf_node_modifiers.proto";
|
|
19
|
+
import public "decentraland/sdk/components/gltf_container_loading_state.proto";
|
|
20
|
+
import public "decentraland/sdk/components/material.proto";
|
|
21
|
+
import public "decentraland/sdk/components/mesh_collider.proto";
|
|
22
|
+
import public "decentraland/sdk/components/mesh_renderer.proto";
|
|
23
|
+
import public "decentraland/sdk/components/nft_shape.proto";
|
|
24
|
+
import public "decentraland/sdk/components/player_identity_data.proto";
|
|
25
|
+
import public "decentraland/sdk/components/pointer_events_result.proto";
|
|
26
|
+
import public "decentraland/sdk/components/pointer_events.proto";
|
|
27
|
+
import public "decentraland/sdk/components/pointer_lock.proto";
|
|
28
|
+
import public "decentraland/sdk/components/raycast_result.proto";
|
|
29
|
+
import public "decentraland/sdk/components/raycast.proto";
|
|
30
|
+
import public "decentraland/sdk/components/realm_info.proto";
|
|
31
|
+
import public "decentraland/sdk/components/text_shape.proto";
|
|
32
|
+
import public "decentraland/sdk/components/tween.proto";
|
|
33
|
+
import public "decentraland/sdk/components/tween_state.proto";
|
|
34
|
+
import public "decentraland/sdk/components/tween_sequence.proto";
|
|
35
|
+
import public "decentraland/sdk/components/ui_background.proto";
|
|
36
|
+
import public "decentraland/sdk/components/ui_dropdown_result.proto";
|
|
37
|
+
import public "decentraland/sdk/components/ui_dropdown.proto";
|
|
38
|
+
import public "decentraland/sdk/components/ui_input_result.proto";
|
|
39
|
+
import public "decentraland/sdk/components/ui_input.proto";
|
|
40
|
+
import public "decentraland/sdk/components/ui_text.proto";
|
|
41
|
+
import public "decentraland/sdk/components/ui_transform.proto";
|
|
42
|
+
import public "decentraland/sdk/components/video_player.proto";
|
|
43
|
+
import public "decentraland/sdk/components/visibility_component.proto";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1042;
|
|
5
|
-
|
|
6
|
-
message PBAnimator {
|
|
7
|
-
repeated PBAnimationState states = 1;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
message PBAnimationState {
|
|
11
|
-
string name = 1;
|
|
12
|
-
string clip = 2;
|
|
13
|
-
bool playing = 3;
|
|
14
|
-
float weight = 4;
|
|
15
|
-
float speed = 5;
|
|
16
|
-
bool loop = 6;
|
|
17
|
-
bool should_reset = 7;
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1073;
|
|
5
|
-
|
|
6
|
-
enum AvatarAnchorPoint {
|
|
7
|
-
POSITION = 0;
|
|
8
|
-
NAME_TAG = 1;
|
|
9
|
-
LEFT_HAND = 2;
|
|
10
|
-
RIGHT_HAND = 3;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
message PBAvatarAttach {
|
|
14
|
-
string avatar_id = 1;
|
|
15
|
-
AvatarAnchorPoint anchor_point_id = 2;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1070;
|
|
5
|
-
import "common/Vector3.proto";
|
|
6
|
-
|
|
7
|
-
enum AvatarModifier {
|
|
8
|
-
HIDE_AVATARS = 0;
|
|
9
|
-
DISABLE_PASSPORTS = 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
message PBAvatarModifierArea {
|
|
13
|
-
Vector3 area = 1;
|
|
14
|
-
repeated string exclude_ids = 2;
|
|
15
|
-
repeated AvatarModifier modifiers = 3;
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1080;
|
|
5
|
-
import "common/Color3.proto";
|
|
6
|
-
|
|
7
|
-
message PBAvatarShape {
|
|
8
|
-
string id = 1;
|
|
9
|
-
string name = 2;
|
|
10
|
-
string body_shape = 3;
|
|
11
|
-
Color3 skin_color = 4;
|
|
12
|
-
Color3 hair_color = 5;
|
|
13
|
-
Color3 eye_color = 6;
|
|
14
|
-
repeated string wearables = 7;
|
|
15
|
-
string expression_trigger_id = 8;
|
|
16
|
-
int64 expression_trigger_timestamp = 9;
|
|
17
|
-
string sticker_trigger_id = 10;
|
|
18
|
-
int64 sticker_trigger_timestamp = 11;
|
|
19
|
-
bool talking = 12;
|
|
20
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1071;
|
|
5
|
-
import "common/Vector3.proto";
|
|
6
|
-
|
|
7
|
-
enum CameraMode {
|
|
8
|
-
FIRST_PERSON = 0;
|
|
9
|
-
THIRD_PERSON = 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
message PBCameraModeArea {
|
|
13
|
-
Vector3 area = 1;
|
|
14
|
-
CameraMode mode = 2;
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1040;
|
|
5
|
-
|
|
6
|
-
import "common/Color3.proto";
|
|
7
|
-
|
|
8
|
-
message PBNFTShape {
|
|
9
|
-
bool with_collisions = 1;
|
|
10
|
-
bool is_pointer_blocker = 2;
|
|
11
|
-
bool visible = 3;
|
|
12
|
-
string src = 4;
|
|
13
|
-
string asset_id = 5;
|
|
14
|
-
int32 style = 6;
|
|
15
|
-
Color3 color = 7;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1060;
|
|
5
|
-
import "common/ActionButton.proto";
|
|
6
|
-
|
|
7
|
-
message PBOnPointerDown {
|
|
8
|
-
ActionButton button = 1;
|
|
9
|
-
string hover_text = 2;
|
|
10
|
-
float distance = 3;
|
|
11
|
-
bool show_feedback = 4;
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1066;
|
|
5
|
-
import "common/Vector3.proto";
|
|
6
|
-
import "common/ActionButton.proto";
|
|
7
|
-
|
|
8
|
-
message PBOnPointerDownResult {
|
|
9
|
-
ActionButton button = 2;
|
|
10
|
-
string meshName = 3;
|
|
11
|
-
Vector3 origin = 4;
|
|
12
|
-
Vector3 direction = 5;
|
|
13
|
-
Vector3 point = 6;
|
|
14
|
-
Vector3 normal = 7;
|
|
15
|
-
float distance = 8;
|
|
16
|
-
int32 timestamp = 9;
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1061;
|
|
5
|
-
import "common/ActionButton.proto";
|
|
6
|
-
|
|
7
|
-
message PBOnPointerUp {
|
|
8
|
-
ActionButton button = 1;
|
|
9
|
-
string hover_text = 2;
|
|
10
|
-
float distance = 3;
|
|
11
|
-
bool show_feedback = 4;
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1065;
|
|
5
|
-
import "common/Vector3.proto";
|
|
6
|
-
import "common/ActionButton.proto";
|
|
7
|
-
|
|
8
|
-
message PBOnPointerUpResult {
|
|
9
|
-
ActionButton button = 2;
|
|
10
|
-
string meshName = 3;
|
|
11
|
-
Vector3 origin = 4;
|
|
12
|
-
Vector3 direction = 5;
|
|
13
|
-
Vector3 point = 6;
|
|
14
|
-
Vector3 normal = 7;
|
|
15
|
-
float distance = 8;
|
|
16
|
-
int32 timestamp = 9;
|
|
17
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1030;
|
|
5
|
-
|
|
6
|
-
import "common/Color3.proto";
|
|
7
|
-
|
|
8
|
-
message PBTextShape {
|
|
9
|
-
string text = 1;
|
|
10
|
-
bool visible = 2;
|
|
11
|
-
string font = 3;
|
|
12
|
-
float opacity = 4;
|
|
13
|
-
float font_Size = 5;
|
|
14
|
-
bool font_autoSize = 6;
|
|
15
|
-
string h_text_align = 7;
|
|
16
|
-
string v_text_align = 8;
|
|
17
|
-
float width = 9;
|
|
18
|
-
float height = 10;
|
|
19
|
-
float padding_top = 11;
|
|
20
|
-
float padding_right = 12;
|
|
21
|
-
float padding_bottom = 13;
|
|
22
|
-
float padding_left = 14;
|
|
23
|
-
float line_spacing = 15;
|
|
24
|
-
int32 line_count = 16;
|
|
25
|
-
bool text_wrapping = 17;
|
|
26
|
-
float shadow_blur = 18;
|
|
27
|
-
float shadow_offsetX = 19;
|
|
28
|
-
float shadow_offsetY = 20;
|
|
29
|
-
float outline_width = 21;
|
|
30
|
-
Color3 shadow_color = 22;
|
|
31
|
-
Color3 outline_color = 23;
|
|
32
|
-
Color3 text_color = 24;
|
|
33
|
-
}
|