@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,2389 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "decentraland.kernel.comms.rfc4";
|
|
6
|
+
|
|
7
|
+
export interface Packet {
|
|
8
|
+
message?:
|
|
9
|
+
| { $case: "position"; position: Position }
|
|
10
|
+
| { $case: "profileVersion"; profileVersion: AnnounceProfileVersion }
|
|
11
|
+
| { $case: "profileRequest"; profileRequest: ProfileRequest }
|
|
12
|
+
| { $case: "profileResponse"; profileResponse: ProfileResponse }
|
|
13
|
+
| { $case: "chat"; chat: Chat }
|
|
14
|
+
| { $case: "scene"; scene: Scene }
|
|
15
|
+
| { $case: "voice"; voice: Voice }
|
|
16
|
+
| { $case: "movement"; movement: Movement }
|
|
17
|
+
| { $case: "playerEmote"; playerEmote: PlayerEmote }
|
|
18
|
+
| { $case: "sceneEmote"; sceneEmote: SceneEmote }
|
|
19
|
+
| { $case: "movementCompressed"; movementCompressed: MovementCompressed }
|
|
20
|
+
| { $case: "lookAtPosition"; lookAtPosition: LookAtPosition }
|
|
21
|
+
| { $case: "reaction"; reaction: Reaction }
|
|
22
|
+
| { $case: "chatReaction"; chatReaction: ChatReaction }
|
|
23
|
+
| undefined;
|
|
24
|
+
protocolVersion: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Position {
|
|
28
|
+
/** command number */
|
|
29
|
+
index: number;
|
|
30
|
+
/** world position */
|
|
31
|
+
positionX: number;
|
|
32
|
+
positionY: number;
|
|
33
|
+
positionZ: number;
|
|
34
|
+
/** quaternion */
|
|
35
|
+
rotationX: number;
|
|
36
|
+
rotationY: number;
|
|
37
|
+
rotationZ: number;
|
|
38
|
+
rotationW: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface Movement {
|
|
42
|
+
/** command number */
|
|
43
|
+
timestamp: number;
|
|
44
|
+
/** world position */
|
|
45
|
+
positionX: number;
|
|
46
|
+
positionY: number;
|
|
47
|
+
positionZ: number;
|
|
48
|
+
/** velocity */
|
|
49
|
+
velocityX: number;
|
|
50
|
+
velocityY: number;
|
|
51
|
+
velocityZ: number;
|
|
52
|
+
/** animations */
|
|
53
|
+
movementBlendValue: number;
|
|
54
|
+
slideBlendValue: number;
|
|
55
|
+
isGrounded: boolean;
|
|
56
|
+
/** deprecated */
|
|
57
|
+
isJumping: boolean;
|
|
58
|
+
jumpCount: number;
|
|
59
|
+
isLongJump: boolean;
|
|
60
|
+
isLongFall: boolean;
|
|
61
|
+
isFalling: boolean;
|
|
62
|
+
isStunned: boolean;
|
|
63
|
+
glideState: Movement_GlideState;
|
|
64
|
+
rotationY: number;
|
|
65
|
+
/** interpolation */
|
|
66
|
+
isInstant: boolean;
|
|
67
|
+
isEmoting: boolean;
|
|
68
|
+
/** head-sync (enabled flags + world-space yaw and pitch angles, in degrees) */
|
|
69
|
+
headIkYawEnabled: boolean;
|
|
70
|
+
headIkPitchEnabled: boolean;
|
|
71
|
+
headYaw: number;
|
|
72
|
+
headPitch: number;
|
|
73
|
+
/** point-at */
|
|
74
|
+
pointAtX: number;
|
|
75
|
+
pointAtY: number;
|
|
76
|
+
pointAtZ: number;
|
|
77
|
+
isPointingAt: boolean;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export enum Movement_GlideState {
|
|
81
|
+
PROP_CLOSED = 0,
|
|
82
|
+
OPENING_PROP = 1,
|
|
83
|
+
GLIDING = 2,
|
|
84
|
+
CLOSING_PROP = 3,
|
|
85
|
+
UNRECOGNIZED = -1,
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function movement_GlideStateFromJSON(object: any): Movement_GlideState {
|
|
89
|
+
switch (object) {
|
|
90
|
+
case 0:
|
|
91
|
+
case "PROP_CLOSED":
|
|
92
|
+
return Movement_GlideState.PROP_CLOSED;
|
|
93
|
+
case 1:
|
|
94
|
+
case "OPENING_PROP":
|
|
95
|
+
return Movement_GlideState.OPENING_PROP;
|
|
96
|
+
case 2:
|
|
97
|
+
case "GLIDING":
|
|
98
|
+
return Movement_GlideState.GLIDING;
|
|
99
|
+
case 3:
|
|
100
|
+
case "CLOSING_PROP":
|
|
101
|
+
return Movement_GlideState.CLOSING_PROP;
|
|
102
|
+
case -1:
|
|
103
|
+
case "UNRECOGNIZED":
|
|
104
|
+
default:
|
|
105
|
+
return Movement_GlideState.UNRECOGNIZED;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function movement_GlideStateToJSON(object: Movement_GlideState): string {
|
|
110
|
+
switch (object) {
|
|
111
|
+
case Movement_GlideState.PROP_CLOSED:
|
|
112
|
+
return "PROP_CLOSED";
|
|
113
|
+
case Movement_GlideState.OPENING_PROP:
|
|
114
|
+
return "OPENING_PROP";
|
|
115
|
+
case Movement_GlideState.GLIDING:
|
|
116
|
+
return "GLIDING";
|
|
117
|
+
case Movement_GlideState.CLOSING_PROP:
|
|
118
|
+
return "CLOSING_PROP";
|
|
119
|
+
case Movement_GlideState.UNRECOGNIZED:
|
|
120
|
+
default:
|
|
121
|
+
return "UNRECOGNIZED";
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface MovementCompressed {
|
|
126
|
+
/** bit-compressed: timestamp + animations */
|
|
127
|
+
temporalData: number;
|
|
128
|
+
/** bit-compressed: position + velocity */
|
|
129
|
+
movementData: number;
|
|
130
|
+
/** bit-compressed: enabled flags + yaw + pitch */
|
|
131
|
+
headSyncData: number;
|
|
132
|
+
/** bit-compressed: flag + point coordinates */
|
|
133
|
+
pointAtData: number;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface PlayerEmote {
|
|
137
|
+
incrementalId: number;
|
|
138
|
+
urn: string;
|
|
139
|
+
timestamp: number;
|
|
140
|
+
/** true means the emote has been stopped in the sender's client */
|
|
141
|
+
isStopping?:
|
|
142
|
+
| boolean
|
|
143
|
+
| undefined;
|
|
144
|
+
/** true when it is not the first time the looping animation plays */
|
|
145
|
+
isRepeating?:
|
|
146
|
+
| boolean
|
|
147
|
+
| undefined;
|
|
148
|
+
/** identifies an interaction univocaly, established when the start animation is triggered */
|
|
149
|
+
interactionId?:
|
|
150
|
+
| number
|
|
151
|
+
| undefined;
|
|
152
|
+
/** -1 means it does not use an outcome animation */
|
|
153
|
+
socialEmoteOutcome?:
|
|
154
|
+
| number
|
|
155
|
+
| undefined;
|
|
156
|
+
/** to a social emote started by other user */
|
|
157
|
+
isReacting?:
|
|
158
|
+
| boolean
|
|
159
|
+
| undefined;
|
|
160
|
+
/** wallet address of the user that initiated social emote */
|
|
161
|
+
socialEmoteInitiator?:
|
|
162
|
+
| string
|
|
163
|
+
| undefined;
|
|
164
|
+
/** wallet address of the user whose avatar is the target of a directed emote */
|
|
165
|
+
targetAvatar?:
|
|
166
|
+
| string
|
|
167
|
+
| undefined;
|
|
168
|
+
/** mask for which bones an animation applies to. */
|
|
169
|
+
mask?: number | undefined;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface SceneEmote {
|
|
173
|
+
sceneEntityId: string;
|
|
174
|
+
source: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface AnnounceProfileVersion {
|
|
178
|
+
profileVersion: number;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface ProfileRequest {
|
|
182
|
+
address: string;
|
|
183
|
+
profileVersion: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface ProfileResponse {
|
|
187
|
+
serializedProfile: string;
|
|
188
|
+
baseUrl: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface Chat {
|
|
192
|
+
message: string;
|
|
193
|
+
timestamp: number;
|
|
194
|
+
/**
|
|
195
|
+
* Extension: optional forwarded_from to identify the original sender when
|
|
196
|
+
* messages are forwarded through an SFU
|
|
197
|
+
*/
|
|
198
|
+
forwardedFrom?: string | undefined;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface Scene {
|
|
202
|
+
sceneId: string;
|
|
203
|
+
data: Uint8Array;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface Voice {
|
|
207
|
+
encodedSamples: Uint8Array;
|
|
208
|
+
index: number;
|
|
209
|
+
codec: Voice_VoiceCodec;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export enum Voice_VoiceCodec {
|
|
213
|
+
VC_OPUS = 0,
|
|
214
|
+
UNRECOGNIZED = -1,
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export function voice_VoiceCodecFromJSON(object: any): Voice_VoiceCodec {
|
|
218
|
+
switch (object) {
|
|
219
|
+
case 0:
|
|
220
|
+
case "VC_OPUS":
|
|
221
|
+
return Voice_VoiceCodec.VC_OPUS;
|
|
222
|
+
case -1:
|
|
223
|
+
case "UNRECOGNIZED":
|
|
224
|
+
default:
|
|
225
|
+
return Voice_VoiceCodec.UNRECOGNIZED;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function voice_VoiceCodecToJSON(object: Voice_VoiceCodec): string {
|
|
230
|
+
switch (object) {
|
|
231
|
+
case Voice_VoiceCodec.VC_OPUS:
|
|
232
|
+
return "VC_OPUS";
|
|
233
|
+
case Voice_VoiceCodec.UNRECOGNIZED:
|
|
234
|
+
default:
|
|
235
|
+
return "UNRECOGNIZED";
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/** Message sent to force an avatar to look at a position */
|
|
240
|
+
export interface LookAtPosition {
|
|
241
|
+
timestamp: number;
|
|
242
|
+
/** world position */
|
|
243
|
+
positionX: number;
|
|
244
|
+
positionY: number;
|
|
245
|
+
positionZ: number;
|
|
246
|
+
targetAvatarWalletAddress: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface Reaction {
|
|
250
|
+
emojiIndex: number;
|
|
251
|
+
timestamp: number;
|
|
252
|
+
count: number;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export interface ChatReaction {
|
|
256
|
+
emojiIndex: number;
|
|
257
|
+
messageId: string;
|
|
258
|
+
address: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function createBasePacket(): Packet {
|
|
262
|
+
return { message: undefined, protocolVersion: 0 };
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export namespace Packet {
|
|
266
|
+
export function encode(message: Packet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
267
|
+
switch (message.message?.$case) {
|
|
268
|
+
case "position":
|
|
269
|
+
Position.encode(message.message.position, writer.uint32(10).fork()).ldelim();
|
|
270
|
+
break;
|
|
271
|
+
case "profileVersion":
|
|
272
|
+
AnnounceProfileVersion.encode(message.message.profileVersion, writer.uint32(18).fork()).ldelim();
|
|
273
|
+
break;
|
|
274
|
+
case "profileRequest":
|
|
275
|
+
ProfileRequest.encode(message.message.profileRequest, writer.uint32(26).fork()).ldelim();
|
|
276
|
+
break;
|
|
277
|
+
case "profileResponse":
|
|
278
|
+
ProfileResponse.encode(message.message.profileResponse, writer.uint32(34).fork()).ldelim();
|
|
279
|
+
break;
|
|
280
|
+
case "chat":
|
|
281
|
+
Chat.encode(message.message.chat, writer.uint32(42).fork()).ldelim();
|
|
282
|
+
break;
|
|
283
|
+
case "scene":
|
|
284
|
+
Scene.encode(message.message.scene, writer.uint32(50).fork()).ldelim();
|
|
285
|
+
break;
|
|
286
|
+
case "voice":
|
|
287
|
+
Voice.encode(message.message.voice, writer.uint32(58).fork()).ldelim();
|
|
288
|
+
break;
|
|
289
|
+
case "movement":
|
|
290
|
+
Movement.encode(message.message.movement, writer.uint32(66).fork()).ldelim();
|
|
291
|
+
break;
|
|
292
|
+
case "playerEmote":
|
|
293
|
+
PlayerEmote.encode(message.message.playerEmote, writer.uint32(74).fork()).ldelim();
|
|
294
|
+
break;
|
|
295
|
+
case "sceneEmote":
|
|
296
|
+
SceneEmote.encode(message.message.sceneEmote, writer.uint32(82).fork()).ldelim();
|
|
297
|
+
break;
|
|
298
|
+
case "movementCompressed":
|
|
299
|
+
MovementCompressed.encode(message.message.movementCompressed, writer.uint32(98).fork()).ldelim();
|
|
300
|
+
break;
|
|
301
|
+
case "lookAtPosition":
|
|
302
|
+
LookAtPosition.encode(message.message.lookAtPosition, writer.uint32(106).fork()).ldelim();
|
|
303
|
+
break;
|
|
304
|
+
case "reaction":
|
|
305
|
+
Reaction.encode(message.message.reaction, writer.uint32(114).fork()).ldelim();
|
|
306
|
+
break;
|
|
307
|
+
case "chatReaction":
|
|
308
|
+
ChatReaction.encode(message.message.chatReaction, writer.uint32(122).fork()).ldelim();
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
if (message.protocolVersion !== 0) {
|
|
312
|
+
writer.uint32(88).uint32(message.protocolVersion);
|
|
313
|
+
}
|
|
314
|
+
return writer;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Packet {
|
|
318
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
319
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
320
|
+
const message = createBasePacket();
|
|
321
|
+
while (reader.pos < end) {
|
|
322
|
+
const tag = reader.uint32();
|
|
323
|
+
switch (tag >>> 3) {
|
|
324
|
+
case 1:
|
|
325
|
+
if (tag !== 10) {
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
message.message = { $case: "position", position: Position.decode(reader, reader.uint32()) };
|
|
330
|
+
continue;
|
|
331
|
+
case 2:
|
|
332
|
+
if (tag !== 18) {
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
message.message = {
|
|
337
|
+
$case: "profileVersion",
|
|
338
|
+
profileVersion: AnnounceProfileVersion.decode(reader, reader.uint32()),
|
|
339
|
+
};
|
|
340
|
+
continue;
|
|
341
|
+
case 3:
|
|
342
|
+
if (tag !== 26) {
|
|
343
|
+
break;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
message.message = { $case: "profileRequest", profileRequest: ProfileRequest.decode(reader, reader.uint32()) };
|
|
347
|
+
continue;
|
|
348
|
+
case 4:
|
|
349
|
+
if (tag !== 34) {
|
|
350
|
+
break;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
message.message = {
|
|
354
|
+
$case: "profileResponse",
|
|
355
|
+
profileResponse: ProfileResponse.decode(reader, reader.uint32()),
|
|
356
|
+
};
|
|
357
|
+
continue;
|
|
358
|
+
case 5:
|
|
359
|
+
if (tag !== 42) {
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
message.message = { $case: "chat", chat: Chat.decode(reader, reader.uint32()) };
|
|
364
|
+
continue;
|
|
365
|
+
case 6:
|
|
366
|
+
if (tag !== 50) {
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
message.message = { $case: "scene", scene: Scene.decode(reader, reader.uint32()) };
|
|
371
|
+
continue;
|
|
372
|
+
case 7:
|
|
373
|
+
if (tag !== 58) {
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
message.message = { $case: "voice", voice: Voice.decode(reader, reader.uint32()) };
|
|
378
|
+
continue;
|
|
379
|
+
case 8:
|
|
380
|
+
if (tag !== 66) {
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
message.message = { $case: "movement", movement: Movement.decode(reader, reader.uint32()) };
|
|
385
|
+
continue;
|
|
386
|
+
case 9:
|
|
387
|
+
if (tag !== 74) {
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
message.message = { $case: "playerEmote", playerEmote: PlayerEmote.decode(reader, reader.uint32()) };
|
|
392
|
+
continue;
|
|
393
|
+
case 10:
|
|
394
|
+
if (tag !== 82) {
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
message.message = { $case: "sceneEmote", sceneEmote: SceneEmote.decode(reader, reader.uint32()) };
|
|
399
|
+
continue;
|
|
400
|
+
case 12:
|
|
401
|
+
if (tag !== 98) {
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
message.message = {
|
|
406
|
+
$case: "movementCompressed",
|
|
407
|
+
movementCompressed: MovementCompressed.decode(reader, reader.uint32()),
|
|
408
|
+
};
|
|
409
|
+
continue;
|
|
410
|
+
case 13:
|
|
411
|
+
if (tag !== 106) {
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
message.message = { $case: "lookAtPosition", lookAtPosition: LookAtPosition.decode(reader, reader.uint32()) };
|
|
416
|
+
continue;
|
|
417
|
+
case 14:
|
|
418
|
+
if (tag !== 114) {
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
message.message = { $case: "reaction", reaction: Reaction.decode(reader, reader.uint32()) };
|
|
423
|
+
continue;
|
|
424
|
+
case 15:
|
|
425
|
+
if (tag !== 122) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
message.message = { $case: "chatReaction", chatReaction: ChatReaction.decode(reader, reader.uint32()) };
|
|
430
|
+
continue;
|
|
431
|
+
case 11:
|
|
432
|
+
if (tag !== 88) {
|
|
433
|
+
break;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
message.protocolVersion = reader.uint32();
|
|
437
|
+
continue;
|
|
438
|
+
}
|
|
439
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
440
|
+
break;
|
|
441
|
+
}
|
|
442
|
+
reader.skipType(tag & 7);
|
|
443
|
+
}
|
|
444
|
+
return message;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export function fromJSON(object: any): Packet {
|
|
448
|
+
return {
|
|
449
|
+
message: isSet(object.position)
|
|
450
|
+
? { $case: "position", position: Position.fromJSON(object.position) }
|
|
451
|
+
: isSet(object.profileVersion)
|
|
452
|
+
? { $case: "profileVersion", profileVersion: AnnounceProfileVersion.fromJSON(object.profileVersion) }
|
|
453
|
+
: isSet(object.profileRequest)
|
|
454
|
+
? { $case: "profileRequest", profileRequest: ProfileRequest.fromJSON(object.profileRequest) }
|
|
455
|
+
: isSet(object.profileResponse)
|
|
456
|
+
? { $case: "profileResponse", profileResponse: ProfileResponse.fromJSON(object.profileResponse) }
|
|
457
|
+
: isSet(object.chat)
|
|
458
|
+
? { $case: "chat", chat: Chat.fromJSON(object.chat) }
|
|
459
|
+
: isSet(object.scene)
|
|
460
|
+
? { $case: "scene", scene: Scene.fromJSON(object.scene) }
|
|
461
|
+
: isSet(object.voice)
|
|
462
|
+
? { $case: "voice", voice: Voice.fromJSON(object.voice) }
|
|
463
|
+
: isSet(object.movement)
|
|
464
|
+
? { $case: "movement", movement: Movement.fromJSON(object.movement) }
|
|
465
|
+
: isSet(object.playerEmote)
|
|
466
|
+
? { $case: "playerEmote", playerEmote: PlayerEmote.fromJSON(object.playerEmote) }
|
|
467
|
+
: isSet(object.sceneEmote)
|
|
468
|
+
? { $case: "sceneEmote", sceneEmote: SceneEmote.fromJSON(object.sceneEmote) }
|
|
469
|
+
: isSet(object.movementCompressed)
|
|
470
|
+
? { $case: "movementCompressed", movementCompressed: MovementCompressed.fromJSON(object.movementCompressed) }
|
|
471
|
+
: isSet(object.lookAtPosition)
|
|
472
|
+
? { $case: "lookAtPosition", lookAtPosition: LookAtPosition.fromJSON(object.lookAtPosition) }
|
|
473
|
+
: isSet(object.reaction)
|
|
474
|
+
? { $case: "reaction", reaction: Reaction.fromJSON(object.reaction) }
|
|
475
|
+
: isSet(object.chatReaction)
|
|
476
|
+
? { $case: "chatReaction", chatReaction: ChatReaction.fromJSON(object.chatReaction) }
|
|
477
|
+
: undefined,
|
|
478
|
+
protocolVersion: isSet(object.protocolVersion) ? Number(object.protocolVersion) : 0,
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export function toJSON(message: Packet): unknown {
|
|
483
|
+
const obj: any = {};
|
|
484
|
+
message.message?.$case === "position" &&
|
|
485
|
+
(obj.position = message.message?.position ? Position.toJSON(message.message?.position) : undefined);
|
|
486
|
+
message.message?.$case === "profileVersion" &&
|
|
487
|
+
(obj.profileVersion = message.message?.profileVersion
|
|
488
|
+
? AnnounceProfileVersion.toJSON(message.message?.profileVersion)
|
|
489
|
+
: undefined);
|
|
490
|
+
message.message?.$case === "profileRequest" &&
|
|
491
|
+
(obj.profileRequest = message.message?.profileRequest
|
|
492
|
+
? ProfileRequest.toJSON(message.message?.profileRequest)
|
|
493
|
+
: undefined);
|
|
494
|
+
message.message?.$case === "profileResponse" &&
|
|
495
|
+
(obj.profileResponse = message.message?.profileResponse
|
|
496
|
+
? ProfileResponse.toJSON(message.message?.profileResponse)
|
|
497
|
+
: undefined);
|
|
498
|
+
message.message?.$case === "chat" &&
|
|
499
|
+
(obj.chat = message.message?.chat ? Chat.toJSON(message.message?.chat) : undefined);
|
|
500
|
+
message.message?.$case === "scene" &&
|
|
501
|
+
(obj.scene = message.message?.scene ? Scene.toJSON(message.message?.scene) : undefined);
|
|
502
|
+
message.message?.$case === "voice" &&
|
|
503
|
+
(obj.voice = message.message?.voice ? Voice.toJSON(message.message?.voice) : undefined);
|
|
504
|
+
message.message?.$case === "movement" &&
|
|
505
|
+
(obj.movement = message.message?.movement ? Movement.toJSON(message.message?.movement) : undefined);
|
|
506
|
+
message.message?.$case === "playerEmote" &&
|
|
507
|
+
(obj.playerEmote = message.message?.playerEmote ? PlayerEmote.toJSON(message.message?.playerEmote) : undefined);
|
|
508
|
+
message.message?.$case === "sceneEmote" &&
|
|
509
|
+
(obj.sceneEmote = message.message?.sceneEmote ? SceneEmote.toJSON(message.message?.sceneEmote) : undefined);
|
|
510
|
+
message.message?.$case === "movementCompressed" &&
|
|
511
|
+
(obj.movementCompressed = message.message?.movementCompressed
|
|
512
|
+
? MovementCompressed.toJSON(message.message?.movementCompressed)
|
|
513
|
+
: undefined);
|
|
514
|
+
message.message?.$case === "lookAtPosition" &&
|
|
515
|
+
(obj.lookAtPosition = message.message?.lookAtPosition
|
|
516
|
+
? LookAtPosition.toJSON(message.message?.lookAtPosition)
|
|
517
|
+
: undefined);
|
|
518
|
+
message.message?.$case === "reaction" &&
|
|
519
|
+
(obj.reaction = message.message?.reaction ? Reaction.toJSON(message.message?.reaction) : undefined);
|
|
520
|
+
message.message?.$case === "chatReaction" &&
|
|
521
|
+
(obj.chatReaction = message.message?.chatReaction
|
|
522
|
+
? ChatReaction.toJSON(message.message?.chatReaction)
|
|
523
|
+
: undefined);
|
|
524
|
+
message.protocolVersion !== undefined && (obj.protocolVersion = Math.round(message.protocolVersion));
|
|
525
|
+
return obj;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export function create<I extends Exact<DeepPartial<Packet>, I>>(base?: I): Packet {
|
|
529
|
+
return Packet.fromPartial(base ?? {});
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export function fromPartial<I extends Exact<DeepPartial<Packet>, I>>(object: I): Packet {
|
|
533
|
+
const message = createBasePacket();
|
|
534
|
+
if (
|
|
535
|
+
object.message?.$case === "position" &&
|
|
536
|
+
object.message?.position !== undefined &&
|
|
537
|
+
object.message?.position !== null
|
|
538
|
+
) {
|
|
539
|
+
message.message = { $case: "position", position: Position.fromPartial(object.message.position) };
|
|
540
|
+
}
|
|
541
|
+
if (
|
|
542
|
+
object.message?.$case === "profileVersion" &&
|
|
543
|
+
object.message?.profileVersion !== undefined &&
|
|
544
|
+
object.message?.profileVersion !== null
|
|
545
|
+
) {
|
|
546
|
+
message.message = {
|
|
547
|
+
$case: "profileVersion",
|
|
548
|
+
profileVersion: AnnounceProfileVersion.fromPartial(object.message.profileVersion),
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
if (
|
|
552
|
+
object.message?.$case === "profileRequest" &&
|
|
553
|
+
object.message?.profileRequest !== undefined &&
|
|
554
|
+
object.message?.profileRequest !== null
|
|
555
|
+
) {
|
|
556
|
+
message.message = {
|
|
557
|
+
$case: "profileRequest",
|
|
558
|
+
profileRequest: ProfileRequest.fromPartial(object.message.profileRequest),
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
if (
|
|
562
|
+
object.message?.$case === "profileResponse" &&
|
|
563
|
+
object.message?.profileResponse !== undefined &&
|
|
564
|
+
object.message?.profileResponse !== null
|
|
565
|
+
) {
|
|
566
|
+
message.message = {
|
|
567
|
+
$case: "profileResponse",
|
|
568
|
+
profileResponse: ProfileResponse.fromPartial(object.message.profileResponse),
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
if (object.message?.$case === "chat" && object.message?.chat !== undefined && object.message?.chat !== null) {
|
|
572
|
+
message.message = { $case: "chat", chat: Chat.fromPartial(object.message.chat) };
|
|
573
|
+
}
|
|
574
|
+
if (object.message?.$case === "scene" && object.message?.scene !== undefined && object.message?.scene !== null) {
|
|
575
|
+
message.message = { $case: "scene", scene: Scene.fromPartial(object.message.scene) };
|
|
576
|
+
}
|
|
577
|
+
if (object.message?.$case === "voice" && object.message?.voice !== undefined && object.message?.voice !== null) {
|
|
578
|
+
message.message = { $case: "voice", voice: Voice.fromPartial(object.message.voice) };
|
|
579
|
+
}
|
|
580
|
+
if (
|
|
581
|
+
object.message?.$case === "movement" &&
|
|
582
|
+
object.message?.movement !== undefined &&
|
|
583
|
+
object.message?.movement !== null
|
|
584
|
+
) {
|
|
585
|
+
message.message = { $case: "movement", movement: Movement.fromPartial(object.message.movement) };
|
|
586
|
+
}
|
|
587
|
+
if (
|
|
588
|
+
object.message?.$case === "playerEmote" &&
|
|
589
|
+
object.message?.playerEmote !== undefined &&
|
|
590
|
+
object.message?.playerEmote !== null
|
|
591
|
+
) {
|
|
592
|
+
message.message = { $case: "playerEmote", playerEmote: PlayerEmote.fromPartial(object.message.playerEmote) };
|
|
593
|
+
}
|
|
594
|
+
if (
|
|
595
|
+
object.message?.$case === "sceneEmote" &&
|
|
596
|
+
object.message?.sceneEmote !== undefined &&
|
|
597
|
+
object.message?.sceneEmote !== null
|
|
598
|
+
) {
|
|
599
|
+
message.message = { $case: "sceneEmote", sceneEmote: SceneEmote.fromPartial(object.message.sceneEmote) };
|
|
600
|
+
}
|
|
601
|
+
if (
|
|
602
|
+
object.message?.$case === "movementCompressed" &&
|
|
603
|
+
object.message?.movementCompressed !== undefined &&
|
|
604
|
+
object.message?.movementCompressed !== null
|
|
605
|
+
) {
|
|
606
|
+
message.message = {
|
|
607
|
+
$case: "movementCompressed",
|
|
608
|
+
movementCompressed: MovementCompressed.fromPartial(object.message.movementCompressed),
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
if (
|
|
612
|
+
object.message?.$case === "lookAtPosition" &&
|
|
613
|
+
object.message?.lookAtPosition !== undefined &&
|
|
614
|
+
object.message?.lookAtPosition !== null
|
|
615
|
+
) {
|
|
616
|
+
message.message = {
|
|
617
|
+
$case: "lookAtPosition",
|
|
618
|
+
lookAtPosition: LookAtPosition.fromPartial(object.message.lookAtPosition),
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
if (
|
|
622
|
+
object.message?.$case === "reaction" &&
|
|
623
|
+
object.message?.reaction !== undefined &&
|
|
624
|
+
object.message?.reaction !== null
|
|
625
|
+
) {
|
|
626
|
+
message.message = { $case: "reaction", reaction: Reaction.fromPartial(object.message.reaction) };
|
|
627
|
+
}
|
|
628
|
+
if (
|
|
629
|
+
object.message?.$case === "chatReaction" &&
|
|
630
|
+
object.message?.chatReaction !== undefined &&
|
|
631
|
+
object.message?.chatReaction !== null
|
|
632
|
+
) {
|
|
633
|
+
message.message = { $case: "chatReaction", chatReaction: ChatReaction.fromPartial(object.message.chatReaction) };
|
|
634
|
+
}
|
|
635
|
+
message.protocolVersion = object.protocolVersion ?? 0;
|
|
636
|
+
return message;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
function createBasePosition(): Position {
|
|
641
|
+
return { index: 0, positionX: 0, positionY: 0, positionZ: 0, rotationX: 0, rotationY: 0, rotationZ: 0, rotationW: 0 };
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export namespace Position {
|
|
645
|
+
export function encode(message: Position, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
646
|
+
if (message.index !== 0) {
|
|
647
|
+
writer.uint32(8).uint32(message.index);
|
|
648
|
+
}
|
|
649
|
+
if (message.positionX !== 0) {
|
|
650
|
+
writer.uint32(29).float(message.positionX);
|
|
651
|
+
}
|
|
652
|
+
if (message.positionY !== 0) {
|
|
653
|
+
writer.uint32(37).float(message.positionY);
|
|
654
|
+
}
|
|
655
|
+
if (message.positionZ !== 0) {
|
|
656
|
+
writer.uint32(45).float(message.positionZ);
|
|
657
|
+
}
|
|
658
|
+
if (message.rotationX !== 0) {
|
|
659
|
+
writer.uint32(53).float(message.rotationX);
|
|
660
|
+
}
|
|
661
|
+
if (message.rotationY !== 0) {
|
|
662
|
+
writer.uint32(61).float(message.rotationY);
|
|
663
|
+
}
|
|
664
|
+
if (message.rotationZ !== 0) {
|
|
665
|
+
writer.uint32(69).float(message.rotationZ);
|
|
666
|
+
}
|
|
667
|
+
if (message.rotationW !== 0) {
|
|
668
|
+
writer.uint32(77).float(message.rotationW);
|
|
669
|
+
}
|
|
670
|
+
return writer;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Position {
|
|
674
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
675
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
676
|
+
const message = createBasePosition();
|
|
677
|
+
while (reader.pos < end) {
|
|
678
|
+
const tag = reader.uint32();
|
|
679
|
+
switch (tag >>> 3) {
|
|
680
|
+
case 1:
|
|
681
|
+
if (tag !== 8) {
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
message.index = reader.uint32();
|
|
686
|
+
continue;
|
|
687
|
+
case 3:
|
|
688
|
+
if (tag !== 29) {
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
message.positionX = reader.float();
|
|
693
|
+
continue;
|
|
694
|
+
case 4:
|
|
695
|
+
if (tag !== 37) {
|
|
696
|
+
break;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
message.positionY = reader.float();
|
|
700
|
+
continue;
|
|
701
|
+
case 5:
|
|
702
|
+
if (tag !== 45) {
|
|
703
|
+
break;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
message.positionZ = reader.float();
|
|
707
|
+
continue;
|
|
708
|
+
case 6:
|
|
709
|
+
if (tag !== 53) {
|
|
710
|
+
break;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
message.rotationX = reader.float();
|
|
714
|
+
continue;
|
|
715
|
+
case 7:
|
|
716
|
+
if (tag !== 61) {
|
|
717
|
+
break;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
message.rotationY = reader.float();
|
|
721
|
+
continue;
|
|
722
|
+
case 8:
|
|
723
|
+
if (tag !== 69) {
|
|
724
|
+
break;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
message.rotationZ = reader.float();
|
|
728
|
+
continue;
|
|
729
|
+
case 9:
|
|
730
|
+
if (tag !== 77) {
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
message.rotationW = reader.float();
|
|
735
|
+
continue;
|
|
736
|
+
}
|
|
737
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
738
|
+
break;
|
|
739
|
+
}
|
|
740
|
+
reader.skipType(tag & 7);
|
|
741
|
+
}
|
|
742
|
+
return message;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export function fromJSON(object: any): Position {
|
|
746
|
+
return {
|
|
747
|
+
index: isSet(object.index) ? Number(object.index) : 0,
|
|
748
|
+
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
749
|
+
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
750
|
+
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
751
|
+
rotationX: isSet(object.rotationX) ? Number(object.rotationX) : 0,
|
|
752
|
+
rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
|
|
753
|
+
rotationZ: isSet(object.rotationZ) ? Number(object.rotationZ) : 0,
|
|
754
|
+
rotationW: isSet(object.rotationW) ? Number(object.rotationW) : 0,
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export function toJSON(message: Position): unknown {
|
|
759
|
+
const obj: any = {};
|
|
760
|
+
message.index !== undefined && (obj.index = Math.round(message.index));
|
|
761
|
+
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
762
|
+
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
763
|
+
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
764
|
+
message.rotationX !== undefined && (obj.rotationX = message.rotationX);
|
|
765
|
+
message.rotationY !== undefined && (obj.rotationY = message.rotationY);
|
|
766
|
+
message.rotationZ !== undefined && (obj.rotationZ = message.rotationZ);
|
|
767
|
+
message.rotationW !== undefined && (obj.rotationW = message.rotationW);
|
|
768
|
+
return obj;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
export function create<I extends Exact<DeepPartial<Position>, I>>(base?: I): Position {
|
|
772
|
+
return Position.fromPartial(base ?? {});
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export function fromPartial<I extends Exact<DeepPartial<Position>, I>>(object: I): Position {
|
|
776
|
+
const message = createBasePosition();
|
|
777
|
+
message.index = object.index ?? 0;
|
|
778
|
+
message.positionX = object.positionX ?? 0;
|
|
779
|
+
message.positionY = object.positionY ?? 0;
|
|
780
|
+
message.positionZ = object.positionZ ?? 0;
|
|
781
|
+
message.rotationX = object.rotationX ?? 0;
|
|
782
|
+
message.rotationY = object.rotationY ?? 0;
|
|
783
|
+
message.rotationZ = object.rotationZ ?? 0;
|
|
784
|
+
message.rotationW = object.rotationW ?? 0;
|
|
785
|
+
return message;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
function createBaseMovement(): Movement {
|
|
790
|
+
return {
|
|
791
|
+
timestamp: 0,
|
|
792
|
+
positionX: 0,
|
|
793
|
+
positionY: 0,
|
|
794
|
+
positionZ: 0,
|
|
795
|
+
velocityX: 0,
|
|
796
|
+
velocityY: 0,
|
|
797
|
+
velocityZ: 0,
|
|
798
|
+
movementBlendValue: 0,
|
|
799
|
+
slideBlendValue: 0,
|
|
800
|
+
isGrounded: false,
|
|
801
|
+
isJumping: false,
|
|
802
|
+
jumpCount: 0,
|
|
803
|
+
isLongJump: false,
|
|
804
|
+
isLongFall: false,
|
|
805
|
+
isFalling: false,
|
|
806
|
+
isStunned: false,
|
|
807
|
+
glideState: 0,
|
|
808
|
+
rotationY: 0,
|
|
809
|
+
isInstant: false,
|
|
810
|
+
isEmoting: false,
|
|
811
|
+
headIkYawEnabled: false,
|
|
812
|
+
headIkPitchEnabled: false,
|
|
813
|
+
headYaw: 0,
|
|
814
|
+
headPitch: 0,
|
|
815
|
+
pointAtX: 0,
|
|
816
|
+
pointAtY: 0,
|
|
817
|
+
pointAtZ: 0,
|
|
818
|
+
isPointingAt: false,
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
export namespace Movement {
|
|
823
|
+
export function encode(message: Movement, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
824
|
+
if (message.timestamp !== 0) {
|
|
825
|
+
writer.uint32(13).float(message.timestamp);
|
|
826
|
+
}
|
|
827
|
+
if (message.positionX !== 0) {
|
|
828
|
+
writer.uint32(21).float(message.positionX);
|
|
829
|
+
}
|
|
830
|
+
if (message.positionY !== 0) {
|
|
831
|
+
writer.uint32(29).float(message.positionY);
|
|
832
|
+
}
|
|
833
|
+
if (message.positionZ !== 0) {
|
|
834
|
+
writer.uint32(37).float(message.positionZ);
|
|
835
|
+
}
|
|
836
|
+
if (message.velocityX !== 0) {
|
|
837
|
+
writer.uint32(45).float(message.velocityX);
|
|
838
|
+
}
|
|
839
|
+
if (message.velocityY !== 0) {
|
|
840
|
+
writer.uint32(53).float(message.velocityY);
|
|
841
|
+
}
|
|
842
|
+
if (message.velocityZ !== 0) {
|
|
843
|
+
writer.uint32(61).float(message.velocityZ);
|
|
844
|
+
}
|
|
845
|
+
if (message.movementBlendValue !== 0) {
|
|
846
|
+
writer.uint32(69).float(message.movementBlendValue);
|
|
847
|
+
}
|
|
848
|
+
if (message.slideBlendValue !== 0) {
|
|
849
|
+
writer.uint32(77).float(message.slideBlendValue);
|
|
850
|
+
}
|
|
851
|
+
if (message.isGrounded === true) {
|
|
852
|
+
writer.uint32(80).bool(message.isGrounded);
|
|
853
|
+
}
|
|
854
|
+
if (message.isJumping === true) {
|
|
855
|
+
writer.uint32(88).bool(message.isJumping);
|
|
856
|
+
}
|
|
857
|
+
if (message.jumpCount !== 0) {
|
|
858
|
+
writer.uint32(192).int32(message.jumpCount);
|
|
859
|
+
}
|
|
860
|
+
if (message.isLongJump === true) {
|
|
861
|
+
writer.uint32(96).bool(message.isLongJump);
|
|
862
|
+
}
|
|
863
|
+
if (message.isLongFall === true) {
|
|
864
|
+
writer.uint32(104).bool(message.isLongFall);
|
|
865
|
+
}
|
|
866
|
+
if (message.isFalling === true) {
|
|
867
|
+
writer.uint32(112).bool(message.isFalling);
|
|
868
|
+
}
|
|
869
|
+
if (message.isStunned === true) {
|
|
870
|
+
writer.uint32(120).bool(message.isStunned);
|
|
871
|
+
}
|
|
872
|
+
if (message.glideState !== 0) {
|
|
873
|
+
writer.uint32(184).int32(message.glideState);
|
|
874
|
+
}
|
|
875
|
+
if (message.rotationY !== 0) {
|
|
876
|
+
writer.uint32(133).float(message.rotationY);
|
|
877
|
+
}
|
|
878
|
+
if (message.isInstant === true) {
|
|
879
|
+
writer.uint32(136).bool(message.isInstant);
|
|
880
|
+
}
|
|
881
|
+
if (message.isEmoting === true) {
|
|
882
|
+
writer.uint32(144).bool(message.isEmoting);
|
|
883
|
+
}
|
|
884
|
+
if (message.headIkYawEnabled === true) {
|
|
885
|
+
writer.uint32(152).bool(message.headIkYawEnabled);
|
|
886
|
+
}
|
|
887
|
+
if (message.headIkPitchEnabled === true) {
|
|
888
|
+
writer.uint32(160).bool(message.headIkPitchEnabled);
|
|
889
|
+
}
|
|
890
|
+
if (message.headYaw !== 0) {
|
|
891
|
+
writer.uint32(173).float(message.headYaw);
|
|
892
|
+
}
|
|
893
|
+
if (message.headPitch !== 0) {
|
|
894
|
+
writer.uint32(181).float(message.headPitch);
|
|
895
|
+
}
|
|
896
|
+
if (message.pointAtX !== 0) {
|
|
897
|
+
writer.uint32(205).float(message.pointAtX);
|
|
898
|
+
}
|
|
899
|
+
if (message.pointAtY !== 0) {
|
|
900
|
+
writer.uint32(213).float(message.pointAtY);
|
|
901
|
+
}
|
|
902
|
+
if (message.pointAtZ !== 0) {
|
|
903
|
+
writer.uint32(221).float(message.pointAtZ);
|
|
904
|
+
}
|
|
905
|
+
if (message.isPointingAt === true) {
|
|
906
|
+
writer.uint32(224).bool(message.isPointingAt);
|
|
907
|
+
}
|
|
908
|
+
return writer;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Movement {
|
|
912
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
913
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
914
|
+
const message = createBaseMovement();
|
|
915
|
+
while (reader.pos < end) {
|
|
916
|
+
const tag = reader.uint32();
|
|
917
|
+
switch (tag >>> 3) {
|
|
918
|
+
case 1:
|
|
919
|
+
if (tag !== 13) {
|
|
920
|
+
break;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
message.timestamp = reader.float();
|
|
924
|
+
continue;
|
|
925
|
+
case 2:
|
|
926
|
+
if (tag !== 21) {
|
|
927
|
+
break;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
message.positionX = reader.float();
|
|
931
|
+
continue;
|
|
932
|
+
case 3:
|
|
933
|
+
if (tag !== 29) {
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
message.positionY = reader.float();
|
|
938
|
+
continue;
|
|
939
|
+
case 4:
|
|
940
|
+
if (tag !== 37) {
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
message.positionZ = reader.float();
|
|
945
|
+
continue;
|
|
946
|
+
case 5:
|
|
947
|
+
if (tag !== 45) {
|
|
948
|
+
break;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
message.velocityX = reader.float();
|
|
952
|
+
continue;
|
|
953
|
+
case 6:
|
|
954
|
+
if (tag !== 53) {
|
|
955
|
+
break;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
message.velocityY = reader.float();
|
|
959
|
+
continue;
|
|
960
|
+
case 7:
|
|
961
|
+
if (tag !== 61) {
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
message.velocityZ = reader.float();
|
|
966
|
+
continue;
|
|
967
|
+
case 8:
|
|
968
|
+
if (tag !== 69) {
|
|
969
|
+
break;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
message.movementBlendValue = reader.float();
|
|
973
|
+
continue;
|
|
974
|
+
case 9:
|
|
975
|
+
if (tag !== 77) {
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
message.slideBlendValue = reader.float();
|
|
980
|
+
continue;
|
|
981
|
+
case 10:
|
|
982
|
+
if (tag !== 80) {
|
|
983
|
+
break;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
message.isGrounded = reader.bool();
|
|
987
|
+
continue;
|
|
988
|
+
case 11:
|
|
989
|
+
if (tag !== 88) {
|
|
990
|
+
break;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
message.isJumping = reader.bool();
|
|
994
|
+
continue;
|
|
995
|
+
case 24:
|
|
996
|
+
if (tag !== 192) {
|
|
997
|
+
break;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
message.jumpCount = reader.int32();
|
|
1001
|
+
continue;
|
|
1002
|
+
case 12:
|
|
1003
|
+
if (tag !== 96) {
|
|
1004
|
+
break;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
message.isLongJump = reader.bool();
|
|
1008
|
+
continue;
|
|
1009
|
+
case 13:
|
|
1010
|
+
if (tag !== 104) {
|
|
1011
|
+
break;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
message.isLongFall = reader.bool();
|
|
1015
|
+
continue;
|
|
1016
|
+
case 14:
|
|
1017
|
+
if (tag !== 112) {
|
|
1018
|
+
break;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
message.isFalling = reader.bool();
|
|
1022
|
+
continue;
|
|
1023
|
+
case 15:
|
|
1024
|
+
if (tag !== 120) {
|
|
1025
|
+
break;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
message.isStunned = reader.bool();
|
|
1029
|
+
continue;
|
|
1030
|
+
case 23:
|
|
1031
|
+
if (tag !== 184) {
|
|
1032
|
+
break;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
message.glideState = reader.int32() as any;
|
|
1036
|
+
continue;
|
|
1037
|
+
case 16:
|
|
1038
|
+
if (tag !== 133) {
|
|
1039
|
+
break;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
message.rotationY = reader.float();
|
|
1043
|
+
continue;
|
|
1044
|
+
case 17:
|
|
1045
|
+
if (tag !== 136) {
|
|
1046
|
+
break;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
message.isInstant = reader.bool();
|
|
1050
|
+
continue;
|
|
1051
|
+
case 18:
|
|
1052
|
+
if (tag !== 144) {
|
|
1053
|
+
break;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
message.isEmoting = reader.bool();
|
|
1057
|
+
continue;
|
|
1058
|
+
case 19:
|
|
1059
|
+
if (tag !== 152) {
|
|
1060
|
+
break;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
message.headIkYawEnabled = reader.bool();
|
|
1064
|
+
continue;
|
|
1065
|
+
case 20:
|
|
1066
|
+
if (tag !== 160) {
|
|
1067
|
+
break;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
message.headIkPitchEnabled = reader.bool();
|
|
1071
|
+
continue;
|
|
1072
|
+
case 21:
|
|
1073
|
+
if (tag !== 173) {
|
|
1074
|
+
break;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
message.headYaw = reader.float();
|
|
1078
|
+
continue;
|
|
1079
|
+
case 22:
|
|
1080
|
+
if (tag !== 181) {
|
|
1081
|
+
break;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
message.headPitch = reader.float();
|
|
1085
|
+
continue;
|
|
1086
|
+
case 25:
|
|
1087
|
+
if (tag !== 205) {
|
|
1088
|
+
break;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
message.pointAtX = reader.float();
|
|
1092
|
+
continue;
|
|
1093
|
+
case 26:
|
|
1094
|
+
if (tag !== 213) {
|
|
1095
|
+
break;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
message.pointAtY = reader.float();
|
|
1099
|
+
continue;
|
|
1100
|
+
case 27:
|
|
1101
|
+
if (tag !== 221) {
|
|
1102
|
+
break;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
message.pointAtZ = reader.float();
|
|
1106
|
+
continue;
|
|
1107
|
+
case 28:
|
|
1108
|
+
if (tag !== 224) {
|
|
1109
|
+
break;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
message.isPointingAt = reader.bool();
|
|
1113
|
+
continue;
|
|
1114
|
+
}
|
|
1115
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1116
|
+
break;
|
|
1117
|
+
}
|
|
1118
|
+
reader.skipType(tag & 7);
|
|
1119
|
+
}
|
|
1120
|
+
return message;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
export function fromJSON(object: any): Movement {
|
|
1124
|
+
return {
|
|
1125
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1126
|
+
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
1127
|
+
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
1128
|
+
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
1129
|
+
velocityX: isSet(object.velocityX) ? Number(object.velocityX) : 0,
|
|
1130
|
+
velocityY: isSet(object.velocityY) ? Number(object.velocityY) : 0,
|
|
1131
|
+
velocityZ: isSet(object.velocityZ) ? Number(object.velocityZ) : 0,
|
|
1132
|
+
movementBlendValue: isSet(object.movementBlendValue) ? Number(object.movementBlendValue) : 0,
|
|
1133
|
+
slideBlendValue: isSet(object.slideBlendValue) ? Number(object.slideBlendValue) : 0,
|
|
1134
|
+
isGrounded: isSet(object.isGrounded) ? Boolean(object.isGrounded) : false,
|
|
1135
|
+
isJumping: isSet(object.isJumping) ? Boolean(object.isJumping) : false,
|
|
1136
|
+
jumpCount: isSet(object.jumpCount) ? Number(object.jumpCount) : 0,
|
|
1137
|
+
isLongJump: isSet(object.isLongJump) ? Boolean(object.isLongJump) : false,
|
|
1138
|
+
isLongFall: isSet(object.isLongFall) ? Boolean(object.isLongFall) : false,
|
|
1139
|
+
isFalling: isSet(object.isFalling) ? Boolean(object.isFalling) : false,
|
|
1140
|
+
isStunned: isSet(object.isStunned) ? Boolean(object.isStunned) : false,
|
|
1141
|
+
glideState: isSet(object.glideState) ? movement_GlideStateFromJSON(object.glideState) : 0,
|
|
1142
|
+
rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
|
|
1143
|
+
isInstant: isSet(object.isInstant) ? Boolean(object.isInstant) : false,
|
|
1144
|
+
isEmoting: isSet(object.isEmoting) ? Boolean(object.isEmoting) : false,
|
|
1145
|
+
headIkYawEnabled: isSet(object.headIkYawEnabled) ? Boolean(object.headIkYawEnabled) : false,
|
|
1146
|
+
headIkPitchEnabled: isSet(object.headIkPitchEnabled) ? Boolean(object.headIkPitchEnabled) : false,
|
|
1147
|
+
headYaw: isSet(object.headYaw) ? Number(object.headYaw) : 0,
|
|
1148
|
+
headPitch: isSet(object.headPitch) ? Number(object.headPitch) : 0,
|
|
1149
|
+
pointAtX: isSet(object.pointAtX) ? Number(object.pointAtX) : 0,
|
|
1150
|
+
pointAtY: isSet(object.pointAtY) ? Number(object.pointAtY) : 0,
|
|
1151
|
+
pointAtZ: isSet(object.pointAtZ) ? Number(object.pointAtZ) : 0,
|
|
1152
|
+
isPointingAt: isSet(object.isPointingAt) ? Boolean(object.isPointingAt) : false,
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
export function toJSON(message: Movement): unknown {
|
|
1157
|
+
const obj: any = {};
|
|
1158
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1159
|
+
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
1160
|
+
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
1161
|
+
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
1162
|
+
message.velocityX !== undefined && (obj.velocityX = message.velocityX);
|
|
1163
|
+
message.velocityY !== undefined && (obj.velocityY = message.velocityY);
|
|
1164
|
+
message.velocityZ !== undefined && (obj.velocityZ = message.velocityZ);
|
|
1165
|
+
message.movementBlendValue !== undefined && (obj.movementBlendValue = message.movementBlendValue);
|
|
1166
|
+
message.slideBlendValue !== undefined && (obj.slideBlendValue = message.slideBlendValue);
|
|
1167
|
+
message.isGrounded !== undefined && (obj.isGrounded = message.isGrounded);
|
|
1168
|
+
message.isJumping !== undefined && (obj.isJumping = message.isJumping);
|
|
1169
|
+
message.jumpCount !== undefined && (obj.jumpCount = Math.round(message.jumpCount));
|
|
1170
|
+
message.isLongJump !== undefined && (obj.isLongJump = message.isLongJump);
|
|
1171
|
+
message.isLongFall !== undefined && (obj.isLongFall = message.isLongFall);
|
|
1172
|
+
message.isFalling !== undefined && (obj.isFalling = message.isFalling);
|
|
1173
|
+
message.isStunned !== undefined && (obj.isStunned = message.isStunned);
|
|
1174
|
+
message.glideState !== undefined && (obj.glideState = movement_GlideStateToJSON(message.glideState));
|
|
1175
|
+
message.rotationY !== undefined && (obj.rotationY = message.rotationY);
|
|
1176
|
+
message.isInstant !== undefined && (obj.isInstant = message.isInstant);
|
|
1177
|
+
message.isEmoting !== undefined && (obj.isEmoting = message.isEmoting);
|
|
1178
|
+
message.headIkYawEnabled !== undefined && (obj.headIkYawEnabled = message.headIkYawEnabled);
|
|
1179
|
+
message.headIkPitchEnabled !== undefined && (obj.headIkPitchEnabled = message.headIkPitchEnabled);
|
|
1180
|
+
message.headYaw !== undefined && (obj.headYaw = message.headYaw);
|
|
1181
|
+
message.headPitch !== undefined && (obj.headPitch = message.headPitch);
|
|
1182
|
+
message.pointAtX !== undefined && (obj.pointAtX = message.pointAtX);
|
|
1183
|
+
message.pointAtY !== undefined && (obj.pointAtY = message.pointAtY);
|
|
1184
|
+
message.pointAtZ !== undefined && (obj.pointAtZ = message.pointAtZ);
|
|
1185
|
+
message.isPointingAt !== undefined && (obj.isPointingAt = message.isPointingAt);
|
|
1186
|
+
return obj;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
export function create<I extends Exact<DeepPartial<Movement>, I>>(base?: I): Movement {
|
|
1190
|
+
return Movement.fromPartial(base ?? {});
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
export function fromPartial<I extends Exact<DeepPartial<Movement>, I>>(object: I): Movement {
|
|
1194
|
+
const message = createBaseMovement();
|
|
1195
|
+
message.timestamp = object.timestamp ?? 0;
|
|
1196
|
+
message.positionX = object.positionX ?? 0;
|
|
1197
|
+
message.positionY = object.positionY ?? 0;
|
|
1198
|
+
message.positionZ = object.positionZ ?? 0;
|
|
1199
|
+
message.velocityX = object.velocityX ?? 0;
|
|
1200
|
+
message.velocityY = object.velocityY ?? 0;
|
|
1201
|
+
message.velocityZ = object.velocityZ ?? 0;
|
|
1202
|
+
message.movementBlendValue = object.movementBlendValue ?? 0;
|
|
1203
|
+
message.slideBlendValue = object.slideBlendValue ?? 0;
|
|
1204
|
+
message.isGrounded = object.isGrounded ?? false;
|
|
1205
|
+
message.isJumping = object.isJumping ?? false;
|
|
1206
|
+
message.jumpCount = object.jumpCount ?? 0;
|
|
1207
|
+
message.isLongJump = object.isLongJump ?? false;
|
|
1208
|
+
message.isLongFall = object.isLongFall ?? false;
|
|
1209
|
+
message.isFalling = object.isFalling ?? false;
|
|
1210
|
+
message.isStunned = object.isStunned ?? false;
|
|
1211
|
+
message.glideState = object.glideState ?? 0;
|
|
1212
|
+
message.rotationY = object.rotationY ?? 0;
|
|
1213
|
+
message.isInstant = object.isInstant ?? false;
|
|
1214
|
+
message.isEmoting = object.isEmoting ?? false;
|
|
1215
|
+
message.headIkYawEnabled = object.headIkYawEnabled ?? false;
|
|
1216
|
+
message.headIkPitchEnabled = object.headIkPitchEnabled ?? false;
|
|
1217
|
+
message.headYaw = object.headYaw ?? 0;
|
|
1218
|
+
message.headPitch = object.headPitch ?? 0;
|
|
1219
|
+
message.pointAtX = object.pointAtX ?? 0;
|
|
1220
|
+
message.pointAtY = object.pointAtY ?? 0;
|
|
1221
|
+
message.pointAtZ = object.pointAtZ ?? 0;
|
|
1222
|
+
message.isPointingAt = object.isPointingAt ?? false;
|
|
1223
|
+
return message;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
function createBaseMovementCompressed(): MovementCompressed {
|
|
1228
|
+
return { temporalData: 0, movementData: 0, headSyncData: 0, pointAtData: 0 };
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
export namespace MovementCompressed {
|
|
1232
|
+
export function encode(message: MovementCompressed, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1233
|
+
if (message.temporalData !== 0) {
|
|
1234
|
+
writer.uint32(8).int32(message.temporalData);
|
|
1235
|
+
}
|
|
1236
|
+
if (message.movementData !== 0) {
|
|
1237
|
+
writer.uint32(16).int64(message.movementData);
|
|
1238
|
+
}
|
|
1239
|
+
if (message.headSyncData !== 0) {
|
|
1240
|
+
writer.uint32(24).int32(message.headSyncData);
|
|
1241
|
+
}
|
|
1242
|
+
if (message.pointAtData !== 0) {
|
|
1243
|
+
writer.uint32(32).int32(message.pointAtData);
|
|
1244
|
+
}
|
|
1245
|
+
return writer;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MovementCompressed {
|
|
1249
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1250
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1251
|
+
const message = createBaseMovementCompressed();
|
|
1252
|
+
while (reader.pos < end) {
|
|
1253
|
+
const tag = reader.uint32();
|
|
1254
|
+
switch (tag >>> 3) {
|
|
1255
|
+
case 1:
|
|
1256
|
+
if (tag !== 8) {
|
|
1257
|
+
break;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
message.temporalData = reader.int32();
|
|
1261
|
+
continue;
|
|
1262
|
+
case 2:
|
|
1263
|
+
if (tag !== 16) {
|
|
1264
|
+
break;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
message.movementData = longToNumber(reader.int64() as Long);
|
|
1268
|
+
continue;
|
|
1269
|
+
case 3:
|
|
1270
|
+
if (tag !== 24) {
|
|
1271
|
+
break;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
message.headSyncData = reader.int32();
|
|
1275
|
+
continue;
|
|
1276
|
+
case 4:
|
|
1277
|
+
if (tag !== 32) {
|
|
1278
|
+
break;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
message.pointAtData = reader.int32();
|
|
1282
|
+
continue;
|
|
1283
|
+
}
|
|
1284
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1285
|
+
break;
|
|
1286
|
+
}
|
|
1287
|
+
reader.skipType(tag & 7);
|
|
1288
|
+
}
|
|
1289
|
+
return message;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
export function fromJSON(object: any): MovementCompressed {
|
|
1293
|
+
return {
|
|
1294
|
+
temporalData: isSet(object.temporalData) ? Number(object.temporalData) : 0,
|
|
1295
|
+
movementData: isSet(object.movementData) ? Number(object.movementData) : 0,
|
|
1296
|
+
headSyncData: isSet(object.headSyncData) ? Number(object.headSyncData) : 0,
|
|
1297
|
+
pointAtData: isSet(object.pointAtData) ? Number(object.pointAtData) : 0,
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
export function toJSON(message: MovementCompressed): unknown {
|
|
1302
|
+
const obj: any = {};
|
|
1303
|
+
message.temporalData !== undefined && (obj.temporalData = Math.round(message.temporalData));
|
|
1304
|
+
message.movementData !== undefined && (obj.movementData = Math.round(message.movementData));
|
|
1305
|
+
message.headSyncData !== undefined && (obj.headSyncData = Math.round(message.headSyncData));
|
|
1306
|
+
message.pointAtData !== undefined && (obj.pointAtData = Math.round(message.pointAtData));
|
|
1307
|
+
return obj;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
export function create<I extends Exact<DeepPartial<MovementCompressed>, I>>(base?: I): MovementCompressed {
|
|
1311
|
+
return MovementCompressed.fromPartial(base ?? {});
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
export function fromPartial<I extends Exact<DeepPartial<MovementCompressed>, I>>(object: I): MovementCompressed {
|
|
1315
|
+
const message = createBaseMovementCompressed();
|
|
1316
|
+
message.temporalData = object.temporalData ?? 0;
|
|
1317
|
+
message.movementData = object.movementData ?? 0;
|
|
1318
|
+
message.headSyncData = object.headSyncData ?? 0;
|
|
1319
|
+
message.pointAtData = object.pointAtData ?? 0;
|
|
1320
|
+
return message;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
function createBasePlayerEmote(): PlayerEmote {
|
|
1325
|
+
return {
|
|
1326
|
+
incrementalId: 0,
|
|
1327
|
+
urn: "",
|
|
1328
|
+
timestamp: 0,
|
|
1329
|
+
isStopping: undefined,
|
|
1330
|
+
isRepeating: undefined,
|
|
1331
|
+
interactionId: undefined,
|
|
1332
|
+
socialEmoteOutcome: undefined,
|
|
1333
|
+
isReacting: undefined,
|
|
1334
|
+
socialEmoteInitiator: undefined,
|
|
1335
|
+
targetAvatar: undefined,
|
|
1336
|
+
mask: undefined,
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
export namespace PlayerEmote {
|
|
1341
|
+
export function encode(message: PlayerEmote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1342
|
+
if (message.incrementalId !== 0) {
|
|
1343
|
+
writer.uint32(8).uint32(message.incrementalId);
|
|
1344
|
+
}
|
|
1345
|
+
if (message.urn !== "") {
|
|
1346
|
+
writer.uint32(18).string(message.urn);
|
|
1347
|
+
}
|
|
1348
|
+
if (message.timestamp !== 0) {
|
|
1349
|
+
writer.uint32(29).float(message.timestamp);
|
|
1350
|
+
}
|
|
1351
|
+
if (message.isStopping !== undefined) {
|
|
1352
|
+
writer.uint32(32).bool(message.isStopping);
|
|
1353
|
+
}
|
|
1354
|
+
if (message.isRepeating !== undefined) {
|
|
1355
|
+
writer.uint32(40).bool(message.isRepeating);
|
|
1356
|
+
}
|
|
1357
|
+
if (message.interactionId !== undefined) {
|
|
1358
|
+
writer.uint32(48).int32(message.interactionId);
|
|
1359
|
+
}
|
|
1360
|
+
if (message.socialEmoteOutcome !== undefined) {
|
|
1361
|
+
writer.uint32(56).int32(message.socialEmoteOutcome);
|
|
1362
|
+
}
|
|
1363
|
+
if (message.isReacting !== undefined) {
|
|
1364
|
+
writer.uint32(64).bool(message.isReacting);
|
|
1365
|
+
}
|
|
1366
|
+
if (message.socialEmoteInitiator !== undefined) {
|
|
1367
|
+
writer.uint32(74).string(message.socialEmoteInitiator);
|
|
1368
|
+
}
|
|
1369
|
+
if (message.targetAvatar !== undefined) {
|
|
1370
|
+
writer.uint32(82).string(message.targetAvatar);
|
|
1371
|
+
}
|
|
1372
|
+
if (message.mask !== undefined) {
|
|
1373
|
+
writer.uint32(88).uint32(message.mask);
|
|
1374
|
+
}
|
|
1375
|
+
return writer;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PlayerEmote {
|
|
1379
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1380
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1381
|
+
const message = createBasePlayerEmote();
|
|
1382
|
+
while (reader.pos < end) {
|
|
1383
|
+
const tag = reader.uint32();
|
|
1384
|
+
switch (tag >>> 3) {
|
|
1385
|
+
case 1:
|
|
1386
|
+
if (tag !== 8) {
|
|
1387
|
+
break;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
message.incrementalId = reader.uint32();
|
|
1391
|
+
continue;
|
|
1392
|
+
case 2:
|
|
1393
|
+
if (tag !== 18) {
|
|
1394
|
+
break;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
message.urn = reader.string();
|
|
1398
|
+
continue;
|
|
1399
|
+
case 3:
|
|
1400
|
+
if (tag !== 29) {
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
message.timestamp = reader.float();
|
|
1405
|
+
continue;
|
|
1406
|
+
case 4:
|
|
1407
|
+
if (tag !== 32) {
|
|
1408
|
+
break;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
message.isStopping = reader.bool();
|
|
1412
|
+
continue;
|
|
1413
|
+
case 5:
|
|
1414
|
+
if (tag !== 40) {
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
message.isRepeating = reader.bool();
|
|
1419
|
+
continue;
|
|
1420
|
+
case 6:
|
|
1421
|
+
if (tag !== 48) {
|
|
1422
|
+
break;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
message.interactionId = reader.int32();
|
|
1426
|
+
continue;
|
|
1427
|
+
case 7:
|
|
1428
|
+
if (tag !== 56) {
|
|
1429
|
+
break;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
message.socialEmoteOutcome = reader.int32();
|
|
1433
|
+
continue;
|
|
1434
|
+
case 8:
|
|
1435
|
+
if (tag !== 64) {
|
|
1436
|
+
break;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
message.isReacting = reader.bool();
|
|
1440
|
+
continue;
|
|
1441
|
+
case 9:
|
|
1442
|
+
if (tag !== 74) {
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
message.socialEmoteInitiator = reader.string();
|
|
1447
|
+
continue;
|
|
1448
|
+
case 10:
|
|
1449
|
+
if (tag !== 82) {
|
|
1450
|
+
break;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
message.targetAvatar = reader.string();
|
|
1454
|
+
continue;
|
|
1455
|
+
case 11:
|
|
1456
|
+
if (tag !== 88) {
|
|
1457
|
+
break;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
message.mask = reader.uint32();
|
|
1461
|
+
continue;
|
|
1462
|
+
}
|
|
1463
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1464
|
+
break;
|
|
1465
|
+
}
|
|
1466
|
+
reader.skipType(tag & 7);
|
|
1467
|
+
}
|
|
1468
|
+
return message;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
export function fromJSON(object: any): PlayerEmote {
|
|
1472
|
+
return {
|
|
1473
|
+
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1474
|
+
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1475
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1476
|
+
isStopping: isSet(object.isStopping) ? Boolean(object.isStopping) : undefined,
|
|
1477
|
+
isRepeating: isSet(object.isRepeating) ? Boolean(object.isRepeating) : undefined,
|
|
1478
|
+
interactionId: isSet(object.interactionId) ? Number(object.interactionId) : undefined,
|
|
1479
|
+
socialEmoteOutcome: isSet(object.socialEmoteOutcome) ? Number(object.socialEmoteOutcome) : undefined,
|
|
1480
|
+
isReacting: isSet(object.isReacting) ? Boolean(object.isReacting) : undefined,
|
|
1481
|
+
socialEmoteInitiator: isSet(object.socialEmoteInitiator) ? String(object.socialEmoteInitiator) : undefined,
|
|
1482
|
+
targetAvatar: isSet(object.targetAvatar) ? String(object.targetAvatar) : undefined,
|
|
1483
|
+
mask: isSet(object.mask) ? Number(object.mask) : undefined,
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
export function toJSON(message: PlayerEmote): unknown {
|
|
1488
|
+
const obj: any = {};
|
|
1489
|
+
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1490
|
+
message.urn !== undefined && (obj.urn = message.urn);
|
|
1491
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1492
|
+
message.isStopping !== undefined && (obj.isStopping = message.isStopping);
|
|
1493
|
+
message.isRepeating !== undefined && (obj.isRepeating = message.isRepeating);
|
|
1494
|
+
message.interactionId !== undefined && (obj.interactionId = Math.round(message.interactionId));
|
|
1495
|
+
message.socialEmoteOutcome !== undefined && (obj.socialEmoteOutcome = Math.round(message.socialEmoteOutcome));
|
|
1496
|
+
message.isReacting !== undefined && (obj.isReacting = message.isReacting);
|
|
1497
|
+
message.socialEmoteInitiator !== undefined && (obj.socialEmoteInitiator = message.socialEmoteInitiator);
|
|
1498
|
+
message.targetAvatar !== undefined && (obj.targetAvatar = message.targetAvatar);
|
|
1499
|
+
message.mask !== undefined && (obj.mask = Math.round(message.mask));
|
|
1500
|
+
return obj;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
export function create<I extends Exact<DeepPartial<PlayerEmote>, I>>(base?: I): PlayerEmote {
|
|
1504
|
+
return PlayerEmote.fromPartial(base ?? {});
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
export function fromPartial<I extends Exact<DeepPartial<PlayerEmote>, I>>(object: I): PlayerEmote {
|
|
1508
|
+
const message = createBasePlayerEmote();
|
|
1509
|
+
message.incrementalId = object.incrementalId ?? 0;
|
|
1510
|
+
message.urn = object.urn ?? "";
|
|
1511
|
+
message.timestamp = object.timestamp ?? 0;
|
|
1512
|
+
message.isStopping = object.isStopping ?? undefined;
|
|
1513
|
+
message.isRepeating = object.isRepeating ?? undefined;
|
|
1514
|
+
message.interactionId = object.interactionId ?? undefined;
|
|
1515
|
+
message.socialEmoteOutcome = object.socialEmoteOutcome ?? undefined;
|
|
1516
|
+
message.isReacting = object.isReacting ?? undefined;
|
|
1517
|
+
message.socialEmoteInitiator = object.socialEmoteInitiator ?? undefined;
|
|
1518
|
+
message.targetAvatar = object.targetAvatar ?? undefined;
|
|
1519
|
+
message.mask = object.mask ?? undefined;
|
|
1520
|
+
return message;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
function createBaseSceneEmote(): SceneEmote {
|
|
1525
|
+
return { sceneEntityId: "", source: "" };
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
export namespace SceneEmote {
|
|
1529
|
+
export function encode(message: SceneEmote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1530
|
+
if (message.sceneEntityId !== "") {
|
|
1531
|
+
writer.uint32(10).string(message.sceneEntityId);
|
|
1532
|
+
}
|
|
1533
|
+
if (message.source !== "") {
|
|
1534
|
+
writer.uint32(18).string(message.source);
|
|
1535
|
+
}
|
|
1536
|
+
return writer;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SceneEmote {
|
|
1540
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1541
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1542
|
+
const message = createBaseSceneEmote();
|
|
1543
|
+
while (reader.pos < end) {
|
|
1544
|
+
const tag = reader.uint32();
|
|
1545
|
+
switch (tag >>> 3) {
|
|
1546
|
+
case 1:
|
|
1547
|
+
if (tag !== 10) {
|
|
1548
|
+
break;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
message.sceneEntityId = reader.string();
|
|
1552
|
+
continue;
|
|
1553
|
+
case 2:
|
|
1554
|
+
if (tag !== 18) {
|
|
1555
|
+
break;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
message.source = reader.string();
|
|
1559
|
+
continue;
|
|
1560
|
+
}
|
|
1561
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1562
|
+
break;
|
|
1563
|
+
}
|
|
1564
|
+
reader.skipType(tag & 7);
|
|
1565
|
+
}
|
|
1566
|
+
return message;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
export function fromJSON(object: any): SceneEmote {
|
|
1570
|
+
return {
|
|
1571
|
+
sceneEntityId: isSet(object.sceneEntityId) ? String(object.sceneEntityId) : "",
|
|
1572
|
+
source: isSet(object.source) ? String(object.source) : "",
|
|
1573
|
+
};
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
export function toJSON(message: SceneEmote): unknown {
|
|
1577
|
+
const obj: any = {};
|
|
1578
|
+
message.sceneEntityId !== undefined && (obj.sceneEntityId = message.sceneEntityId);
|
|
1579
|
+
message.source !== undefined && (obj.source = message.source);
|
|
1580
|
+
return obj;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
export function create<I extends Exact<DeepPartial<SceneEmote>, I>>(base?: I): SceneEmote {
|
|
1584
|
+
return SceneEmote.fromPartial(base ?? {});
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
export function fromPartial<I extends Exact<DeepPartial<SceneEmote>, I>>(object: I): SceneEmote {
|
|
1588
|
+
const message = createBaseSceneEmote();
|
|
1589
|
+
message.sceneEntityId = object.sceneEntityId ?? "";
|
|
1590
|
+
message.source = object.source ?? "";
|
|
1591
|
+
return message;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
function createBaseAnnounceProfileVersion(): AnnounceProfileVersion {
|
|
1596
|
+
return { profileVersion: 0 };
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
export namespace AnnounceProfileVersion {
|
|
1600
|
+
export function encode(message: AnnounceProfileVersion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1601
|
+
if (message.profileVersion !== 0) {
|
|
1602
|
+
writer.uint32(8).uint32(message.profileVersion);
|
|
1603
|
+
}
|
|
1604
|
+
return writer;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): AnnounceProfileVersion {
|
|
1608
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1609
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1610
|
+
const message = createBaseAnnounceProfileVersion();
|
|
1611
|
+
while (reader.pos < end) {
|
|
1612
|
+
const tag = reader.uint32();
|
|
1613
|
+
switch (tag >>> 3) {
|
|
1614
|
+
case 1:
|
|
1615
|
+
if (tag !== 8) {
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
message.profileVersion = reader.uint32();
|
|
1620
|
+
continue;
|
|
1621
|
+
}
|
|
1622
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1623
|
+
break;
|
|
1624
|
+
}
|
|
1625
|
+
reader.skipType(tag & 7);
|
|
1626
|
+
}
|
|
1627
|
+
return message;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
export function fromJSON(object: any): AnnounceProfileVersion {
|
|
1631
|
+
return { profileVersion: isSet(object.profileVersion) ? Number(object.profileVersion) : 0 };
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
export function toJSON(message: AnnounceProfileVersion): unknown {
|
|
1635
|
+
const obj: any = {};
|
|
1636
|
+
message.profileVersion !== undefined && (obj.profileVersion = Math.round(message.profileVersion));
|
|
1637
|
+
return obj;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
export function create<I extends Exact<DeepPartial<AnnounceProfileVersion>, I>>(base?: I): AnnounceProfileVersion {
|
|
1641
|
+
return AnnounceProfileVersion.fromPartial(base ?? {});
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
export function fromPartial<I extends Exact<DeepPartial<AnnounceProfileVersion>, I>>(
|
|
1645
|
+
object: I,
|
|
1646
|
+
): AnnounceProfileVersion {
|
|
1647
|
+
const message = createBaseAnnounceProfileVersion();
|
|
1648
|
+
message.profileVersion = object.profileVersion ?? 0;
|
|
1649
|
+
return message;
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
function createBaseProfileRequest(): ProfileRequest {
|
|
1654
|
+
return { address: "", profileVersion: 0 };
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
export namespace ProfileRequest {
|
|
1658
|
+
export function encode(message: ProfileRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1659
|
+
if (message.address !== "") {
|
|
1660
|
+
writer.uint32(34).string(message.address);
|
|
1661
|
+
}
|
|
1662
|
+
if (message.profileVersion !== 0) {
|
|
1663
|
+
writer.uint32(24).uint32(message.profileVersion);
|
|
1664
|
+
}
|
|
1665
|
+
return writer;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ProfileRequest {
|
|
1669
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1670
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1671
|
+
const message = createBaseProfileRequest();
|
|
1672
|
+
while (reader.pos < end) {
|
|
1673
|
+
const tag = reader.uint32();
|
|
1674
|
+
switch (tag >>> 3) {
|
|
1675
|
+
case 4:
|
|
1676
|
+
if (tag !== 34) {
|
|
1677
|
+
break;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
message.address = reader.string();
|
|
1681
|
+
continue;
|
|
1682
|
+
case 3:
|
|
1683
|
+
if (tag !== 24) {
|
|
1684
|
+
break;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
message.profileVersion = reader.uint32();
|
|
1688
|
+
continue;
|
|
1689
|
+
}
|
|
1690
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1691
|
+
break;
|
|
1692
|
+
}
|
|
1693
|
+
reader.skipType(tag & 7);
|
|
1694
|
+
}
|
|
1695
|
+
return message;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
export function fromJSON(object: any): ProfileRequest {
|
|
1699
|
+
return {
|
|
1700
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
1701
|
+
profileVersion: isSet(object.profileVersion) ? Number(object.profileVersion) : 0,
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
export function toJSON(message: ProfileRequest): unknown {
|
|
1706
|
+
const obj: any = {};
|
|
1707
|
+
message.address !== undefined && (obj.address = message.address);
|
|
1708
|
+
message.profileVersion !== undefined && (obj.profileVersion = Math.round(message.profileVersion));
|
|
1709
|
+
return obj;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
export function create<I extends Exact<DeepPartial<ProfileRequest>, I>>(base?: I): ProfileRequest {
|
|
1713
|
+
return ProfileRequest.fromPartial(base ?? {});
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
export function fromPartial<I extends Exact<DeepPartial<ProfileRequest>, I>>(object: I): ProfileRequest {
|
|
1717
|
+
const message = createBaseProfileRequest();
|
|
1718
|
+
message.address = object.address ?? "";
|
|
1719
|
+
message.profileVersion = object.profileVersion ?? 0;
|
|
1720
|
+
return message;
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
function createBaseProfileResponse(): ProfileResponse {
|
|
1725
|
+
return { serializedProfile: "", baseUrl: "" };
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
export namespace ProfileResponse {
|
|
1729
|
+
export function encode(message: ProfileResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1730
|
+
if (message.serializedProfile !== "") {
|
|
1731
|
+
writer.uint32(10).string(message.serializedProfile);
|
|
1732
|
+
}
|
|
1733
|
+
if (message.baseUrl !== "") {
|
|
1734
|
+
writer.uint32(18).string(message.baseUrl);
|
|
1735
|
+
}
|
|
1736
|
+
return writer;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ProfileResponse {
|
|
1740
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1741
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1742
|
+
const message = createBaseProfileResponse();
|
|
1743
|
+
while (reader.pos < end) {
|
|
1744
|
+
const tag = reader.uint32();
|
|
1745
|
+
switch (tag >>> 3) {
|
|
1746
|
+
case 1:
|
|
1747
|
+
if (tag !== 10) {
|
|
1748
|
+
break;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
message.serializedProfile = reader.string();
|
|
1752
|
+
continue;
|
|
1753
|
+
case 2:
|
|
1754
|
+
if (tag !== 18) {
|
|
1755
|
+
break;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
message.baseUrl = reader.string();
|
|
1759
|
+
continue;
|
|
1760
|
+
}
|
|
1761
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1762
|
+
break;
|
|
1763
|
+
}
|
|
1764
|
+
reader.skipType(tag & 7);
|
|
1765
|
+
}
|
|
1766
|
+
return message;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
export function fromJSON(object: any): ProfileResponse {
|
|
1770
|
+
return {
|
|
1771
|
+
serializedProfile: isSet(object.serializedProfile) ? String(object.serializedProfile) : "",
|
|
1772
|
+
baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : "",
|
|
1773
|
+
};
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
export function toJSON(message: ProfileResponse): unknown {
|
|
1777
|
+
const obj: any = {};
|
|
1778
|
+
message.serializedProfile !== undefined && (obj.serializedProfile = message.serializedProfile);
|
|
1779
|
+
message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl);
|
|
1780
|
+
return obj;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
export function create<I extends Exact<DeepPartial<ProfileResponse>, I>>(base?: I): ProfileResponse {
|
|
1784
|
+
return ProfileResponse.fromPartial(base ?? {});
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
export function fromPartial<I extends Exact<DeepPartial<ProfileResponse>, I>>(object: I): ProfileResponse {
|
|
1788
|
+
const message = createBaseProfileResponse();
|
|
1789
|
+
message.serializedProfile = object.serializedProfile ?? "";
|
|
1790
|
+
message.baseUrl = object.baseUrl ?? "";
|
|
1791
|
+
return message;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
function createBaseChat(): Chat {
|
|
1796
|
+
return { message: "", timestamp: 0, forwardedFrom: undefined };
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
export namespace Chat {
|
|
1800
|
+
export function encode(message: Chat, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1801
|
+
if (message.message !== "") {
|
|
1802
|
+
writer.uint32(10).string(message.message);
|
|
1803
|
+
}
|
|
1804
|
+
if (message.timestamp !== 0) {
|
|
1805
|
+
writer.uint32(17).double(message.timestamp);
|
|
1806
|
+
}
|
|
1807
|
+
if (message.forwardedFrom !== undefined) {
|
|
1808
|
+
writer.uint32(26).string(message.forwardedFrom);
|
|
1809
|
+
}
|
|
1810
|
+
return writer;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Chat {
|
|
1814
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1815
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1816
|
+
const message = createBaseChat();
|
|
1817
|
+
while (reader.pos < end) {
|
|
1818
|
+
const tag = reader.uint32();
|
|
1819
|
+
switch (tag >>> 3) {
|
|
1820
|
+
case 1:
|
|
1821
|
+
if (tag !== 10) {
|
|
1822
|
+
break;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
message.message = reader.string();
|
|
1826
|
+
continue;
|
|
1827
|
+
case 2:
|
|
1828
|
+
if (tag !== 17) {
|
|
1829
|
+
break;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
message.timestamp = reader.double();
|
|
1833
|
+
continue;
|
|
1834
|
+
case 3:
|
|
1835
|
+
if (tag !== 26) {
|
|
1836
|
+
break;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
message.forwardedFrom = reader.string();
|
|
1840
|
+
continue;
|
|
1841
|
+
}
|
|
1842
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1843
|
+
break;
|
|
1844
|
+
}
|
|
1845
|
+
reader.skipType(tag & 7);
|
|
1846
|
+
}
|
|
1847
|
+
return message;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
export function fromJSON(object: any): Chat {
|
|
1851
|
+
return {
|
|
1852
|
+
message: isSet(object.message) ? String(object.message) : "",
|
|
1853
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1854
|
+
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
export function toJSON(message: Chat): unknown {
|
|
1859
|
+
const obj: any = {};
|
|
1860
|
+
message.message !== undefined && (obj.message = message.message);
|
|
1861
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1862
|
+
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1863
|
+
return obj;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
export function create<I extends Exact<DeepPartial<Chat>, I>>(base?: I): Chat {
|
|
1867
|
+
return Chat.fromPartial(base ?? {});
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
export function fromPartial<I extends Exact<DeepPartial<Chat>, I>>(object: I): Chat {
|
|
1871
|
+
const message = createBaseChat();
|
|
1872
|
+
message.message = object.message ?? "";
|
|
1873
|
+
message.timestamp = object.timestamp ?? 0;
|
|
1874
|
+
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1875
|
+
return message;
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
function createBaseScene(): Scene {
|
|
1880
|
+
return { sceneId: "", data: new Uint8Array(0) };
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
export namespace Scene {
|
|
1884
|
+
export function encode(message: Scene, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1885
|
+
if (message.sceneId !== "") {
|
|
1886
|
+
writer.uint32(10).string(message.sceneId);
|
|
1887
|
+
}
|
|
1888
|
+
if (message.data.length !== 0) {
|
|
1889
|
+
writer.uint32(18).bytes(message.data);
|
|
1890
|
+
}
|
|
1891
|
+
return writer;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Scene {
|
|
1895
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1896
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1897
|
+
const message = createBaseScene();
|
|
1898
|
+
while (reader.pos < end) {
|
|
1899
|
+
const tag = reader.uint32();
|
|
1900
|
+
switch (tag >>> 3) {
|
|
1901
|
+
case 1:
|
|
1902
|
+
if (tag !== 10) {
|
|
1903
|
+
break;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
message.sceneId = reader.string();
|
|
1907
|
+
continue;
|
|
1908
|
+
case 2:
|
|
1909
|
+
if (tag !== 18) {
|
|
1910
|
+
break;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
message.data = reader.bytes();
|
|
1914
|
+
continue;
|
|
1915
|
+
}
|
|
1916
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1917
|
+
break;
|
|
1918
|
+
}
|
|
1919
|
+
reader.skipType(tag & 7);
|
|
1920
|
+
}
|
|
1921
|
+
return message;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
export function fromJSON(object: any): Scene {
|
|
1925
|
+
return {
|
|
1926
|
+
sceneId: isSet(object.sceneId) ? String(object.sceneId) : "",
|
|
1927
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
1928
|
+
};
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
export function toJSON(message: Scene): unknown {
|
|
1932
|
+
const obj: any = {};
|
|
1933
|
+
message.sceneId !== undefined && (obj.sceneId = message.sceneId);
|
|
1934
|
+
message.data !== undefined &&
|
|
1935
|
+
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array(0)));
|
|
1936
|
+
return obj;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
export function create<I extends Exact<DeepPartial<Scene>, I>>(base?: I): Scene {
|
|
1940
|
+
return Scene.fromPartial(base ?? {});
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
export function fromPartial<I extends Exact<DeepPartial<Scene>, I>>(object: I): Scene {
|
|
1944
|
+
const message = createBaseScene();
|
|
1945
|
+
message.sceneId = object.sceneId ?? "";
|
|
1946
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
1947
|
+
return message;
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
function createBaseVoice(): Voice {
|
|
1952
|
+
return { encodedSamples: new Uint8Array(0), index: 0, codec: 0 };
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
export namespace Voice {
|
|
1956
|
+
export function encode(message: Voice, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1957
|
+
if (message.encodedSamples.length !== 0) {
|
|
1958
|
+
writer.uint32(10).bytes(message.encodedSamples);
|
|
1959
|
+
}
|
|
1960
|
+
if (message.index !== 0) {
|
|
1961
|
+
writer.uint32(16).uint32(message.index);
|
|
1962
|
+
}
|
|
1963
|
+
if (message.codec !== 0) {
|
|
1964
|
+
writer.uint32(24).int32(message.codec);
|
|
1965
|
+
}
|
|
1966
|
+
return writer;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Voice {
|
|
1970
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1971
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1972
|
+
const message = createBaseVoice();
|
|
1973
|
+
while (reader.pos < end) {
|
|
1974
|
+
const tag = reader.uint32();
|
|
1975
|
+
switch (tag >>> 3) {
|
|
1976
|
+
case 1:
|
|
1977
|
+
if (tag !== 10) {
|
|
1978
|
+
break;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
message.encodedSamples = reader.bytes();
|
|
1982
|
+
continue;
|
|
1983
|
+
case 2:
|
|
1984
|
+
if (tag !== 16) {
|
|
1985
|
+
break;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
message.index = reader.uint32();
|
|
1989
|
+
continue;
|
|
1990
|
+
case 3:
|
|
1991
|
+
if (tag !== 24) {
|
|
1992
|
+
break;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
message.codec = reader.int32() as any;
|
|
1996
|
+
continue;
|
|
1997
|
+
}
|
|
1998
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1999
|
+
break;
|
|
2000
|
+
}
|
|
2001
|
+
reader.skipType(tag & 7);
|
|
2002
|
+
}
|
|
2003
|
+
return message;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
export function fromJSON(object: any): Voice {
|
|
2007
|
+
return {
|
|
2008
|
+
encodedSamples: isSet(object.encodedSamples) ? bytesFromBase64(object.encodedSamples) : new Uint8Array(0),
|
|
2009
|
+
index: isSet(object.index) ? Number(object.index) : 0,
|
|
2010
|
+
codec: isSet(object.codec) ? voice_VoiceCodecFromJSON(object.codec) : 0,
|
|
2011
|
+
};
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
export function toJSON(message: Voice): unknown {
|
|
2015
|
+
const obj: any = {};
|
|
2016
|
+
message.encodedSamples !== undefined &&
|
|
2017
|
+
(obj.encodedSamples = base64FromBytes(
|
|
2018
|
+
message.encodedSamples !== undefined ? message.encodedSamples : new Uint8Array(0),
|
|
2019
|
+
));
|
|
2020
|
+
message.index !== undefined && (obj.index = Math.round(message.index));
|
|
2021
|
+
message.codec !== undefined && (obj.codec = voice_VoiceCodecToJSON(message.codec));
|
|
2022
|
+
return obj;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
export function create<I extends Exact<DeepPartial<Voice>, I>>(base?: I): Voice {
|
|
2026
|
+
return Voice.fromPartial(base ?? {});
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
export function fromPartial<I extends Exact<DeepPartial<Voice>, I>>(object: I): Voice {
|
|
2030
|
+
const message = createBaseVoice();
|
|
2031
|
+
message.encodedSamples = object.encodedSamples ?? new Uint8Array(0);
|
|
2032
|
+
message.index = object.index ?? 0;
|
|
2033
|
+
message.codec = object.codec ?? 0;
|
|
2034
|
+
return message;
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
function createBaseLookAtPosition(): LookAtPosition {
|
|
2039
|
+
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
export namespace LookAtPosition {
|
|
2043
|
+
export function encode(message: LookAtPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2044
|
+
if (message.timestamp !== 0) {
|
|
2045
|
+
writer.uint32(13).float(message.timestamp);
|
|
2046
|
+
}
|
|
2047
|
+
if (message.positionX !== 0) {
|
|
2048
|
+
writer.uint32(21).float(message.positionX);
|
|
2049
|
+
}
|
|
2050
|
+
if (message.positionY !== 0) {
|
|
2051
|
+
writer.uint32(29).float(message.positionY);
|
|
2052
|
+
}
|
|
2053
|
+
if (message.positionZ !== 0) {
|
|
2054
|
+
writer.uint32(37).float(message.positionZ);
|
|
2055
|
+
}
|
|
2056
|
+
if (message.targetAvatarWalletAddress !== "") {
|
|
2057
|
+
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
2058
|
+
}
|
|
2059
|
+
return writer;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): LookAtPosition {
|
|
2063
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2064
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2065
|
+
const message = createBaseLookAtPosition();
|
|
2066
|
+
while (reader.pos < end) {
|
|
2067
|
+
const tag = reader.uint32();
|
|
2068
|
+
switch (tag >>> 3) {
|
|
2069
|
+
case 1:
|
|
2070
|
+
if (tag !== 13) {
|
|
2071
|
+
break;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
message.timestamp = reader.float();
|
|
2075
|
+
continue;
|
|
2076
|
+
case 2:
|
|
2077
|
+
if (tag !== 21) {
|
|
2078
|
+
break;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
message.positionX = reader.float();
|
|
2082
|
+
continue;
|
|
2083
|
+
case 3:
|
|
2084
|
+
if (tag !== 29) {
|
|
2085
|
+
break;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
message.positionY = reader.float();
|
|
2089
|
+
continue;
|
|
2090
|
+
case 4:
|
|
2091
|
+
if (tag !== 37) {
|
|
2092
|
+
break;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
message.positionZ = reader.float();
|
|
2096
|
+
continue;
|
|
2097
|
+
case 5:
|
|
2098
|
+
if (tag !== 42) {
|
|
2099
|
+
break;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
message.targetAvatarWalletAddress = reader.string();
|
|
2103
|
+
continue;
|
|
2104
|
+
}
|
|
2105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2106
|
+
break;
|
|
2107
|
+
}
|
|
2108
|
+
reader.skipType(tag & 7);
|
|
2109
|
+
}
|
|
2110
|
+
return message;
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
export function fromJSON(object: any): LookAtPosition {
|
|
2114
|
+
return {
|
|
2115
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2116
|
+
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
2117
|
+
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
2118
|
+
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
2119
|
+
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
2120
|
+
? String(object.targetAvatarWalletAddress)
|
|
2121
|
+
: "",
|
|
2122
|
+
};
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
export function toJSON(message: LookAtPosition): unknown {
|
|
2126
|
+
const obj: any = {};
|
|
2127
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
2128
|
+
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
2129
|
+
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
2130
|
+
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
2131
|
+
message.targetAvatarWalletAddress !== undefined &&
|
|
2132
|
+
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
2133
|
+
return obj;
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
export function create<I extends Exact<DeepPartial<LookAtPosition>, I>>(base?: I): LookAtPosition {
|
|
2137
|
+
return LookAtPosition.fromPartial(base ?? {});
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
export function fromPartial<I extends Exact<DeepPartial<LookAtPosition>, I>>(object: I): LookAtPosition {
|
|
2141
|
+
const message = createBaseLookAtPosition();
|
|
2142
|
+
message.timestamp = object.timestamp ?? 0;
|
|
2143
|
+
message.positionX = object.positionX ?? 0;
|
|
2144
|
+
message.positionY = object.positionY ?? 0;
|
|
2145
|
+
message.positionZ = object.positionZ ?? 0;
|
|
2146
|
+
message.targetAvatarWalletAddress = object.targetAvatarWalletAddress ?? "";
|
|
2147
|
+
return message;
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
function createBaseReaction(): Reaction {
|
|
2152
|
+
return { emojiIndex: 0, timestamp: 0, count: 0 };
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
export namespace Reaction {
|
|
2156
|
+
export function encode(message: Reaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2157
|
+
if (message.emojiIndex !== 0) {
|
|
2158
|
+
writer.uint32(8).int32(message.emojiIndex);
|
|
2159
|
+
}
|
|
2160
|
+
if (message.timestamp !== 0) {
|
|
2161
|
+
writer.uint32(21).float(message.timestamp);
|
|
2162
|
+
}
|
|
2163
|
+
if (message.count !== 0) {
|
|
2164
|
+
writer.uint32(24).int32(message.count);
|
|
2165
|
+
}
|
|
2166
|
+
return writer;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Reaction {
|
|
2170
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2171
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2172
|
+
const message = createBaseReaction();
|
|
2173
|
+
while (reader.pos < end) {
|
|
2174
|
+
const tag = reader.uint32();
|
|
2175
|
+
switch (tag >>> 3) {
|
|
2176
|
+
case 1:
|
|
2177
|
+
if (tag !== 8) {
|
|
2178
|
+
break;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
message.emojiIndex = reader.int32();
|
|
2182
|
+
continue;
|
|
2183
|
+
case 2:
|
|
2184
|
+
if (tag !== 21) {
|
|
2185
|
+
break;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
message.timestamp = reader.float();
|
|
2189
|
+
continue;
|
|
2190
|
+
case 3:
|
|
2191
|
+
if (tag !== 24) {
|
|
2192
|
+
break;
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
message.count = reader.int32();
|
|
2196
|
+
continue;
|
|
2197
|
+
}
|
|
2198
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2199
|
+
break;
|
|
2200
|
+
}
|
|
2201
|
+
reader.skipType(tag & 7);
|
|
2202
|
+
}
|
|
2203
|
+
return message;
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
export function fromJSON(object: any): Reaction {
|
|
2207
|
+
return {
|
|
2208
|
+
emojiIndex: isSet(object.emojiIndex) ? Number(object.emojiIndex) : 0,
|
|
2209
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2210
|
+
count: isSet(object.count) ? Number(object.count) : 0,
|
|
2211
|
+
};
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
export function toJSON(message: Reaction): unknown {
|
|
2215
|
+
const obj: any = {};
|
|
2216
|
+
message.emojiIndex !== undefined && (obj.emojiIndex = Math.round(message.emojiIndex));
|
|
2217
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
2218
|
+
message.count !== undefined && (obj.count = Math.round(message.count));
|
|
2219
|
+
return obj;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
export function create<I extends Exact<DeepPartial<Reaction>, I>>(base?: I): Reaction {
|
|
2223
|
+
return Reaction.fromPartial(base ?? {});
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
export function fromPartial<I extends Exact<DeepPartial<Reaction>, I>>(object: I): Reaction {
|
|
2227
|
+
const message = createBaseReaction();
|
|
2228
|
+
message.emojiIndex = object.emojiIndex ?? 0;
|
|
2229
|
+
message.timestamp = object.timestamp ?? 0;
|
|
2230
|
+
message.count = object.count ?? 0;
|
|
2231
|
+
return message;
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
function createBaseChatReaction(): ChatReaction {
|
|
2236
|
+
return { emojiIndex: 0, messageId: "", address: "" };
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
export namespace ChatReaction {
|
|
2240
|
+
export function encode(message: ChatReaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2241
|
+
if (message.emojiIndex !== 0) {
|
|
2242
|
+
writer.uint32(8).int32(message.emojiIndex);
|
|
2243
|
+
}
|
|
2244
|
+
if (message.messageId !== "") {
|
|
2245
|
+
writer.uint32(18).string(message.messageId);
|
|
2246
|
+
}
|
|
2247
|
+
if (message.address !== "") {
|
|
2248
|
+
writer.uint32(26).string(message.address);
|
|
2249
|
+
}
|
|
2250
|
+
return writer;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ChatReaction {
|
|
2254
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2255
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2256
|
+
const message = createBaseChatReaction();
|
|
2257
|
+
while (reader.pos < end) {
|
|
2258
|
+
const tag = reader.uint32();
|
|
2259
|
+
switch (tag >>> 3) {
|
|
2260
|
+
case 1:
|
|
2261
|
+
if (tag !== 8) {
|
|
2262
|
+
break;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
message.emojiIndex = reader.int32();
|
|
2266
|
+
continue;
|
|
2267
|
+
case 2:
|
|
2268
|
+
if (tag !== 18) {
|
|
2269
|
+
break;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
message.messageId = reader.string();
|
|
2273
|
+
continue;
|
|
2274
|
+
case 3:
|
|
2275
|
+
if (tag !== 26) {
|
|
2276
|
+
break;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
message.address = reader.string();
|
|
2280
|
+
continue;
|
|
2281
|
+
}
|
|
2282
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2283
|
+
break;
|
|
2284
|
+
}
|
|
2285
|
+
reader.skipType(tag & 7);
|
|
2286
|
+
}
|
|
2287
|
+
return message;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
export function fromJSON(object: any): ChatReaction {
|
|
2291
|
+
return {
|
|
2292
|
+
emojiIndex: isSet(object.emojiIndex) ? Number(object.emojiIndex) : 0,
|
|
2293
|
+
messageId: isSet(object.messageId) ? String(object.messageId) : "",
|
|
2294
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
2295
|
+
};
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
export function toJSON(message: ChatReaction): unknown {
|
|
2299
|
+
const obj: any = {};
|
|
2300
|
+
message.emojiIndex !== undefined && (obj.emojiIndex = Math.round(message.emojiIndex));
|
|
2301
|
+
message.messageId !== undefined && (obj.messageId = message.messageId);
|
|
2302
|
+
message.address !== undefined && (obj.address = message.address);
|
|
2303
|
+
return obj;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
export function create<I extends Exact<DeepPartial<ChatReaction>, I>>(base?: I): ChatReaction {
|
|
2307
|
+
return ChatReaction.fromPartial(base ?? {});
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
export function fromPartial<I extends Exact<DeepPartial<ChatReaction>, I>>(object: I): ChatReaction {
|
|
2311
|
+
const message = createBaseChatReaction();
|
|
2312
|
+
message.emojiIndex = object.emojiIndex ?? 0;
|
|
2313
|
+
message.messageId = object.messageId ?? "";
|
|
2314
|
+
message.address = object.address ?? "";
|
|
2315
|
+
return message;
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
declare const self: any | undefined;
|
|
2320
|
+
declare const window: any | undefined;
|
|
2321
|
+
declare const global: any | undefined;
|
|
2322
|
+
const tsProtoGlobalThis: any = (() => {
|
|
2323
|
+
if (typeof globalThis !== "undefined") {
|
|
2324
|
+
return globalThis;
|
|
2325
|
+
}
|
|
2326
|
+
if (typeof self !== "undefined") {
|
|
2327
|
+
return self;
|
|
2328
|
+
}
|
|
2329
|
+
if (typeof window !== "undefined") {
|
|
2330
|
+
return window;
|
|
2331
|
+
}
|
|
2332
|
+
if (typeof global !== "undefined") {
|
|
2333
|
+
return global;
|
|
2334
|
+
}
|
|
2335
|
+
throw "Unable to locate global object";
|
|
2336
|
+
})();
|
|
2337
|
+
|
|
2338
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
2339
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
2340
|
+
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
2341
|
+
} else {
|
|
2342
|
+
const bin = tsProtoGlobalThis.atob(b64);
|
|
2343
|
+
const arr = new Uint8Array(bin.length);
|
|
2344
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
2345
|
+
arr[i] = bin.charCodeAt(i);
|
|
2346
|
+
}
|
|
2347
|
+
return arr;
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
2352
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
2353
|
+
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
2354
|
+
} else {
|
|
2355
|
+
const bin: string[] = [];
|
|
2356
|
+
arr.forEach((byte) => {
|
|
2357
|
+
bin.push(String.fromCharCode(byte));
|
|
2358
|
+
});
|
|
2359
|
+
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2364
|
+
|
|
2365
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
2366
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
2367
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
2368
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
2369
|
+
: Partial<T>;
|
|
2370
|
+
|
|
2371
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2372
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
2373
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
2374
|
+
|
|
2375
|
+
function longToNumber(long: Long): number {
|
|
2376
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
2377
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2378
|
+
}
|
|
2379
|
+
return long.toNumber();
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
if (_m0.util.Long !== Long) {
|
|
2383
|
+
_m0.util.Long = Long as any;
|
|
2384
|
+
_m0.configure();
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
function isSet(value: any): boolean {
|
|
2388
|
+
return value !== null && value !== undefined;
|
|
2389
|
+
}
|