@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,289 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "decentraland.sdk.components";
|
|
5
|
+
|
|
6
|
+
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
7
|
+
export enum AvatarAnchorPointType {
|
|
8
|
+
/** AAPT_POSITION - @deprecated consider parenting to `engine.PlayerEntity`, this will attach to player position with an arbitrary offset */
|
|
9
|
+
AAPT_POSITION = 0,
|
|
10
|
+
AAPT_NAME_TAG = 1,
|
|
11
|
+
AAPT_HEAD = 4,
|
|
12
|
+
AAPT_NECK = 5,
|
|
13
|
+
AAPT_SPINE = 6,
|
|
14
|
+
AAPT_SPINE1 = 7,
|
|
15
|
+
AAPT_SPINE2 = 8,
|
|
16
|
+
AAPT_HIP = 9,
|
|
17
|
+
AAPT_LEFT_SHOULDER = 10,
|
|
18
|
+
AAPT_LEFT_ARM = 11,
|
|
19
|
+
AAPT_LEFT_FOREARM = 12,
|
|
20
|
+
AAPT_LEFT_HAND = 2,
|
|
21
|
+
AAPT_LEFT_HAND_INDEX = 13,
|
|
22
|
+
AAPT_RIGHT_SHOULDER = 14,
|
|
23
|
+
AAPT_RIGHT_ARM = 15,
|
|
24
|
+
AAPT_RIGHT_FOREARM = 16,
|
|
25
|
+
AAPT_RIGHT_HAND = 3,
|
|
26
|
+
AAPT_RIGHT_HAND_INDEX = 17,
|
|
27
|
+
AAPT_LEFT_UP_LEG = 18,
|
|
28
|
+
AAPT_LEFT_LEG = 19,
|
|
29
|
+
AAPT_LEFT_FOOT = 20,
|
|
30
|
+
AAPT_LEFT_TOE_BASE = 21,
|
|
31
|
+
AAPT_RIGHT_UP_LEG = 22,
|
|
32
|
+
AAPT_RIGHT_LEG = 23,
|
|
33
|
+
AAPT_RIGHT_FOOT = 24,
|
|
34
|
+
AAPT_RIGHT_TOE_BASE = 25,
|
|
35
|
+
UNRECOGNIZED = -1,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function avatarAnchorPointTypeFromJSON(object: any): AvatarAnchorPointType {
|
|
39
|
+
switch (object) {
|
|
40
|
+
case 0:
|
|
41
|
+
case "AAPT_POSITION":
|
|
42
|
+
return AvatarAnchorPointType.AAPT_POSITION;
|
|
43
|
+
case 1:
|
|
44
|
+
case "AAPT_NAME_TAG":
|
|
45
|
+
return AvatarAnchorPointType.AAPT_NAME_TAG;
|
|
46
|
+
case 4:
|
|
47
|
+
case "AAPT_HEAD":
|
|
48
|
+
return AvatarAnchorPointType.AAPT_HEAD;
|
|
49
|
+
case 5:
|
|
50
|
+
case "AAPT_NECK":
|
|
51
|
+
return AvatarAnchorPointType.AAPT_NECK;
|
|
52
|
+
case 6:
|
|
53
|
+
case "AAPT_SPINE":
|
|
54
|
+
return AvatarAnchorPointType.AAPT_SPINE;
|
|
55
|
+
case 7:
|
|
56
|
+
case "AAPT_SPINE1":
|
|
57
|
+
return AvatarAnchorPointType.AAPT_SPINE1;
|
|
58
|
+
case 8:
|
|
59
|
+
case "AAPT_SPINE2":
|
|
60
|
+
return AvatarAnchorPointType.AAPT_SPINE2;
|
|
61
|
+
case 9:
|
|
62
|
+
case "AAPT_HIP":
|
|
63
|
+
return AvatarAnchorPointType.AAPT_HIP;
|
|
64
|
+
case 10:
|
|
65
|
+
case "AAPT_LEFT_SHOULDER":
|
|
66
|
+
return AvatarAnchorPointType.AAPT_LEFT_SHOULDER;
|
|
67
|
+
case 11:
|
|
68
|
+
case "AAPT_LEFT_ARM":
|
|
69
|
+
return AvatarAnchorPointType.AAPT_LEFT_ARM;
|
|
70
|
+
case 12:
|
|
71
|
+
case "AAPT_LEFT_FOREARM":
|
|
72
|
+
return AvatarAnchorPointType.AAPT_LEFT_FOREARM;
|
|
73
|
+
case 2:
|
|
74
|
+
case "AAPT_LEFT_HAND":
|
|
75
|
+
return AvatarAnchorPointType.AAPT_LEFT_HAND;
|
|
76
|
+
case 13:
|
|
77
|
+
case "AAPT_LEFT_HAND_INDEX":
|
|
78
|
+
return AvatarAnchorPointType.AAPT_LEFT_HAND_INDEX;
|
|
79
|
+
case 14:
|
|
80
|
+
case "AAPT_RIGHT_SHOULDER":
|
|
81
|
+
return AvatarAnchorPointType.AAPT_RIGHT_SHOULDER;
|
|
82
|
+
case 15:
|
|
83
|
+
case "AAPT_RIGHT_ARM":
|
|
84
|
+
return AvatarAnchorPointType.AAPT_RIGHT_ARM;
|
|
85
|
+
case 16:
|
|
86
|
+
case "AAPT_RIGHT_FOREARM":
|
|
87
|
+
return AvatarAnchorPointType.AAPT_RIGHT_FOREARM;
|
|
88
|
+
case 3:
|
|
89
|
+
case "AAPT_RIGHT_HAND":
|
|
90
|
+
return AvatarAnchorPointType.AAPT_RIGHT_HAND;
|
|
91
|
+
case 17:
|
|
92
|
+
case "AAPT_RIGHT_HAND_INDEX":
|
|
93
|
+
return AvatarAnchorPointType.AAPT_RIGHT_HAND_INDEX;
|
|
94
|
+
case 18:
|
|
95
|
+
case "AAPT_LEFT_UP_LEG":
|
|
96
|
+
return AvatarAnchorPointType.AAPT_LEFT_UP_LEG;
|
|
97
|
+
case 19:
|
|
98
|
+
case "AAPT_LEFT_LEG":
|
|
99
|
+
return AvatarAnchorPointType.AAPT_LEFT_LEG;
|
|
100
|
+
case 20:
|
|
101
|
+
case "AAPT_LEFT_FOOT":
|
|
102
|
+
return AvatarAnchorPointType.AAPT_LEFT_FOOT;
|
|
103
|
+
case 21:
|
|
104
|
+
case "AAPT_LEFT_TOE_BASE":
|
|
105
|
+
return AvatarAnchorPointType.AAPT_LEFT_TOE_BASE;
|
|
106
|
+
case 22:
|
|
107
|
+
case "AAPT_RIGHT_UP_LEG":
|
|
108
|
+
return AvatarAnchorPointType.AAPT_RIGHT_UP_LEG;
|
|
109
|
+
case 23:
|
|
110
|
+
case "AAPT_RIGHT_LEG":
|
|
111
|
+
return AvatarAnchorPointType.AAPT_RIGHT_LEG;
|
|
112
|
+
case 24:
|
|
113
|
+
case "AAPT_RIGHT_FOOT":
|
|
114
|
+
return AvatarAnchorPointType.AAPT_RIGHT_FOOT;
|
|
115
|
+
case 25:
|
|
116
|
+
case "AAPT_RIGHT_TOE_BASE":
|
|
117
|
+
return AvatarAnchorPointType.AAPT_RIGHT_TOE_BASE;
|
|
118
|
+
case -1:
|
|
119
|
+
case "UNRECOGNIZED":
|
|
120
|
+
default:
|
|
121
|
+
return AvatarAnchorPointType.UNRECOGNIZED;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function avatarAnchorPointTypeToJSON(object: AvatarAnchorPointType): string {
|
|
126
|
+
switch (object) {
|
|
127
|
+
case AvatarAnchorPointType.AAPT_POSITION:
|
|
128
|
+
return "AAPT_POSITION";
|
|
129
|
+
case AvatarAnchorPointType.AAPT_NAME_TAG:
|
|
130
|
+
return "AAPT_NAME_TAG";
|
|
131
|
+
case AvatarAnchorPointType.AAPT_HEAD:
|
|
132
|
+
return "AAPT_HEAD";
|
|
133
|
+
case AvatarAnchorPointType.AAPT_NECK:
|
|
134
|
+
return "AAPT_NECK";
|
|
135
|
+
case AvatarAnchorPointType.AAPT_SPINE:
|
|
136
|
+
return "AAPT_SPINE";
|
|
137
|
+
case AvatarAnchorPointType.AAPT_SPINE1:
|
|
138
|
+
return "AAPT_SPINE1";
|
|
139
|
+
case AvatarAnchorPointType.AAPT_SPINE2:
|
|
140
|
+
return "AAPT_SPINE2";
|
|
141
|
+
case AvatarAnchorPointType.AAPT_HIP:
|
|
142
|
+
return "AAPT_HIP";
|
|
143
|
+
case AvatarAnchorPointType.AAPT_LEFT_SHOULDER:
|
|
144
|
+
return "AAPT_LEFT_SHOULDER";
|
|
145
|
+
case AvatarAnchorPointType.AAPT_LEFT_ARM:
|
|
146
|
+
return "AAPT_LEFT_ARM";
|
|
147
|
+
case AvatarAnchorPointType.AAPT_LEFT_FOREARM:
|
|
148
|
+
return "AAPT_LEFT_FOREARM";
|
|
149
|
+
case AvatarAnchorPointType.AAPT_LEFT_HAND:
|
|
150
|
+
return "AAPT_LEFT_HAND";
|
|
151
|
+
case AvatarAnchorPointType.AAPT_LEFT_HAND_INDEX:
|
|
152
|
+
return "AAPT_LEFT_HAND_INDEX";
|
|
153
|
+
case AvatarAnchorPointType.AAPT_RIGHT_SHOULDER:
|
|
154
|
+
return "AAPT_RIGHT_SHOULDER";
|
|
155
|
+
case AvatarAnchorPointType.AAPT_RIGHT_ARM:
|
|
156
|
+
return "AAPT_RIGHT_ARM";
|
|
157
|
+
case AvatarAnchorPointType.AAPT_RIGHT_FOREARM:
|
|
158
|
+
return "AAPT_RIGHT_FOREARM";
|
|
159
|
+
case AvatarAnchorPointType.AAPT_RIGHT_HAND:
|
|
160
|
+
return "AAPT_RIGHT_HAND";
|
|
161
|
+
case AvatarAnchorPointType.AAPT_RIGHT_HAND_INDEX:
|
|
162
|
+
return "AAPT_RIGHT_HAND_INDEX";
|
|
163
|
+
case AvatarAnchorPointType.AAPT_LEFT_UP_LEG:
|
|
164
|
+
return "AAPT_LEFT_UP_LEG";
|
|
165
|
+
case AvatarAnchorPointType.AAPT_LEFT_LEG:
|
|
166
|
+
return "AAPT_LEFT_LEG";
|
|
167
|
+
case AvatarAnchorPointType.AAPT_LEFT_FOOT:
|
|
168
|
+
return "AAPT_LEFT_FOOT";
|
|
169
|
+
case AvatarAnchorPointType.AAPT_LEFT_TOE_BASE:
|
|
170
|
+
return "AAPT_LEFT_TOE_BASE";
|
|
171
|
+
case AvatarAnchorPointType.AAPT_RIGHT_UP_LEG:
|
|
172
|
+
return "AAPT_RIGHT_UP_LEG";
|
|
173
|
+
case AvatarAnchorPointType.AAPT_RIGHT_LEG:
|
|
174
|
+
return "AAPT_RIGHT_LEG";
|
|
175
|
+
case AvatarAnchorPointType.AAPT_RIGHT_FOOT:
|
|
176
|
+
return "AAPT_RIGHT_FOOT";
|
|
177
|
+
case AvatarAnchorPointType.AAPT_RIGHT_TOE_BASE:
|
|
178
|
+
return "AAPT_RIGHT_TOE_BASE";
|
|
179
|
+
case AvatarAnchorPointType.UNRECOGNIZED:
|
|
180
|
+
default:
|
|
181
|
+
return "UNRECOGNIZED";
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The AvatarAttach component automatically repositions an Entity to maintain the same position and
|
|
187
|
+
* rotation relative to some part of an avatar, called the "anchor point". The Entity
|
|
188
|
+
* will follow this anchor as it moves.
|
|
189
|
+
*
|
|
190
|
+
* The Entity's own Transform is overridden by this component. To offset position and adjust scale,
|
|
191
|
+
* add a child to the anchored Entity and set a Transform on it instead.
|
|
192
|
+
*
|
|
193
|
+
* AvatarAnchorPointType indicates which part of the avatar the Entity must follow.
|
|
194
|
+
*/
|
|
195
|
+
export interface PBAvatarAttach {
|
|
196
|
+
/** the user ID of the avatar (default: local user) */
|
|
197
|
+
avatarId?:
|
|
198
|
+
| string
|
|
199
|
+
| undefined;
|
|
200
|
+
/** the anchor point. */
|
|
201
|
+
anchorPointId: AvatarAnchorPointType;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function createBasePBAvatarAttach(): PBAvatarAttach {
|
|
205
|
+
return { avatarId: undefined, anchorPointId: 0 };
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export namespace PBAvatarAttach {
|
|
209
|
+
export function encode(message: PBAvatarAttach, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
210
|
+
if (message.avatarId !== undefined) {
|
|
211
|
+
writer.uint32(10).string(message.avatarId);
|
|
212
|
+
}
|
|
213
|
+
if (message.anchorPointId !== 0) {
|
|
214
|
+
writer.uint32(16).int32(message.anchorPointId);
|
|
215
|
+
}
|
|
216
|
+
return writer;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarAttach {
|
|
220
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
221
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
222
|
+
const message = createBasePBAvatarAttach();
|
|
223
|
+
while (reader.pos < end) {
|
|
224
|
+
const tag = reader.uint32();
|
|
225
|
+
switch (tag >>> 3) {
|
|
226
|
+
case 1:
|
|
227
|
+
if (tag !== 10) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message.avatarId = reader.string();
|
|
232
|
+
continue;
|
|
233
|
+
case 2:
|
|
234
|
+
if (tag !== 16) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
message.anchorPointId = reader.int32() as any;
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
reader.skipType(tag & 7);
|
|
245
|
+
}
|
|
246
|
+
return message;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export function fromJSON(object: any): PBAvatarAttach {
|
|
250
|
+
return {
|
|
251
|
+
avatarId: isSet(object.avatarId) ? String(object.avatarId) : undefined,
|
|
252
|
+
anchorPointId: isSet(object.anchorPointId) ? avatarAnchorPointTypeFromJSON(object.anchorPointId) : 0,
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export function toJSON(message: PBAvatarAttach): unknown {
|
|
257
|
+
const obj: any = {};
|
|
258
|
+
message.avatarId !== undefined && (obj.avatarId = message.avatarId);
|
|
259
|
+
message.anchorPointId !== undefined && (obj.anchorPointId = avatarAnchorPointTypeToJSON(message.anchorPointId));
|
|
260
|
+
return obj;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export function create<I extends Exact<DeepPartial<PBAvatarAttach>, I>>(base?: I): PBAvatarAttach {
|
|
264
|
+
return PBAvatarAttach.fromPartial(base ?? {});
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function fromPartial<I extends Exact<DeepPartial<PBAvatarAttach>, I>>(object: I): PBAvatarAttach {
|
|
268
|
+
const message = createBasePBAvatarAttach();
|
|
269
|
+
message.avatarId = object.avatarId ?? undefined;
|
|
270
|
+
message.anchorPointId = object.anchorPointId ?? 0;
|
|
271
|
+
return message;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
276
|
+
|
|
277
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
278
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
279
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
280
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
281
|
+
: Partial<T>;
|
|
282
|
+
|
|
283
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
284
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
285
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
286
|
+
|
|
287
|
+
function isSet(value: any): boolean {
|
|
288
|
+
return value !== null && value !== undefined;
|
|
289
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Color3 } from "../../common/colors.gen";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "decentraland.sdk.components";
|
|
6
|
+
|
|
7
|
+
/** AvatarBase sets all modifiers over the avatar's apparence. */
|
|
8
|
+
export interface PBAvatarBase {
|
|
9
|
+
skinColor: Color3 | undefined;
|
|
10
|
+
eyesColor: Color3 | undefined;
|
|
11
|
+
hairColor: Color3 | undefined;
|
|
12
|
+
bodyShapeUrn: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function createBasePBAvatarBase(): PBAvatarBase {
|
|
17
|
+
return { skinColor: undefined, eyesColor: undefined, hairColor: undefined, bodyShapeUrn: "", name: "" };
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export namespace PBAvatarBase {
|
|
21
|
+
export function encode(message: PBAvatarBase, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22
|
+
if (message.skinColor !== undefined) {
|
|
23
|
+
Color3.encode(message.skinColor, writer.uint32(10).fork()).ldelim();
|
|
24
|
+
}
|
|
25
|
+
if (message.eyesColor !== undefined) {
|
|
26
|
+
Color3.encode(message.eyesColor, writer.uint32(18).fork()).ldelim();
|
|
27
|
+
}
|
|
28
|
+
if (message.hairColor !== undefined) {
|
|
29
|
+
Color3.encode(message.hairColor, writer.uint32(26).fork()).ldelim();
|
|
30
|
+
}
|
|
31
|
+
if (message.bodyShapeUrn !== "") {
|
|
32
|
+
writer.uint32(34).string(message.bodyShapeUrn);
|
|
33
|
+
}
|
|
34
|
+
if (message.name !== "") {
|
|
35
|
+
writer.uint32(42).string(message.name);
|
|
36
|
+
}
|
|
37
|
+
return writer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarBase {
|
|
41
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
42
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
43
|
+
const message = createBasePBAvatarBase();
|
|
44
|
+
while (reader.pos < end) {
|
|
45
|
+
const tag = reader.uint32();
|
|
46
|
+
switch (tag >>> 3) {
|
|
47
|
+
case 1:
|
|
48
|
+
if (tag !== 10) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message.skinColor = Color3.decode(reader, reader.uint32());
|
|
53
|
+
continue;
|
|
54
|
+
case 2:
|
|
55
|
+
if (tag !== 18) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message.eyesColor = Color3.decode(reader, reader.uint32());
|
|
60
|
+
continue;
|
|
61
|
+
case 3:
|
|
62
|
+
if (tag !== 26) {
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message.hairColor = Color3.decode(reader, reader.uint32());
|
|
67
|
+
continue;
|
|
68
|
+
case 4:
|
|
69
|
+
if (tag !== 34) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message.bodyShapeUrn = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
case 5:
|
|
76
|
+
if (tag !== 42) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message.name = reader.string();
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
reader.skipType(tag & 7);
|
|
87
|
+
}
|
|
88
|
+
return message;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function fromJSON(object: any): PBAvatarBase {
|
|
92
|
+
return {
|
|
93
|
+
skinColor: isSet(object.skinColor) ? Color3.fromJSON(object.skinColor) : undefined,
|
|
94
|
+
eyesColor: isSet(object.eyesColor) ? Color3.fromJSON(object.eyesColor) : undefined,
|
|
95
|
+
hairColor: isSet(object.hairColor) ? Color3.fromJSON(object.hairColor) : undefined,
|
|
96
|
+
bodyShapeUrn: isSet(object.bodyShapeUrn) ? String(object.bodyShapeUrn) : "",
|
|
97
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function toJSON(message: PBAvatarBase): unknown {
|
|
102
|
+
const obj: any = {};
|
|
103
|
+
message.skinColor !== undefined &&
|
|
104
|
+
(obj.skinColor = message.skinColor ? Color3.toJSON(message.skinColor) : undefined);
|
|
105
|
+
message.eyesColor !== undefined &&
|
|
106
|
+
(obj.eyesColor = message.eyesColor ? Color3.toJSON(message.eyesColor) : undefined);
|
|
107
|
+
message.hairColor !== undefined &&
|
|
108
|
+
(obj.hairColor = message.hairColor ? Color3.toJSON(message.hairColor) : undefined);
|
|
109
|
+
message.bodyShapeUrn !== undefined && (obj.bodyShapeUrn = message.bodyShapeUrn);
|
|
110
|
+
message.name !== undefined && (obj.name = message.name);
|
|
111
|
+
return obj;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function create<I extends Exact<DeepPartial<PBAvatarBase>, I>>(base?: I): PBAvatarBase {
|
|
115
|
+
return PBAvatarBase.fromPartial(base ?? {});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function fromPartial<I extends Exact<DeepPartial<PBAvatarBase>, I>>(object: I): PBAvatarBase {
|
|
119
|
+
const message = createBasePBAvatarBase();
|
|
120
|
+
message.skinColor = (object.skinColor !== undefined && object.skinColor !== null)
|
|
121
|
+
? Color3.fromPartial(object.skinColor)
|
|
122
|
+
: undefined;
|
|
123
|
+
message.eyesColor = (object.eyesColor !== undefined && object.eyesColor !== null)
|
|
124
|
+
? Color3.fromPartial(object.eyesColor)
|
|
125
|
+
: undefined;
|
|
126
|
+
message.hairColor = (object.hairColor !== undefined && object.hairColor !== null)
|
|
127
|
+
? Color3.fromPartial(object.hairColor)
|
|
128
|
+
: undefined;
|
|
129
|
+
message.bodyShapeUrn = object.bodyShapeUrn ?? "";
|
|
130
|
+
message.name = object.name ?? "";
|
|
131
|
+
return message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
136
|
+
|
|
137
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
138
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
139
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
140
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
141
|
+
: Partial<T>;
|
|
142
|
+
|
|
143
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
144
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
145
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
146
|
+
|
|
147
|
+
function isSet(value: any): boolean {
|
|
148
|
+
return value !== null && value !== undefined;
|
|
149
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "decentraland.sdk.components";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* AvatarEmoteCommand is a grow only value set, used to signal the renderer about
|
|
8
|
+
* avatar emotes playback.
|
|
9
|
+
*/
|
|
10
|
+
export interface PBAvatarEmoteCommand {
|
|
11
|
+
emoteUrn: string;
|
|
12
|
+
loop: boolean;
|
|
13
|
+
/** monotonic counter */
|
|
14
|
+
timestamp: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function createBasePBAvatarEmoteCommand(): PBAvatarEmoteCommand {
|
|
18
|
+
return { emoteUrn: "", loop: false, timestamp: 0 };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export namespace PBAvatarEmoteCommand {
|
|
22
|
+
export function encode(message: PBAvatarEmoteCommand, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
23
|
+
if (message.emoteUrn !== "") {
|
|
24
|
+
writer.uint32(10).string(message.emoteUrn);
|
|
25
|
+
}
|
|
26
|
+
if (message.loop === true) {
|
|
27
|
+
writer.uint32(16).bool(message.loop);
|
|
28
|
+
}
|
|
29
|
+
if (message.timestamp !== 0) {
|
|
30
|
+
writer.uint32(24).uint32(message.timestamp);
|
|
31
|
+
}
|
|
32
|
+
return writer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand {
|
|
36
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
+
const message = createBasePBAvatarEmoteCommand();
|
|
39
|
+
while (reader.pos < end) {
|
|
40
|
+
const tag = reader.uint32();
|
|
41
|
+
switch (tag >>> 3) {
|
|
42
|
+
case 1:
|
|
43
|
+
if (tag !== 10) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message.emoteUrn = reader.string();
|
|
48
|
+
continue;
|
|
49
|
+
case 2:
|
|
50
|
+
if (tag !== 16) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message.loop = reader.bool();
|
|
55
|
+
continue;
|
|
56
|
+
case 3:
|
|
57
|
+
if (tag !== 24) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message.timestamp = reader.uint32();
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
reader.skipType(tag & 7);
|
|
68
|
+
}
|
|
69
|
+
return message;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function fromJSON(object: any): PBAvatarEmoteCommand {
|
|
73
|
+
return {
|
|
74
|
+
emoteUrn: isSet(object.emoteUrn) ? String(object.emoteUrn) : "",
|
|
75
|
+
loop: isSet(object.loop) ? Boolean(object.loop) : false,
|
|
76
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function toJSON(message: PBAvatarEmoteCommand): unknown {
|
|
81
|
+
const obj: any = {};
|
|
82
|
+
message.emoteUrn !== undefined && (obj.emoteUrn = message.emoteUrn);
|
|
83
|
+
message.loop !== undefined && (obj.loop = message.loop);
|
|
84
|
+
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
85
|
+
return obj;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(base?: I): PBAvatarEmoteCommand {
|
|
89
|
+
return PBAvatarEmoteCommand.fromPartial(base ?? {});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(object: I): PBAvatarEmoteCommand {
|
|
93
|
+
const message = createBasePBAvatarEmoteCommand();
|
|
94
|
+
message.emoteUrn = object.emoteUrn ?? "";
|
|
95
|
+
message.loop = object.loop ?? false;
|
|
96
|
+
message.timestamp = object.timestamp ?? 0;
|
|
97
|
+
return message;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
102
|
+
|
|
103
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
104
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
105
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
106
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
107
|
+
: Partial<T>;
|
|
108
|
+
|
|
109
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
110
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
111
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
112
|
+
|
|
113
|
+
function isSet(value: any): boolean {
|
|
114
|
+
return value !== null && value !== undefined;
|
|
115
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "decentraland.sdk.components";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* AvatarEquipData is used to read the information about the avatar's owneables.
|
|
8
|
+
* this component is written by the engine using the communications transports'
|
|
9
|
+
* data.
|
|
10
|
+
*/
|
|
11
|
+
export interface PBAvatarEquippedData {
|
|
12
|
+
wearableUrns: string[];
|
|
13
|
+
emoteUrns: string[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function createBasePBAvatarEquippedData(): PBAvatarEquippedData {
|
|
17
|
+
return { wearableUrns: [], emoteUrns: [] };
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export namespace PBAvatarEquippedData {
|
|
21
|
+
export function encode(message: PBAvatarEquippedData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22
|
+
for (const v of message.wearableUrns) {
|
|
23
|
+
writer.uint32(10).string(v!);
|
|
24
|
+
}
|
|
25
|
+
for (const v of message.emoteUrns) {
|
|
26
|
+
writer.uint32(18).string(v!);
|
|
27
|
+
}
|
|
28
|
+
return writer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData {
|
|
32
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBasePBAvatarEquippedData();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 10) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message.wearableUrns.push(reader.string());
|
|
44
|
+
continue;
|
|
45
|
+
case 2:
|
|
46
|
+
if (tag !== 18) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message.emoteUrns.push(reader.string());
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
reader.skipType(tag & 7);
|
|
57
|
+
}
|
|
58
|
+
return message;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function fromJSON(object: any): PBAvatarEquippedData {
|
|
62
|
+
return {
|
|
63
|
+
wearableUrns: Array.isArray(object?.wearableUrns) ? object.wearableUrns.map((e: any) => String(e)) : [],
|
|
64
|
+
emoteUrns: Array.isArray(object?.emoteUrns) ? object.emoteUrns.map((e: any) => String(e)) : [],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function toJSON(message: PBAvatarEquippedData): unknown {
|
|
69
|
+
const obj: any = {};
|
|
70
|
+
if (message.wearableUrns) {
|
|
71
|
+
obj.wearableUrns = message.wearableUrns.map((e) => e);
|
|
72
|
+
} else {
|
|
73
|
+
obj.wearableUrns = [];
|
|
74
|
+
}
|
|
75
|
+
if (message.emoteUrns) {
|
|
76
|
+
obj.emoteUrns = message.emoteUrns.map((e) => e);
|
|
77
|
+
} else {
|
|
78
|
+
obj.emoteUrns = [];
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function create<I extends Exact<DeepPartial<PBAvatarEquippedData>, I>>(base?: I): PBAvatarEquippedData {
|
|
84
|
+
return PBAvatarEquippedData.fromPartial(base ?? {});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function fromPartial<I extends Exact<DeepPartial<PBAvatarEquippedData>, I>>(object: I): PBAvatarEquippedData {
|
|
88
|
+
const message = createBasePBAvatarEquippedData();
|
|
89
|
+
message.wearableUrns = object.wearableUrns?.map((e) => e) || [];
|
|
90
|
+
message.emoteUrns = object.emoteUrns?.map((e) => e) || [];
|
|
91
|
+
return message;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
96
|
+
|
|
97
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
98
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
99
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
100
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
101
|
+
: Partial<T>;
|
|
102
|
+
|
|
103
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
104
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
105
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|