@dcl/protocol 1.0.0-10043247792.commit-428d1eb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +69 -0
- package/out-js/about.gen.d.ts +1 -0
- package/out-js/about.gen.js +6 -0
- package/out-js/about.gen.js.map +1 -0
- package/out-js/comms.gen.d.ts +1 -0
- package/out-js/comms.gen.js +6 -0
- package/out-js/comms.gen.js.map +1 -0
- package/out-js/decentraland/common/border_rect.gen.d.ts +49 -0
- package/out-js/decentraland/common/border_rect.gen.js +201 -0
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
- package/out-js/decentraland/common/colors.gen.d.ts +46 -0
- package/out-js/decentraland/common/colors.gen.js +189 -0
- package/out-js/decentraland/common/colors.gen.js.map +1 -0
- package/out-js/decentraland/common/content_mapping.gen.d.ts +31 -0
- package/out-js/decentraland/common/content_mapping.gen.js +80 -0
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -0
- package/out-js/decentraland/common/sdk/user_data.gen.d.ts +63 -0
- package/out-js/decentraland/common/sdk/user_data.gen.js +330 -0
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -0
- package/out-js/decentraland/common/texture.gen.d.ts +100 -0
- package/out-js/decentraland/common/texture.gen.js +446 -0
- package/out-js/decentraland/common/texture.gen.js.map +1 -0
- package/out-js/decentraland/common/vectors.gen.d.ts +71 -0
- package/out-js/decentraland/common/vectors.gen.js +338 -0
- package/out-js/decentraland/common/vectors.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +76 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +257 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +89 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +301 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +58 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +142 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +338 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +1452 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +283 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +1122 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +225 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +878 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +146 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +557 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +100 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js +360 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/players.gen.d.ts +127 -0
- package/out-js/decentraland/kernel/apis/players.gen.js +372 -0
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +178 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +607 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +244 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +824 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +217 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.js +801 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/scene.gen.d.ts +59 -0
- package/out-js/decentraland/kernel/apis/scene.gen.js +171 -0
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +139 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +615 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +72 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.js +207 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/testing.gen.d.ts +249 -0
- package/out-js/decentraland/kernel/apis/testing.gen.js +1073 -0
- package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +56 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js +128 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +86 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.js +236 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +213 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1282 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +183 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +906 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +224 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1204 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -0
- package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
- package/out-js/decentraland/quests/definitions.gen.js +2728 -0
- package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
- package/out-js/decentraland/realm/about.gen.d.ts +150 -0
- package/out-js/decentraland/realm/about.gen.js +914 -0
- package/out-js/decentraland/realm/about.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +62 -0
- package/out-js/decentraland/sdk/components/animator.gen.js +192 -0
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +61 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js +151 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +95 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +76 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +262 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +95 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +60 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +153 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +72 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +251 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +54 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js +128 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +70 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +85 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +10 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +46 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +157 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js +95 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +106 -0
- package/out-js/decentraland/sdk/components/material.gen.js +515 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +128 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +469 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +79 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +247 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js +131 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +81 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +125 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +598 -0
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +204 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1210 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +138 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +31 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +69 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
- package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +500 -0
- package/out-js/decentraland/social/friendships/friendships.gen.js +2517 -0
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.d.ts +357 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.js +1554 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
- package/out-js/google/protobuf/descriptor.gen.js +3173 -0
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
- package/out-js/google/protobuf/empty.gen.d.ts +38 -0
- package/out-js/google/protobuf/empty.gen.js +54 -0
- package/out-js/google/protobuf/empty.gen.js.map +1 -0
- package/out-js/quests.gen.d.ts +1 -0
- package/out-js/quests.gen.js +6 -0
- package/out-js/quests.gen.js.map +1 -0
- package/out-js/sdk-apis.gen.d.ts +1 -0
- package/out-js/sdk-apis.gen.js +6 -0
- package/out-js/sdk-apis.gen.js.map +1 -0
- package/out-js/sdk-components.gen.d.ts +1 -0
- package/out-js/sdk-components.gen.js +6 -0
- package/out-js/sdk-components.gen.js.map +1 -0
- package/out-js/sdk-development.gen.d.ts +1 -0
- package/out-js/sdk-development.gen.js +6 -0
- package/out-js/sdk-development.gen.js.map +1 -0
- package/out-js/social.gen.d.ts +1 -0
- package/out-js/social.gen.js +6 -0
- package/out-js/social.gen.js.map +1 -0
- package/out-js/social_service_v2.gen.d.ts +1 -0
- package/out-js/social_service_v2.gen.js +6 -0
- package/out-js/social_service_v2.gen.js.map +1 -0
- package/out-ts/about.gen.ts +3 -0
- package/out-ts/comms.gen.ts +3 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
- package/out-ts/decentraland/common/colors.gen.ts +214 -0
- package/out-ts/decentraland/common/content_mapping.gen.ts +93 -0
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +370 -0
- package/out-ts/decentraland/common/texture.gen.ts +500 -0
- package/out-ts/decentraland/common/vectors.gen.ts +377 -0
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +295 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +327 -0
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +161 -0
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +1587 -0
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +1264 -0
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +982 -0
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +608 -0
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +397 -0
- package/out-ts/decentraland/kernel/apis/players.gen.ts +415 -0
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +668 -0
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +895 -0
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +911 -0
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +691 -0
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +230 -0
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +146 -0
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +264 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +1440 -0
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +1029 -0
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1338 -0
- package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
- package/out-ts/decentraland/realm/about.gen.ts +1062 -0
- package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +122 -0
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
- package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
- package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +188 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +333 -0
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +148 -0
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +86 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
- package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +154 -0
- package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +119 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +629 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +534 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
- package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +310 -0
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
- package/out-ts/decentraland/sdk/components/realm_info.gen.ts +152 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +648 -0
- package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +231 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1361 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +173 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +83 -0
- package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +2798 -0
- package/out-ts/decentraland/social_service_v2/social_service.gen.ts +1709 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +3470 -0
- package/out-ts/google/protobuf/empty.gen.ts +72 -0
- package/out-ts/quests.gen.ts +3 -0
- package/out-ts/sdk-apis.gen.ts +3 -0
- package/out-ts/sdk-components.gen.ts +3 -0
- package/out-ts/sdk-development.gen.ts +3 -0
- package/out-ts/social.gen.ts +3 -0
- package/out-ts/social_service_v2.gen.ts +3 -0
- package/package.json +33 -0
- package/proto/buf.yaml +47 -0
- package/proto/decentraland/common/border_rect.proto +18 -0
- package/proto/decentraland/common/colors.proto +15 -0
- package/proto/decentraland/common/content_mapping.proto +7 -0
- package/proto/decentraland/common/entity.proto +13 -0
- package/proto/decentraland/common/sdk/user_data.proto +25 -0
- package/proto/decentraland/common/texture.proto +40 -0
- package/proto/decentraland/common/vectors.proto +26 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +25 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +23 -0
- package/proto/decentraland/kernel/apis/dev_tools.proto +15 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
- package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
- package/proto/decentraland/kernel/apis/ethereum_controller.proto +64 -0
- package/proto/decentraland/kernel/apis/parcel_identity.proto +43 -0
- package/proto/decentraland/kernel/apis/permissions.proto +36 -0
- package/proto/decentraland/kernel/apis/players.proto +35 -0
- package/proto/decentraland/kernel/apis/portable_experiences.proto +55 -0
- package/proto/decentraland/kernel/apis/restricted_actions.proto +78 -0
- package/proto/decentraland/kernel/apis/runtime.proto +71 -0
- package/proto/decentraland/kernel/apis/scene.proto +16 -0
- package/proto/decentraland/kernel/apis/signed_fetch.proto +33 -0
- package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
- package/proto/decentraland/kernel/apis/testing.proto +100 -0
- package/proto/decentraland/kernel/apis/user_action_module.proto +13 -0
- package/proto/decentraland/kernel/apis/user_identity.proto +22 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +110 -0
- package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +104 -0
- package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
- package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
- package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
- package/proto/decentraland/kernel/comms/v3/archipelago.proto +86 -0
- package/proto/decentraland/kernel/comms/v3/comms.proto +64 -0
- package/proto/decentraland/quests/definitions.proto +185 -0
- package/proto/decentraland/realm/about.proto +73 -0
- package/proto/decentraland/sdk/components/README.md +32 -0
- package/proto/decentraland/sdk/components/Transform.md +25 -0
- package/proto/decentraland/sdk/components/animator.proto +31 -0
- package/proto/decentraland/sdk/components/audio_event.proto +12 -0
- package/proto/decentraland/sdk/components/audio_source.proto +31 -0
- package/proto/decentraland/sdk/components/audio_stream.proto +14 -0
- package/proto/decentraland/sdk/components/avatar_attach.proto +51 -0
- package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
- package/proto/decentraland/sdk/components/avatar_emote_command.proto +13 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +32 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +42 -0
- package/proto/decentraland/sdk/components/billboard.proto +29 -0
- package/proto/decentraland/sdk/components/camera_mode.proto +12 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +25 -0
- package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
- package/proto/decentraland/sdk/components/common/id.md +2 -0
- package/proto/decentraland/sdk/components/common/id.proto +8 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +28 -0
- package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
- package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
- package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
- package/proto/decentraland/sdk/components/common/texts.proto +21 -0
- package/proto/decentraland/sdk/components/engine_info.proto +15 -0
- package/proto/decentraland/sdk/components/gltf_container.proto +19 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/material.proto +57 -0
- package/proto/decentraland/sdk/components/mesh_collider.proto +62 -0
- package/proto/decentraland/sdk/components/mesh_renderer.proto +43 -0
- package/proto/decentraland/sdk/components/nft_shape.proto +48 -0
- package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +37 -0
- package/proto/decentraland/sdk/components/pointer_events_result.proto +19 -0
- package/proto/decentraland/sdk/components/pointer_lock.proto +11 -0
- package/proto/decentraland/sdk/components/raycast.proto +58 -0
- package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
- package/proto/decentraland/sdk/components/realm_info.proto +14 -0
- package/proto/decentraland/sdk/components/text_shape.proto +45 -0
- package/proto/decentraland/sdk/components/tween.proto +74 -0
- package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
- package/proto/decentraland/sdk/components/tween_state.proto +18 -0
- package/proto/decentraland/sdk/components/ui_background.proto +34 -0
- package/proto/decentraland/sdk/components/ui_canvas_information.proto +24 -0
- package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
- package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
- package/proto/decentraland/sdk/components/ui_input.proto +20 -0
- package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +26 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +148 -0
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/sdk/components/video_player.proto +16 -0
- package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
- package/proto/decentraland/sdk/development/local_development.proto +29 -0
- package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
- package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
- package/proto/decentraland/social/friendships/friendships.proto +162 -0
- package/proto/decentraland/social_service_v2/social_service.proto +111 -0
- package/proto/google/LICENSE +27 -0
- package/proto/google/README.md +1 -0
- package/proto/google/api/annotations.json +83 -0
- package/proto/google/api/annotations.proto +11 -0
- package/proto/google/api/http.json +86 -0
- package/proto/google/api/http.proto +31 -0
- package/proto/google/protobuf/api.json +118 -0
- package/proto/google/protobuf/api.proto +34 -0
- package/proto/google/protobuf/descriptor.json +739 -0
- package/proto/google/protobuf/descriptor.proto +286 -0
- package/proto/google/protobuf/source_context.json +20 -0
- package/proto/google/protobuf/source_context.proto +7 -0
- package/proto/google/protobuf/type.json +202 -0
- package/proto/google/protobuf/type.proto +89 -0
- package/public/about.proto +5 -0
- package/public/comms.proto +5 -0
- package/public/quests.proto +5 -0
- package/public/sdk-apis.proto +25 -0
- package/public/sdk-components.proto +42 -0
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +4 -0
- package/public/social_service_v2.proto +4 -0
|
@@ -0,0 +1,1452 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.EngineApiServiceDefinition = exports.IsServerResponse = exports.IsServerRequest = exports.CrdtMessageFromRendererResponse = exports.CrdtMessageFromRendererRequest = exports.CrdtGetStateResponse = exports.CrdtGetStateRequest = exports.CrdtSendToResponse = exports.CrdtSendToRendererRequest = exports.EventData = exports.RotationChangedPayload = exports.PositionChangedPayload = exports.ReadOnlyQuaternion = exports.ReadOnlyVector3 = exports.GenericPayload = exports.UnsubscribeResponse = exports.SubscribeResponse = exports.SubscribeRequest = exports.UnsubscribeRequest = exports.SendBatchResponse = exports.ManyEntityAction = exports.EventDataType = exports.protobufPackage = void 0;
|
|
7
|
+
exports.eventDataTypeFromJSON = eventDataTypeFromJSON;
|
|
8
|
+
exports.eventDataTypeToJSON = eventDataTypeToJSON;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
11
|
+
const engine_interface_ecs6_gen_1 = require("../../sdk/ecs6/engine_interface_ecs6.gen");
|
|
12
|
+
exports.protobufPackage = "decentraland.kernel.apis";
|
|
13
|
+
/** Events */
|
|
14
|
+
var EventDataType;
|
|
15
|
+
(function (EventDataType) {
|
|
16
|
+
EventDataType[EventDataType["EDT_GENERIC"] = 0] = "EDT_GENERIC";
|
|
17
|
+
EventDataType[EventDataType["EDT_POSITION_CHANGED"] = 1] = "EDT_POSITION_CHANGED";
|
|
18
|
+
EventDataType[EventDataType["EDT_ROTATION_CHANGED"] = 2] = "EDT_ROTATION_CHANGED";
|
|
19
|
+
EventDataType[EventDataType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
20
|
+
})(EventDataType || (exports.EventDataType = EventDataType = {}));
|
|
21
|
+
function eventDataTypeFromJSON(object) {
|
|
22
|
+
switch (object) {
|
|
23
|
+
case 0:
|
|
24
|
+
case "EDT_GENERIC":
|
|
25
|
+
return EventDataType.EDT_GENERIC;
|
|
26
|
+
case 1:
|
|
27
|
+
case "EDT_POSITION_CHANGED":
|
|
28
|
+
return EventDataType.EDT_POSITION_CHANGED;
|
|
29
|
+
case 2:
|
|
30
|
+
case "EDT_ROTATION_CHANGED":
|
|
31
|
+
return EventDataType.EDT_ROTATION_CHANGED;
|
|
32
|
+
case -1:
|
|
33
|
+
case "UNRECOGNIZED":
|
|
34
|
+
default:
|
|
35
|
+
return EventDataType.UNRECOGNIZED;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function eventDataTypeToJSON(object) {
|
|
39
|
+
switch (object) {
|
|
40
|
+
case EventDataType.EDT_GENERIC:
|
|
41
|
+
return "EDT_GENERIC";
|
|
42
|
+
case EventDataType.EDT_POSITION_CHANGED:
|
|
43
|
+
return "EDT_POSITION_CHANGED";
|
|
44
|
+
case EventDataType.EDT_ROTATION_CHANGED:
|
|
45
|
+
return "EDT_ROTATION_CHANGED";
|
|
46
|
+
case EventDataType.UNRECOGNIZED:
|
|
47
|
+
default:
|
|
48
|
+
return "UNRECOGNIZED";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function createBaseManyEntityAction() {
|
|
52
|
+
return { actions: [] };
|
|
53
|
+
}
|
|
54
|
+
var ManyEntityAction;
|
|
55
|
+
(function (ManyEntityAction) {
|
|
56
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
for (const v of message.actions) {
|
|
58
|
+
engine_interface_ecs6_gen_1.EntityAction.encode(v, writer.uint32(10).fork()).ldelim();
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
}
|
|
62
|
+
ManyEntityAction.encode = encode;
|
|
63
|
+
function decode(input, length) {
|
|
64
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
65
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
66
|
+
const message = createBaseManyEntityAction();
|
|
67
|
+
while (reader.pos < end) {
|
|
68
|
+
const tag = reader.uint32();
|
|
69
|
+
switch (tag >>> 3) {
|
|
70
|
+
case 1:
|
|
71
|
+
if (tag !== 10) {
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
message.actions.push(engine_interface_ecs6_gen_1.EntityAction.decode(reader, reader.uint32()));
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
reader.skipType(tag & 7);
|
|
81
|
+
}
|
|
82
|
+
return message;
|
|
83
|
+
}
|
|
84
|
+
ManyEntityAction.decode = decode;
|
|
85
|
+
function fromJSON(object) {
|
|
86
|
+
return { actions: Array.isArray(object === null || object === void 0 ? void 0 : object.actions) ? object.actions.map((e) => engine_interface_ecs6_gen_1.EntityAction.fromJSON(e)) : [] };
|
|
87
|
+
}
|
|
88
|
+
ManyEntityAction.fromJSON = fromJSON;
|
|
89
|
+
function toJSON(message) {
|
|
90
|
+
const obj = {};
|
|
91
|
+
if (message.actions) {
|
|
92
|
+
obj.actions = message.actions.map((e) => e ? engine_interface_ecs6_gen_1.EntityAction.toJSON(e) : undefined);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
obj.actions = [];
|
|
96
|
+
}
|
|
97
|
+
return obj;
|
|
98
|
+
}
|
|
99
|
+
ManyEntityAction.toJSON = toJSON;
|
|
100
|
+
function create(base) {
|
|
101
|
+
return ManyEntityAction.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
102
|
+
}
|
|
103
|
+
ManyEntityAction.create = create;
|
|
104
|
+
function fromPartial(object) {
|
|
105
|
+
var _a;
|
|
106
|
+
const message = createBaseManyEntityAction();
|
|
107
|
+
message.actions = ((_a = object.actions) === null || _a === void 0 ? void 0 : _a.map((e) => engine_interface_ecs6_gen_1.EntityAction.fromPartial(e))) || [];
|
|
108
|
+
return message;
|
|
109
|
+
}
|
|
110
|
+
ManyEntityAction.fromPartial = fromPartial;
|
|
111
|
+
})(ManyEntityAction || (exports.ManyEntityAction = ManyEntityAction = {}));
|
|
112
|
+
function createBaseSendBatchResponse() {
|
|
113
|
+
return { events: [] };
|
|
114
|
+
}
|
|
115
|
+
var SendBatchResponse;
|
|
116
|
+
(function (SendBatchResponse) {
|
|
117
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
118
|
+
for (const v of message.events) {
|
|
119
|
+
EventData.encode(v, writer.uint32(10).fork()).ldelim();
|
|
120
|
+
}
|
|
121
|
+
return writer;
|
|
122
|
+
}
|
|
123
|
+
SendBatchResponse.encode = encode;
|
|
124
|
+
function decode(input, length) {
|
|
125
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
126
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
+
const message = createBaseSendBatchResponse();
|
|
128
|
+
while (reader.pos < end) {
|
|
129
|
+
const tag = reader.uint32();
|
|
130
|
+
switch (tag >>> 3) {
|
|
131
|
+
case 1:
|
|
132
|
+
if (tag !== 10) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.events.push(EventData.decode(reader, reader.uint32()));
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
reader.skipType(tag & 7);
|
|
142
|
+
}
|
|
143
|
+
return message;
|
|
144
|
+
}
|
|
145
|
+
SendBatchResponse.decode = decode;
|
|
146
|
+
function fromJSON(object) {
|
|
147
|
+
return { events: Array.isArray(object === null || object === void 0 ? void 0 : object.events) ? object.events.map((e) => EventData.fromJSON(e)) : [] };
|
|
148
|
+
}
|
|
149
|
+
SendBatchResponse.fromJSON = fromJSON;
|
|
150
|
+
function toJSON(message) {
|
|
151
|
+
const obj = {};
|
|
152
|
+
if (message.events) {
|
|
153
|
+
obj.events = message.events.map((e) => e ? EventData.toJSON(e) : undefined);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
obj.events = [];
|
|
157
|
+
}
|
|
158
|
+
return obj;
|
|
159
|
+
}
|
|
160
|
+
SendBatchResponse.toJSON = toJSON;
|
|
161
|
+
function create(base) {
|
|
162
|
+
return SendBatchResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
163
|
+
}
|
|
164
|
+
SendBatchResponse.create = create;
|
|
165
|
+
function fromPartial(object) {
|
|
166
|
+
var _a;
|
|
167
|
+
const message = createBaseSendBatchResponse();
|
|
168
|
+
message.events = ((_a = object.events) === null || _a === void 0 ? void 0 : _a.map((e) => EventData.fromPartial(e))) || [];
|
|
169
|
+
return message;
|
|
170
|
+
}
|
|
171
|
+
SendBatchResponse.fromPartial = fromPartial;
|
|
172
|
+
})(SendBatchResponse || (exports.SendBatchResponse = SendBatchResponse = {}));
|
|
173
|
+
function createBaseUnsubscribeRequest() {
|
|
174
|
+
return { eventId: "" };
|
|
175
|
+
}
|
|
176
|
+
var UnsubscribeRequest;
|
|
177
|
+
(function (UnsubscribeRequest) {
|
|
178
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
179
|
+
if (message.eventId !== "") {
|
|
180
|
+
writer.uint32(10).string(message.eventId);
|
|
181
|
+
}
|
|
182
|
+
return writer;
|
|
183
|
+
}
|
|
184
|
+
UnsubscribeRequest.encode = encode;
|
|
185
|
+
function decode(input, length) {
|
|
186
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
187
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBaseUnsubscribeRequest();
|
|
189
|
+
while (reader.pos < end) {
|
|
190
|
+
const tag = reader.uint32();
|
|
191
|
+
switch (tag >>> 3) {
|
|
192
|
+
case 1:
|
|
193
|
+
if (tag !== 10) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
message.eventId = reader.string();
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
reader.skipType(tag & 7);
|
|
203
|
+
}
|
|
204
|
+
return message;
|
|
205
|
+
}
|
|
206
|
+
UnsubscribeRequest.decode = decode;
|
|
207
|
+
function fromJSON(object) {
|
|
208
|
+
return { eventId: isSet(object.eventId) ? String(object.eventId) : "" };
|
|
209
|
+
}
|
|
210
|
+
UnsubscribeRequest.fromJSON = fromJSON;
|
|
211
|
+
function toJSON(message) {
|
|
212
|
+
const obj = {};
|
|
213
|
+
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
214
|
+
return obj;
|
|
215
|
+
}
|
|
216
|
+
UnsubscribeRequest.toJSON = toJSON;
|
|
217
|
+
function create(base) {
|
|
218
|
+
return UnsubscribeRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
219
|
+
}
|
|
220
|
+
UnsubscribeRequest.create = create;
|
|
221
|
+
function fromPartial(object) {
|
|
222
|
+
var _a;
|
|
223
|
+
const message = createBaseUnsubscribeRequest();
|
|
224
|
+
message.eventId = (_a = object.eventId) !== null && _a !== void 0 ? _a : "";
|
|
225
|
+
return message;
|
|
226
|
+
}
|
|
227
|
+
UnsubscribeRequest.fromPartial = fromPartial;
|
|
228
|
+
})(UnsubscribeRequest || (exports.UnsubscribeRequest = UnsubscribeRequest = {}));
|
|
229
|
+
function createBaseSubscribeRequest() {
|
|
230
|
+
return { eventId: "" };
|
|
231
|
+
}
|
|
232
|
+
var SubscribeRequest;
|
|
233
|
+
(function (SubscribeRequest) {
|
|
234
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
235
|
+
if (message.eventId !== "") {
|
|
236
|
+
writer.uint32(10).string(message.eventId);
|
|
237
|
+
}
|
|
238
|
+
return writer;
|
|
239
|
+
}
|
|
240
|
+
SubscribeRequest.encode = encode;
|
|
241
|
+
function decode(input, length) {
|
|
242
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
243
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
244
|
+
const message = createBaseSubscribeRequest();
|
|
245
|
+
while (reader.pos < end) {
|
|
246
|
+
const tag = reader.uint32();
|
|
247
|
+
switch (tag >>> 3) {
|
|
248
|
+
case 1:
|
|
249
|
+
if (tag !== 10) {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
message.eventId = reader.string();
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
reader.skipType(tag & 7);
|
|
259
|
+
}
|
|
260
|
+
return message;
|
|
261
|
+
}
|
|
262
|
+
SubscribeRequest.decode = decode;
|
|
263
|
+
function fromJSON(object) {
|
|
264
|
+
return { eventId: isSet(object.eventId) ? String(object.eventId) : "" };
|
|
265
|
+
}
|
|
266
|
+
SubscribeRequest.fromJSON = fromJSON;
|
|
267
|
+
function toJSON(message) {
|
|
268
|
+
const obj = {};
|
|
269
|
+
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
270
|
+
return obj;
|
|
271
|
+
}
|
|
272
|
+
SubscribeRequest.toJSON = toJSON;
|
|
273
|
+
function create(base) {
|
|
274
|
+
return SubscribeRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
275
|
+
}
|
|
276
|
+
SubscribeRequest.create = create;
|
|
277
|
+
function fromPartial(object) {
|
|
278
|
+
var _a;
|
|
279
|
+
const message = createBaseSubscribeRequest();
|
|
280
|
+
message.eventId = (_a = object.eventId) !== null && _a !== void 0 ? _a : "";
|
|
281
|
+
return message;
|
|
282
|
+
}
|
|
283
|
+
SubscribeRequest.fromPartial = fromPartial;
|
|
284
|
+
})(SubscribeRequest || (exports.SubscribeRequest = SubscribeRequest = {}));
|
|
285
|
+
function createBaseSubscribeResponse() {
|
|
286
|
+
return {};
|
|
287
|
+
}
|
|
288
|
+
var SubscribeResponse;
|
|
289
|
+
(function (SubscribeResponse) {
|
|
290
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
291
|
+
return writer;
|
|
292
|
+
}
|
|
293
|
+
SubscribeResponse.encode = encode;
|
|
294
|
+
function decode(input, length) {
|
|
295
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
296
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
297
|
+
const message = createBaseSubscribeResponse();
|
|
298
|
+
while (reader.pos < end) {
|
|
299
|
+
const tag = reader.uint32();
|
|
300
|
+
switch (tag >>> 3) {
|
|
301
|
+
}
|
|
302
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
reader.skipType(tag & 7);
|
|
306
|
+
}
|
|
307
|
+
return message;
|
|
308
|
+
}
|
|
309
|
+
SubscribeResponse.decode = decode;
|
|
310
|
+
function fromJSON(_) {
|
|
311
|
+
return {};
|
|
312
|
+
}
|
|
313
|
+
SubscribeResponse.fromJSON = fromJSON;
|
|
314
|
+
function toJSON(_) {
|
|
315
|
+
const obj = {};
|
|
316
|
+
return obj;
|
|
317
|
+
}
|
|
318
|
+
SubscribeResponse.toJSON = toJSON;
|
|
319
|
+
function create(base) {
|
|
320
|
+
return SubscribeResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
321
|
+
}
|
|
322
|
+
SubscribeResponse.create = create;
|
|
323
|
+
function fromPartial(_) {
|
|
324
|
+
const message = createBaseSubscribeResponse();
|
|
325
|
+
return message;
|
|
326
|
+
}
|
|
327
|
+
SubscribeResponse.fromPartial = fromPartial;
|
|
328
|
+
})(SubscribeResponse || (exports.SubscribeResponse = SubscribeResponse = {}));
|
|
329
|
+
function createBaseUnsubscribeResponse() {
|
|
330
|
+
return {};
|
|
331
|
+
}
|
|
332
|
+
var UnsubscribeResponse;
|
|
333
|
+
(function (UnsubscribeResponse) {
|
|
334
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
335
|
+
return writer;
|
|
336
|
+
}
|
|
337
|
+
UnsubscribeResponse.encode = encode;
|
|
338
|
+
function decode(input, length) {
|
|
339
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
340
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
341
|
+
const message = createBaseUnsubscribeResponse();
|
|
342
|
+
while (reader.pos < end) {
|
|
343
|
+
const tag = reader.uint32();
|
|
344
|
+
switch (tag >>> 3) {
|
|
345
|
+
}
|
|
346
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
reader.skipType(tag & 7);
|
|
350
|
+
}
|
|
351
|
+
return message;
|
|
352
|
+
}
|
|
353
|
+
UnsubscribeResponse.decode = decode;
|
|
354
|
+
function fromJSON(_) {
|
|
355
|
+
return {};
|
|
356
|
+
}
|
|
357
|
+
UnsubscribeResponse.fromJSON = fromJSON;
|
|
358
|
+
function toJSON(_) {
|
|
359
|
+
const obj = {};
|
|
360
|
+
return obj;
|
|
361
|
+
}
|
|
362
|
+
UnsubscribeResponse.toJSON = toJSON;
|
|
363
|
+
function create(base) {
|
|
364
|
+
return UnsubscribeResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
365
|
+
}
|
|
366
|
+
UnsubscribeResponse.create = create;
|
|
367
|
+
function fromPartial(_) {
|
|
368
|
+
const message = createBaseUnsubscribeResponse();
|
|
369
|
+
return message;
|
|
370
|
+
}
|
|
371
|
+
UnsubscribeResponse.fromPartial = fromPartial;
|
|
372
|
+
})(UnsubscribeResponse || (exports.UnsubscribeResponse = UnsubscribeResponse = {}));
|
|
373
|
+
function createBaseGenericPayload() {
|
|
374
|
+
return { eventId: "", eventData: "" };
|
|
375
|
+
}
|
|
376
|
+
var GenericPayload;
|
|
377
|
+
(function (GenericPayload) {
|
|
378
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
379
|
+
if (message.eventId !== "") {
|
|
380
|
+
writer.uint32(26).string(message.eventId);
|
|
381
|
+
}
|
|
382
|
+
if (message.eventData !== "") {
|
|
383
|
+
writer.uint32(34).string(message.eventData);
|
|
384
|
+
}
|
|
385
|
+
return writer;
|
|
386
|
+
}
|
|
387
|
+
GenericPayload.encode = encode;
|
|
388
|
+
function decode(input, length) {
|
|
389
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
390
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
391
|
+
const message = createBaseGenericPayload();
|
|
392
|
+
while (reader.pos < end) {
|
|
393
|
+
const tag = reader.uint32();
|
|
394
|
+
switch (tag >>> 3) {
|
|
395
|
+
case 3:
|
|
396
|
+
if (tag !== 26) {
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
message.eventId = reader.string();
|
|
400
|
+
continue;
|
|
401
|
+
case 4:
|
|
402
|
+
if (tag !== 34) {
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
message.eventData = reader.string();
|
|
406
|
+
continue;
|
|
407
|
+
}
|
|
408
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
reader.skipType(tag & 7);
|
|
412
|
+
}
|
|
413
|
+
return message;
|
|
414
|
+
}
|
|
415
|
+
GenericPayload.decode = decode;
|
|
416
|
+
function fromJSON(object) {
|
|
417
|
+
return {
|
|
418
|
+
eventId: isSet(object.eventId) ? String(object.eventId) : "",
|
|
419
|
+
eventData: isSet(object.eventData) ? String(object.eventData) : "",
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
GenericPayload.fromJSON = fromJSON;
|
|
423
|
+
function toJSON(message) {
|
|
424
|
+
const obj = {};
|
|
425
|
+
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
426
|
+
message.eventData !== undefined && (obj.eventData = message.eventData);
|
|
427
|
+
return obj;
|
|
428
|
+
}
|
|
429
|
+
GenericPayload.toJSON = toJSON;
|
|
430
|
+
function create(base) {
|
|
431
|
+
return GenericPayload.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
432
|
+
}
|
|
433
|
+
GenericPayload.create = create;
|
|
434
|
+
function fromPartial(object) {
|
|
435
|
+
var _a, _b;
|
|
436
|
+
const message = createBaseGenericPayload();
|
|
437
|
+
message.eventId = (_a = object.eventId) !== null && _a !== void 0 ? _a : "";
|
|
438
|
+
message.eventData = (_b = object.eventData) !== null && _b !== void 0 ? _b : "";
|
|
439
|
+
return message;
|
|
440
|
+
}
|
|
441
|
+
GenericPayload.fromPartial = fromPartial;
|
|
442
|
+
})(GenericPayload || (exports.GenericPayload = GenericPayload = {}));
|
|
443
|
+
function createBaseReadOnlyVector3() {
|
|
444
|
+
return { x: 0, y: 0, z: 0 };
|
|
445
|
+
}
|
|
446
|
+
var ReadOnlyVector3;
|
|
447
|
+
(function (ReadOnlyVector3) {
|
|
448
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
449
|
+
if (message.x !== 0) {
|
|
450
|
+
writer.uint32(13).float(message.x);
|
|
451
|
+
}
|
|
452
|
+
if (message.y !== 0) {
|
|
453
|
+
writer.uint32(21).float(message.y);
|
|
454
|
+
}
|
|
455
|
+
if (message.z !== 0) {
|
|
456
|
+
writer.uint32(29).float(message.z);
|
|
457
|
+
}
|
|
458
|
+
return writer;
|
|
459
|
+
}
|
|
460
|
+
ReadOnlyVector3.encode = encode;
|
|
461
|
+
function decode(input, length) {
|
|
462
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
463
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
464
|
+
const message = createBaseReadOnlyVector3();
|
|
465
|
+
while (reader.pos < end) {
|
|
466
|
+
const tag = reader.uint32();
|
|
467
|
+
switch (tag >>> 3) {
|
|
468
|
+
case 1:
|
|
469
|
+
if (tag !== 13) {
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
message.x = reader.float();
|
|
473
|
+
continue;
|
|
474
|
+
case 2:
|
|
475
|
+
if (tag !== 21) {
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
message.y = reader.float();
|
|
479
|
+
continue;
|
|
480
|
+
case 3:
|
|
481
|
+
if (tag !== 29) {
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
message.z = reader.float();
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
reader.skipType(tag & 7);
|
|
491
|
+
}
|
|
492
|
+
return message;
|
|
493
|
+
}
|
|
494
|
+
ReadOnlyVector3.decode = decode;
|
|
495
|
+
function fromJSON(object) {
|
|
496
|
+
return {
|
|
497
|
+
x: isSet(object.x) ? Number(object.x) : 0,
|
|
498
|
+
y: isSet(object.y) ? Number(object.y) : 0,
|
|
499
|
+
z: isSet(object.z) ? Number(object.z) : 0,
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
ReadOnlyVector3.fromJSON = fromJSON;
|
|
503
|
+
function toJSON(message) {
|
|
504
|
+
const obj = {};
|
|
505
|
+
message.x !== undefined && (obj.x = message.x);
|
|
506
|
+
message.y !== undefined && (obj.y = message.y);
|
|
507
|
+
message.z !== undefined && (obj.z = message.z);
|
|
508
|
+
return obj;
|
|
509
|
+
}
|
|
510
|
+
ReadOnlyVector3.toJSON = toJSON;
|
|
511
|
+
function create(base) {
|
|
512
|
+
return ReadOnlyVector3.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
513
|
+
}
|
|
514
|
+
ReadOnlyVector3.create = create;
|
|
515
|
+
function fromPartial(object) {
|
|
516
|
+
var _a, _b, _c;
|
|
517
|
+
const message = createBaseReadOnlyVector3();
|
|
518
|
+
message.x = (_a = object.x) !== null && _a !== void 0 ? _a : 0;
|
|
519
|
+
message.y = (_b = object.y) !== null && _b !== void 0 ? _b : 0;
|
|
520
|
+
message.z = (_c = object.z) !== null && _c !== void 0 ? _c : 0;
|
|
521
|
+
return message;
|
|
522
|
+
}
|
|
523
|
+
ReadOnlyVector3.fromPartial = fromPartial;
|
|
524
|
+
})(ReadOnlyVector3 || (exports.ReadOnlyVector3 = ReadOnlyVector3 = {}));
|
|
525
|
+
function createBaseReadOnlyQuaternion() {
|
|
526
|
+
return { x: 0, y: 0, z: 0, w: 0 };
|
|
527
|
+
}
|
|
528
|
+
var ReadOnlyQuaternion;
|
|
529
|
+
(function (ReadOnlyQuaternion) {
|
|
530
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
531
|
+
if (message.x !== 0) {
|
|
532
|
+
writer.uint32(13).float(message.x);
|
|
533
|
+
}
|
|
534
|
+
if (message.y !== 0) {
|
|
535
|
+
writer.uint32(21).float(message.y);
|
|
536
|
+
}
|
|
537
|
+
if (message.z !== 0) {
|
|
538
|
+
writer.uint32(29).float(message.z);
|
|
539
|
+
}
|
|
540
|
+
if (message.w !== 0) {
|
|
541
|
+
writer.uint32(37).float(message.w);
|
|
542
|
+
}
|
|
543
|
+
return writer;
|
|
544
|
+
}
|
|
545
|
+
ReadOnlyQuaternion.encode = encode;
|
|
546
|
+
function decode(input, length) {
|
|
547
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
548
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
549
|
+
const message = createBaseReadOnlyQuaternion();
|
|
550
|
+
while (reader.pos < end) {
|
|
551
|
+
const tag = reader.uint32();
|
|
552
|
+
switch (tag >>> 3) {
|
|
553
|
+
case 1:
|
|
554
|
+
if (tag !== 13) {
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
message.x = reader.float();
|
|
558
|
+
continue;
|
|
559
|
+
case 2:
|
|
560
|
+
if (tag !== 21) {
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
message.y = reader.float();
|
|
564
|
+
continue;
|
|
565
|
+
case 3:
|
|
566
|
+
if (tag !== 29) {
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
message.z = reader.float();
|
|
570
|
+
continue;
|
|
571
|
+
case 4:
|
|
572
|
+
if (tag !== 37) {
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
message.w = reader.float();
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
reader.skipType(tag & 7);
|
|
582
|
+
}
|
|
583
|
+
return message;
|
|
584
|
+
}
|
|
585
|
+
ReadOnlyQuaternion.decode = decode;
|
|
586
|
+
function fromJSON(object) {
|
|
587
|
+
return {
|
|
588
|
+
x: isSet(object.x) ? Number(object.x) : 0,
|
|
589
|
+
y: isSet(object.y) ? Number(object.y) : 0,
|
|
590
|
+
z: isSet(object.z) ? Number(object.z) : 0,
|
|
591
|
+
w: isSet(object.w) ? Number(object.w) : 0,
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
ReadOnlyQuaternion.fromJSON = fromJSON;
|
|
595
|
+
function toJSON(message) {
|
|
596
|
+
const obj = {};
|
|
597
|
+
message.x !== undefined && (obj.x = message.x);
|
|
598
|
+
message.y !== undefined && (obj.y = message.y);
|
|
599
|
+
message.z !== undefined && (obj.z = message.z);
|
|
600
|
+
message.w !== undefined && (obj.w = message.w);
|
|
601
|
+
return obj;
|
|
602
|
+
}
|
|
603
|
+
ReadOnlyQuaternion.toJSON = toJSON;
|
|
604
|
+
function create(base) {
|
|
605
|
+
return ReadOnlyQuaternion.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
606
|
+
}
|
|
607
|
+
ReadOnlyQuaternion.create = create;
|
|
608
|
+
function fromPartial(object) {
|
|
609
|
+
var _a, _b, _c, _d;
|
|
610
|
+
const message = createBaseReadOnlyQuaternion();
|
|
611
|
+
message.x = (_a = object.x) !== null && _a !== void 0 ? _a : 0;
|
|
612
|
+
message.y = (_b = object.y) !== null && _b !== void 0 ? _b : 0;
|
|
613
|
+
message.z = (_c = object.z) !== null && _c !== void 0 ? _c : 0;
|
|
614
|
+
message.w = (_d = object.w) !== null && _d !== void 0 ? _d : 0;
|
|
615
|
+
return message;
|
|
616
|
+
}
|
|
617
|
+
ReadOnlyQuaternion.fromPartial = fromPartial;
|
|
618
|
+
})(ReadOnlyQuaternion || (exports.ReadOnlyQuaternion = ReadOnlyQuaternion = {}));
|
|
619
|
+
function createBasePositionChangedPayload() {
|
|
620
|
+
return { position: undefined, cameraPosition: undefined, playerHeight: 0 };
|
|
621
|
+
}
|
|
622
|
+
var PositionChangedPayload;
|
|
623
|
+
(function (PositionChangedPayload) {
|
|
624
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
625
|
+
if (message.position !== undefined) {
|
|
626
|
+
ReadOnlyVector3.encode(message.position, writer.uint32(10).fork()).ldelim();
|
|
627
|
+
}
|
|
628
|
+
if (message.cameraPosition !== undefined) {
|
|
629
|
+
ReadOnlyVector3.encode(message.cameraPosition, writer.uint32(18).fork()).ldelim();
|
|
630
|
+
}
|
|
631
|
+
if (message.playerHeight !== 0) {
|
|
632
|
+
writer.uint32(29).float(message.playerHeight);
|
|
633
|
+
}
|
|
634
|
+
return writer;
|
|
635
|
+
}
|
|
636
|
+
PositionChangedPayload.encode = encode;
|
|
637
|
+
function decode(input, length) {
|
|
638
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
639
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
640
|
+
const message = createBasePositionChangedPayload();
|
|
641
|
+
while (reader.pos < end) {
|
|
642
|
+
const tag = reader.uint32();
|
|
643
|
+
switch (tag >>> 3) {
|
|
644
|
+
case 1:
|
|
645
|
+
if (tag !== 10) {
|
|
646
|
+
break;
|
|
647
|
+
}
|
|
648
|
+
message.position = ReadOnlyVector3.decode(reader, reader.uint32());
|
|
649
|
+
continue;
|
|
650
|
+
case 2:
|
|
651
|
+
if (tag !== 18) {
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
message.cameraPosition = ReadOnlyVector3.decode(reader, reader.uint32());
|
|
655
|
+
continue;
|
|
656
|
+
case 3:
|
|
657
|
+
if (tag !== 29) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
message.playerHeight = reader.float();
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
reader.skipType(tag & 7);
|
|
667
|
+
}
|
|
668
|
+
return message;
|
|
669
|
+
}
|
|
670
|
+
PositionChangedPayload.decode = decode;
|
|
671
|
+
function fromJSON(object) {
|
|
672
|
+
return {
|
|
673
|
+
position: isSet(object.position) ? ReadOnlyVector3.fromJSON(object.position) : undefined,
|
|
674
|
+
cameraPosition: isSet(object.cameraPosition) ? ReadOnlyVector3.fromJSON(object.cameraPosition) : undefined,
|
|
675
|
+
playerHeight: isSet(object.playerHeight) ? Number(object.playerHeight) : 0,
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
PositionChangedPayload.fromJSON = fromJSON;
|
|
679
|
+
function toJSON(message) {
|
|
680
|
+
const obj = {};
|
|
681
|
+
message.position !== undefined &&
|
|
682
|
+
(obj.position = message.position ? ReadOnlyVector3.toJSON(message.position) : undefined);
|
|
683
|
+
message.cameraPosition !== undefined &&
|
|
684
|
+
(obj.cameraPosition = message.cameraPosition ? ReadOnlyVector3.toJSON(message.cameraPosition) : undefined);
|
|
685
|
+
message.playerHeight !== undefined && (obj.playerHeight = message.playerHeight);
|
|
686
|
+
return obj;
|
|
687
|
+
}
|
|
688
|
+
PositionChangedPayload.toJSON = toJSON;
|
|
689
|
+
function create(base) {
|
|
690
|
+
return PositionChangedPayload.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
691
|
+
}
|
|
692
|
+
PositionChangedPayload.create = create;
|
|
693
|
+
function fromPartial(object) {
|
|
694
|
+
var _a;
|
|
695
|
+
const message = createBasePositionChangedPayload();
|
|
696
|
+
message.position = (object.position !== undefined && object.position !== null)
|
|
697
|
+
? ReadOnlyVector3.fromPartial(object.position)
|
|
698
|
+
: undefined;
|
|
699
|
+
message.cameraPosition = (object.cameraPosition !== undefined && object.cameraPosition !== null)
|
|
700
|
+
? ReadOnlyVector3.fromPartial(object.cameraPosition)
|
|
701
|
+
: undefined;
|
|
702
|
+
message.playerHeight = (_a = object.playerHeight) !== null && _a !== void 0 ? _a : 0;
|
|
703
|
+
return message;
|
|
704
|
+
}
|
|
705
|
+
PositionChangedPayload.fromPartial = fromPartial;
|
|
706
|
+
})(PositionChangedPayload || (exports.PositionChangedPayload = PositionChangedPayload = {}));
|
|
707
|
+
function createBaseRotationChangedPayload() {
|
|
708
|
+
return { rotation: undefined, quaternion: undefined };
|
|
709
|
+
}
|
|
710
|
+
var RotationChangedPayload;
|
|
711
|
+
(function (RotationChangedPayload) {
|
|
712
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
713
|
+
if (message.rotation !== undefined) {
|
|
714
|
+
ReadOnlyVector3.encode(message.rotation, writer.uint32(10).fork()).ldelim();
|
|
715
|
+
}
|
|
716
|
+
if (message.quaternion !== undefined) {
|
|
717
|
+
ReadOnlyQuaternion.encode(message.quaternion, writer.uint32(18).fork()).ldelim();
|
|
718
|
+
}
|
|
719
|
+
return writer;
|
|
720
|
+
}
|
|
721
|
+
RotationChangedPayload.encode = encode;
|
|
722
|
+
function decode(input, length) {
|
|
723
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
724
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
725
|
+
const message = createBaseRotationChangedPayload();
|
|
726
|
+
while (reader.pos < end) {
|
|
727
|
+
const tag = reader.uint32();
|
|
728
|
+
switch (tag >>> 3) {
|
|
729
|
+
case 1:
|
|
730
|
+
if (tag !== 10) {
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
message.rotation = ReadOnlyVector3.decode(reader, reader.uint32());
|
|
734
|
+
continue;
|
|
735
|
+
case 2:
|
|
736
|
+
if (tag !== 18) {
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
739
|
+
message.quaternion = ReadOnlyQuaternion.decode(reader, reader.uint32());
|
|
740
|
+
continue;
|
|
741
|
+
}
|
|
742
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
reader.skipType(tag & 7);
|
|
746
|
+
}
|
|
747
|
+
return message;
|
|
748
|
+
}
|
|
749
|
+
RotationChangedPayload.decode = decode;
|
|
750
|
+
function fromJSON(object) {
|
|
751
|
+
return {
|
|
752
|
+
rotation: isSet(object.rotation) ? ReadOnlyVector3.fromJSON(object.rotation) : undefined,
|
|
753
|
+
quaternion: isSet(object.quaternion) ? ReadOnlyQuaternion.fromJSON(object.quaternion) : undefined,
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
RotationChangedPayload.fromJSON = fromJSON;
|
|
757
|
+
function toJSON(message) {
|
|
758
|
+
const obj = {};
|
|
759
|
+
message.rotation !== undefined &&
|
|
760
|
+
(obj.rotation = message.rotation ? ReadOnlyVector3.toJSON(message.rotation) : undefined);
|
|
761
|
+
message.quaternion !== undefined &&
|
|
762
|
+
(obj.quaternion = message.quaternion ? ReadOnlyQuaternion.toJSON(message.quaternion) : undefined);
|
|
763
|
+
return obj;
|
|
764
|
+
}
|
|
765
|
+
RotationChangedPayload.toJSON = toJSON;
|
|
766
|
+
function create(base) {
|
|
767
|
+
return RotationChangedPayload.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
768
|
+
}
|
|
769
|
+
RotationChangedPayload.create = create;
|
|
770
|
+
function fromPartial(object) {
|
|
771
|
+
const message = createBaseRotationChangedPayload();
|
|
772
|
+
message.rotation = (object.rotation !== undefined && object.rotation !== null)
|
|
773
|
+
? ReadOnlyVector3.fromPartial(object.rotation)
|
|
774
|
+
: undefined;
|
|
775
|
+
message.quaternion = (object.quaternion !== undefined && object.quaternion !== null)
|
|
776
|
+
? ReadOnlyQuaternion.fromPartial(object.quaternion)
|
|
777
|
+
: undefined;
|
|
778
|
+
return message;
|
|
779
|
+
}
|
|
780
|
+
RotationChangedPayload.fromPartial = fromPartial;
|
|
781
|
+
})(RotationChangedPayload || (exports.RotationChangedPayload = RotationChangedPayload = {}));
|
|
782
|
+
function createBaseEventData() {
|
|
783
|
+
return { type: 0, generic: undefined, positionChanged: undefined, rotationChanged: undefined };
|
|
784
|
+
}
|
|
785
|
+
var EventData;
|
|
786
|
+
(function (EventData) {
|
|
787
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
788
|
+
if (message.type !== 0) {
|
|
789
|
+
writer.uint32(8).int32(message.type);
|
|
790
|
+
}
|
|
791
|
+
if (message.generic !== undefined) {
|
|
792
|
+
GenericPayload.encode(message.generic, writer.uint32(18).fork()).ldelim();
|
|
793
|
+
}
|
|
794
|
+
if (message.positionChanged !== undefined) {
|
|
795
|
+
PositionChangedPayload.encode(message.positionChanged, writer.uint32(26).fork()).ldelim();
|
|
796
|
+
}
|
|
797
|
+
if (message.rotationChanged !== undefined) {
|
|
798
|
+
RotationChangedPayload.encode(message.rotationChanged, writer.uint32(34).fork()).ldelim();
|
|
799
|
+
}
|
|
800
|
+
return writer;
|
|
801
|
+
}
|
|
802
|
+
EventData.encode = encode;
|
|
803
|
+
function decode(input, length) {
|
|
804
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
805
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
806
|
+
const message = createBaseEventData();
|
|
807
|
+
while (reader.pos < end) {
|
|
808
|
+
const tag = reader.uint32();
|
|
809
|
+
switch (tag >>> 3) {
|
|
810
|
+
case 1:
|
|
811
|
+
if (tag !== 8) {
|
|
812
|
+
break;
|
|
813
|
+
}
|
|
814
|
+
message.type = reader.int32();
|
|
815
|
+
continue;
|
|
816
|
+
case 2:
|
|
817
|
+
if (tag !== 18) {
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
message.generic = GenericPayload.decode(reader, reader.uint32());
|
|
821
|
+
continue;
|
|
822
|
+
case 3:
|
|
823
|
+
if (tag !== 26) {
|
|
824
|
+
break;
|
|
825
|
+
}
|
|
826
|
+
message.positionChanged = PositionChangedPayload.decode(reader, reader.uint32());
|
|
827
|
+
continue;
|
|
828
|
+
case 4:
|
|
829
|
+
if (tag !== 34) {
|
|
830
|
+
break;
|
|
831
|
+
}
|
|
832
|
+
message.rotationChanged = RotationChangedPayload.decode(reader, reader.uint32());
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
835
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
reader.skipType(tag & 7);
|
|
839
|
+
}
|
|
840
|
+
return message;
|
|
841
|
+
}
|
|
842
|
+
EventData.decode = decode;
|
|
843
|
+
function fromJSON(object) {
|
|
844
|
+
return {
|
|
845
|
+
type: isSet(object.type) ? eventDataTypeFromJSON(object.type) : 0,
|
|
846
|
+
generic: isSet(object.generic) ? GenericPayload.fromJSON(object.generic) : undefined,
|
|
847
|
+
positionChanged: isSet(object.positionChanged)
|
|
848
|
+
? PositionChangedPayload.fromJSON(object.positionChanged)
|
|
849
|
+
: undefined,
|
|
850
|
+
rotationChanged: isSet(object.rotationChanged)
|
|
851
|
+
? RotationChangedPayload.fromJSON(object.rotationChanged)
|
|
852
|
+
: undefined,
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
EventData.fromJSON = fromJSON;
|
|
856
|
+
function toJSON(message) {
|
|
857
|
+
const obj = {};
|
|
858
|
+
message.type !== undefined && (obj.type = eventDataTypeToJSON(message.type));
|
|
859
|
+
message.generic !== undefined &&
|
|
860
|
+
(obj.generic = message.generic ? GenericPayload.toJSON(message.generic) : undefined);
|
|
861
|
+
message.positionChanged !== undefined &&
|
|
862
|
+
(obj.positionChanged = message.positionChanged
|
|
863
|
+
? PositionChangedPayload.toJSON(message.positionChanged)
|
|
864
|
+
: undefined);
|
|
865
|
+
message.rotationChanged !== undefined &&
|
|
866
|
+
(obj.rotationChanged = message.rotationChanged
|
|
867
|
+
? RotationChangedPayload.toJSON(message.rotationChanged)
|
|
868
|
+
: undefined);
|
|
869
|
+
return obj;
|
|
870
|
+
}
|
|
871
|
+
EventData.toJSON = toJSON;
|
|
872
|
+
function create(base) {
|
|
873
|
+
return EventData.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
874
|
+
}
|
|
875
|
+
EventData.create = create;
|
|
876
|
+
function fromPartial(object) {
|
|
877
|
+
var _a;
|
|
878
|
+
const message = createBaseEventData();
|
|
879
|
+
message.type = (_a = object.type) !== null && _a !== void 0 ? _a : 0;
|
|
880
|
+
message.generic = (object.generic !== undefined && object.generic !== null)
|
|
881
|
+
? GenericPayload.fromPartial(object.generic)
|
|
882
|
+
: undefined;
|
|
883
|
+
message.positionChanged = (object.positionChanged !== undefined && object.positionChanged !== null)
|
|
884
|
+
? PositionChangedPayload.fromPartial(object.positionChanged)
|
|
885
|
+
: undefined;
|
|
886
|
+
message.rotationChanged = (object.rotationChanged !== undefined && object.rotationChanged !== null)
|
|
887
|
+
? RotationChangedPayload.fromPartial(object.rotationChanged)
|
|
888
|
+
: undefined;
|
|
889
|
+
return message;
|
|
890
|
+
}
|
|
891
|
+
EventData.fromPartial = fromPartial;
|
|
892
|
+
})(EventData || (exports.EventData = EventData = {}));
|
|
893
|
+
function createBaseCrdtSendToRendererRequest() {
|
|
894
|
+
return { data: new Uint8Array(0) };
|
|
895
|
+
}
|
|
896
|
+
var CrdtSendToRendererRequest;
|
|
897
|
+
(function (CrdtSendToRendererRequest) {
|
|
898
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
899
|
+
if (message.data.length !== 0) {
|
|
900
|
+
writer.uint32(10).bytes(message.data);
|
|
901
|
+
}
|
|
902
|
+
return writer;
|
|
903
|
+
}
|
|
904
|
+
CrdtSendToRendererRequest.encode = encode;
|
|
905
|
+
function decode(input, length) {
|
|
906
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
907
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
908
|
+
const message = createBaseCrdtSendToRendererRequest();
|
|
909
|
+
while (reader.pos < end) {
|
|
910
|
+
const tag = reader.uint32();
|
|
911
|
+
switch (tag >>> 3) {
|
|
912
|
+
case 1:
|
|
913
|
+
if (tag !== 10) {
|
|
914
|
+
break;
|
|
915
|
+
}
|
|
916
|
+
message.data = reader.bytes();
|
|
917
|
+
continue;
|
|
918
|
+
}
|
|
919
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
920
|
+
break;
|
|
921
|
+
}
|
|
922
|
+
reader.skipType(tag & 7);
|
|
923
|
+
}
|
|
924
|
+
return message;
|
|
925
|
+
}
|
|
926
|
+
CrdtSendToRendererRequest.decode = decode;
|
|
927
|
+
function fromJSON(object) {
|
|
928
|
+
return { data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0) };
|
|
929
|
+
}
|
|
930
|
+
CrdtSendToRendererRequest.fromJSON = fromJSON;
|
|
931
|
+
function toJSON(message) {
|
|
932
|
+
const obj = {};
|
|
933
|
+
message.data !== undefined &&
|
|
934
|
+
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array(0)));
|
|
935
|
+
return obj;
|
|
936
|
+
}
|
|
937
|
+
CrdtSendToRendererRequest.toJSON = toJSON;
|
|
938
|
+
function create(base) {
|
|
939
|
+
return CrdtSendToRendererRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
940
|
+
}
|
|
941
|
+
CrdtSendToRendererRequest.create = create;
|
|
942
|
+
function fromPartial(object) {
|
|
943
|
+
var _a;
|
|
944
|
+
const message = createBaseCrdtSendToRendererRequest();
|
|
945
|
+
message.data = (_a = object.data) !== null && _a !== void 0 ? _a : new Uint8Array(0);
|
|
946
|
+
return message;
|
|
947
|
+
}
|
|
948
|
+
CrdtSendToRendererRequest.fromPartial = fromPartial;
|
|
949
|
+
})(CrdtSendToRendererRequest || (exports.CrdtSendToRendererRequest = CrdtSendToRendererRequest = {}));
|
|
950
|
+
function createBaseCrdtSendToResponse() {
|
|
951
|
+
return { data: [] };
|
|
952
|
+
}
|
|
953
|
+
var CrdtSendToResponse;
|
|
954
|
+
(function (CrdtSendToResponse) {
|
|
955
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
956
|
+
for (const v of message.data) {
|
|
957
|
+
writer.uint32(10).bytes(v);
|
|
958
|
+
}
|
|
959
|
+
return writer;
|
|
960
|
+
}
|
|
961
|
+
CrdtSendToResponse.encode = encode;
|
|
962
|
+
function decode(input, length) {
|
|
963
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
964
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
965
|
+
const message = createBaseCrdtSendToResponse();
|
|
966
|
+
while (reader.pos < end) {
|
|
967
|
+
const tag = reader.uint32();
|
|
968
|
+
switch (tag >>> 3) {
|
|
969
|
+
case 1:
|
|
970
|
+
if (tag !== 10) {
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
message.data.push(reader.bytes());
|
|
974
|
+
continue;
|
|
975
|
+
}
|
|
976
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
977
|
+
break;
|
|
978
|
+
}
|
|
979
|
+
reader.skipType(tag & 7);
|
|
980
|
+
}
|
|
981
|
+
return message;
|
|
982
|
+
}
|
|
983
|
+
CrdtSendToResponse.decode = decode;
|
|
984
|
+
function fromJSON(object) {
|
|
985
|
+
return { data: Array.isArray(object === null || object === void 0 ? void 0 : object.data) ? object.data.map((e) => bytesFromBase64(e)) : [] };
|
|
986
|
+
}
|
|
987
|
+
CrdtSendToResponse.fromJSON = fromJSON;
|
|
988
|
+
function toJSON(message) {
|
|
989
|
+
const obj = {};
|
|
990
|
+
if (message.data) {
|
|
991
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
992
|
+
}
|
|
993
|
+
else {
|
|
994
|
+
obj.data = [];
|
|
995
|
+
}
|
|
996
|
+
return obj;
|
|
997
|
+
}
|
|
998
|
+
CrdtSendToResponse.toJSON = toJSON;
|
|
999
|
+
function create(base) {
|
|
1000
|
+
return CrdtSendToResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1001
|
+
}
|
|
1002
|
+
CrdtSendToResponse.create = create;
|
|
1003
|
+
function fromPartial(object) {
|
|
1004
|
+
var _a;
|
|
1005
|
+
const message = createBaseCrdtSendToResponse();
|
|
1006
|
+
message.data = ((_a = object.data) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
1007
|
+
return message;
|
|
1008
|
+
}
|
|
1009
|
+
CrdtSendToResponse.fromPartial = fromPartial;
|
|
1010
|
+
})(CrdtSendToResponse || (exports.CrdtSendToResponse = CrdtSendToResponse = {}));
|
|
1011
|
+
function createBaseCrdtGetStateRequest() {
|
|
1012
|
+
return {};
|
|
1013
|
+
}
|
|
1014
|
+
var CrdtGetStateRequest;
|
|
1015
|
+
(function (CrdtGetStateRequest) {
|
|
1016
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1017
|
+
return writer;
|
|
1018
|
+
}
|
|
1019
|
+
CrdtGetStateRequest.encode = encode;
|
|
1020
|
+
function decode(input, length) {
|
|
1021
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1022
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1023
|
+
const message = createBaseCrdtGetStateRequest();
|
|
1024
|
+
while (reader.pos < end) {
|
|
1025
|
+
const tag = reader.uint32();
|
|
1026
|
+
switch (tag >>> 3) {
|
|
1027
|
+
}
|
|
1028
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
reader.skipType(tag & 7);
|
|
1032
|
+
}
|
|
1033
|
+
return message;
|
|
1034
|
+
}
|
|
1035
|
+
CrdtGetStateRequest.decode = decode;
|
|
1036
|
+
function fromJSON(_) {
|
|
1037
|
+
return {};
|
|
1038
|
+
}
|
|
1039
|
+
CrdtGetStateRequest.fromJSON = fromJSON;
|
|
1040
|
+
function toJSON(_) {
|
|
1041
|
+
const obj = {};
|
|
1042
|
+
return obj;
|
|
1043
|
+
}
|
|
1044
|
+
CrdtGetStateRequest.toJSON = toJSON;
|
|
1045
|
+
function create(base) {
|
|
1046
|
+
return CrdtGetStateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1047
|
+
}
|
|
1048
|
+
CrdtGetStateRequest.create = create;
|
|
1049
|
+
function fromPartial(_) {
|
|
1050
|
+
const message = createBaseCrdtGetStateRequest();
|
|
1051
|
+
return message;
|
|
1052
|
+
}
|
|
1053
|
+
CrdtGetStateRequest.fromPartial = fromPartial;
|
|
1054
|
+
})(CrdtGetStateRequest || (exports.CrdtGetStateRequest = CrdtGetStateRequest = {}));
|
|
1055
|
+
function createBaseCrdtGetStateResponse() {
|
|
1056
|
+
return { hasEntities: false, data: [] };
|
|
1057
|
+
}
|
|
1058
|
+
var CrdtGetStateResponse;
|
|
1059
|
+
(function (CrdtGetStateResponse) {
|
|
1060
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1061
|
+
if (message.hasEntities === true) {
|
|
1062
|
+
writer.uint32(8).bool(message.hasEntities);
|
|
1063
|
+
}
|
|
1064
|
+
for (const v of message.data) {
|
|
1065
|
+
writer.uint32(18).bytes(v);
|
|
1066
|
+
}
|
|
1067
|
+
return writer;
|
|
1068
|
+
}
|
|
1069
|
+
CrdtGetStateResponse.encode = encode;
|
|
1070
|
+
function decode(input, length) {
|
|
1071
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1072
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1073
|
+
const message = createBaseCrdtGetStateResponse();
|
|
1074
|
+
while (reader.pos < end) {
|
|
1075
|
+
const tag = reader.uint32();
|
|
1076
|
+
switch (tag >>> 3) {
|
|
1077
|
+
case 1:
|
|
1078
|
+
if (tag !== 8) {
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
message.hasEntities = reader.bool();
|
|
1082
|
+
continue;
|
|
1083
|
+
case 2:
|
|
1084
|
+
if (tag !== 18) {
|
|
1085
|
+
break;
|
|
1086
|
+
}
|
|
1087
|
+
message.data.push(reader.bytes());
|
|
1088
|
+
continue;
|
|
1089
|
+
}
|
|
1090
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
reader.skipType(tag & 7);
|
|
1094
|
+
}
|
|
1095
|
+
return message;
|
|
1096
|
+
}
|
|
1097
|
+
CrdtGetStateResponse.decode = decode;
|
|
1098
|
+
function fromJSON(object) {
|
|
1099
|
+
return {
|
|
1100
|
+
hasEntities: isSet(object.hasEntities) ? Boolean(object.hasEntities) : false,
|
|
1101
|
+
data: Array.isArray(object === null || object === void 0 ? void 0 : object.data) ? object.data.map((e) => bytesFromBase64(e)) : [],
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
CrdtGetStateResponse.fromJSON = fromJSON;
|
|
1105
|
+
function toJSON(message) {
|
|
1106
|
+
const obj = {};
|
|
1107
|
+
message.hasEntities !== undefined && (obj.hasEntities = message.hasEntities);
|
|
1108
|
+
if (message.data) {
|
|
1109
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
obj.data = [];
|
|
1113
|
+
}
|
|
1114
|
+
return obj;
|
|
1115
|
+
}
|
|
1116
|
+
CrdtGetStateResponse.toJSON = toJSON;
|
|
1117
|
+
function create(base) {
|
|
1118
|
+
return CrdtGetStateResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1119
|
+
}
|
|
1120
|
+
CrdtGetStateResponse.create = create;
|
|
1121
|
+
function fromPartial(object) {
|
|
1122
|
+
var _a, _b;
|
|
1123
|
+
const message = createBaseCrdtGetStateResponse();
|
|
1124
|
+
message.hasEntities = (_a = object.hasEntities) !== null && _a !== void 0 ? _a : false;
|
|
1125
|
+
message.data = ((_b = object.data) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1126
|
+
return message;
|
|
1127
|
+
}
|
|
1128
|
+
CrdtGetStateResponse.fromPartial = fromPartial;
|
|
1129
|
+
})(CrdtGetStateResponse || (exports.CrdtGetStateResponse = CrdtGetStateResponse = {}));
|
|
1130
|
+
function createBaseCrdtMessageFromRendererRequest() {
|
|
1131
|
+
return {};
|
|
1132
|
+
}
|
|
1133
|
+
var CrdtMessageFromRendererRequest;
|
|
1134
|
+
(function (CrdtMessageFromRendererRequest) {
|
|
1135
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1136
|
+
return writer;
|
|
1137
|
+
}
|
|
1138
|
+
CrdtMessageFromRendererRequest.encode = encode;
|
|
1139
|
+
function decode(input, length) {
|
|
1140
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1141
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1142
|
+
const message = createBaseCrdtMessageFromRendererRequest();
|
|
1143
|
+
while (reader.pos < end) {
|
|
1144
|
+
const tag = reader.uint32();
|
|
1145
|
+
switch (tag >>> 3) {
|
|
1146
|
+
}
|
|
1147
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1148
|
+
break;
|
|
1149
|
+
}
|
|
1150
|
+
reader.skipType(tag & 7);
|
|
1151
|
+
}
|
|
1152
|
+
return message;
|
|
1153
|
+
}
|
|
1154
|
+
CrdtMessageFromRendererRequest.decode = decode;
|
|
1155
|
+
function fromJSON(_) {
|
|
1156
|
+
return {};
|
|
1157
|
+
}
|
|
1158
|
+
CrdtMessageFromRendererRequest.fromJSON = fromJSON;
|
|
1159
|
+
function toJSON(_) {
|
|
1160
|
+
const obj = {};
|
|
1161
|
+
return obj;
|
|
1162
|
+
}
|
|
1163
|
+
CrdtMessageFromRendererRequest.toJSON = toJSON;
|
|
1164
|
+
function create(base) {
|
|
1165
|
+
return CrdtMessageFromRendererRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1166
|
+
}
|
|
1167
|
+
CrdtMessageFromRendererRequest.create = create;
|
|
1168
|
+
function fromPartial(_) {
|
|
1169
|
+
const message = createBaseCrdtMessageFromRendererRequest();
|
|
1170
|
+
return message;
|
|
1171
|
+
}
|
|
1172
|
+
CrdtMessageFromRendererRequest.fromPartial = fromPartial;
|
|
1173
|
+
})(CrdtMessageFromRendererRequest || (exports.CrdtMessageFromRendererRequest = CrdtMessageFromRendererRequest = {}));
|
|
1174
|
+
function createBaseCrdtMessageFromRendererResponse() {
|
|
1175
|
+
return { data: [] };
|
|
1176
|
+
}
|
|
1177
|
+
var CrdtMessageFromRendererResponse;
|
|
1178
|
+
(function (CrdtMessageFromRendererResponse) {
|
|
1179
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1180
|
+
for (const v of message.data) {
|
|
1181
|
+
writer.uint32(10).bytes(v);
|
|
1182
|
+
}
|
|
1183
|
+
return writer;
|
|
1184
|
+
}
|
|
1185
|
+
CrdtMessageFromRendererResponse.encode = encode;
|
|
1186
|
+
function decode(input, length) {
|
|
1187
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1188
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1189
|
+
const message = createBaseCrdtMessageFromRendererResponse();
|
|
1190
|
+
while (reader.pos < end) {
|
|
1191
|
+
const tag = reader.uint32();
|
|
1192
|
+
switch (tag >>> 3) {
|
|
1193
|
+
case 1:
|
|
1194
|
+
if (tag !== 10) {
|
|
1195
|
+
break;
|
|
1196
|
+
}
|
|
1197
|
+
message.data.push(reader.bytes());
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1200
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1201
|
+
break;
|
|
1202
|
+
}
|
|
1203
|
+
reader.skipType(tag & 7);
|
|
1204
|
+
}
|
|
1205
|
+
return message;
|
|
1206
|
+
}
|
|
1207
|
+
CrdtMessageFromRendererResponse.decode = decode;
|
|
1208
|
+
function fromJSON(object) {
|
|
1209
|
+
return { data: Array.isArray(object === null || object === void 0 ? void 0 : object.data) ? object.data.map((e) => bytesFromBase64(e)) : [] };
|
|
1210
|
+
}
|
|
1211
|
+
CrdtMessageFromRendererResponse.fromJSON = fromJSON;
|
|
1212
|
+
function toJSON(message) {
|
|
1213
|
+
const obj = {};
|
|
1214
|
+
if (message.data) {
|
|
1215
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
1216
|
+
}
|
|
1217
|
+
else {
|
|
1218
|
+
obj.data = [];
|
|
1219
|
+
}
|
|
1220
|
+
return obj;
|
|
1221
|
+
}
|
|
1222
|
+
CrdtMessageFromRendererResponse.toJSON = toJSON;
|
|
1223
|
+
function create(base) {
|
|
1224
|
+
return CrdtMessageFromRendererResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1225
|
+
}
|
|
1226
|
+
CrdtMessageFromRendererResponse.create = create;
|
|
1227
|
+
function fromPartial(object) {
|
|
1228
|
+
var _a;
|
|
1229
|
+
const message = createBaseCrdtMessageFromRendererResponse();
|
|
1230
|
+
message.data = ((_a = object.data) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
1231
|
+
return message;
|
|
1232
|
+
}
|
|
1233
|
+
CrdtMessageFromRendererResponse.fromPartial = fromPartial;
|
|
1234
|
+
})(CrdtMessageFromRendererResponse || (exports.CrdtMessageFromRendererResponse = CrdtMessageFromRendererResponse = {}));
|
|
1235
|
+
function createBaseIsServerRequest() {
|
|
1236
|
+
return {};
|
|
1237
|
+
}
|
|
1238
|
+
var IsServerRequest;
|
|
1239
|
+
(function (IsServerRequest) {
|
|
1240
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1241
|
+
return writer;
|
|
1242
|
+
}
|
|
1243
|
+
IsServerRequest.encode = encode;
|
|
1244
|
+
function decode(input, length) {
|
|
1245
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1246
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1247
|
+
const message = createBaseIsServerRequest();
|
|
1248
|
+
while (reader.pos < end) {
|
|
1249
|
+
const tag = reader.uint32();
|
|
1250
|
+
switch (tag >>> 3) {
|
|
1251
|
+
}
|
|
1252
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
reader.skipType(tag & 7);
|
|
1256
|
+
}
|
|
1257
|
+
return message;
|
|
1258
|
+
}
|
|
1259
|
+
IsServerRequest.decode = decode;
|
|
1260
|
+
function fromJSON(_) {
|
|
1261
|
+
return {};
|
|
1262
|
+
}
|
|
1263
|
+
IsServerRequest.fromJSON = fromJSON;
|
|
1264
|
+
function toJSON(_) {
|
|
1265
|
+
const obj = {};
|
|
1266
|
+
return obj;
|
|
1267
|
+
}
|
|
1268
|
+
IsServerRequest.toJSON = toJSON;
|
|
1269
|
+
function create(base) {
|
|
1270
|
+
return IsServerRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1271
|
+
}
|
|
1272
|
+
IsServerRequest.create = create;
|
|
1273
|
+
function fromPartial(_) {
|
|
1274
|
+
const message = createBaseIsServerRequest();
|
|
1275
|
+
return message;
|
|
1276
|
+
}
|
|
1277
|
+
IsServerRequest.fromPartial = fromPartial;
|
|
1278
|
+
})(IsServerRequest || (exports.IsServerRequest = IsServerRequest = {}));
|
|
1279
|
+
function createBaseIsServerResponse() {
|
|
1280
|
+
return { isServer: false };
|
|
1281
|
+
}
|
|
1282
|
+
var IsServerResponse;
|
|
1283
|
+
(function (IsServerResponse) {
|
|
1284
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1285
|
+
if (message.isServer === true) {
|
|
1286
|
+
writer.uint32(8).bool(message.isServer);
|
|
1287
|
+
}
|
|
1288
|
+
return writer;
|
|
1289
|
+
}
|
|
1290
|
+
IsServerResponse.encode = encode;
|
|
1291
|
+
function decode(input, length) {
|
|
1292
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1293
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1294
|
+
const message = createBaseIsServerResponse();
|
|
1295
|
+
while (reader.pos < end) {
|
|
1296
|
+
const tag = reader.uint32();
|
|
1297
|
+
switch (tag >>> 3) {
|
|
1298
|
+
case 1:
|
|
1299
|
+
if (tag !== 8) {
|
|
1300
|
+
break;
|
|
1301
|
+
}
|
|
1302
|
+
message.isServer = reader.bool();
|
|
1303
|
+
continue;
|
|
1304
|
+
}
|
|
1305
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1306
|
+
break;
|
|
1307
|
+
}
|
|
1308
|
+
reader.skipType(tag & 7);
|
|
1309
|
+
}
|
|
1310
|
+
return message;
|
|
1311
|
+
}
|
|
1312
|
+
IsServerResponse.decode = decode;
|
|
1313
|
+
function fromJSON(object) {
|
|
1314
|
+
return { isServer: isSet(object.isServer) ? Boolean(object.isServer) : false };
|
|
1315
|
+
}
|
|
1316
|
+
IsServerResponse.fromJSON = fromJSON;
|
|
1317
|
+
function toJSON(message) {
|
|
1318
|
+
const obj = {};
|
|
1319
|
+
message.isServer !== undefined && (obj.isServer = message.isServer);
|
|
1320
|
+
return obj;
|
|
1321
|
+
}
|
|
1322
|
+
IsServerResponse.toJSON = toJSON;
|
|
1323
|
+
function create(base) {
|
|
1324
|
+
return IsServerResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1325
|
+
}
|
|
1326
|
+
IsServerResponse.create = create;
|
|
1327
|
+
function fromPartial(object) {
|
|
1328
|
+
var _a;
|
|
1329
|
+
const message = createBaseIsServerResponse();
|
|
1330
|
+
message.isServer = (_a = object.isServer) !== null && _a !== void 0 ? _a : false;
|
|
1331
|
+
return message;
|
|
1332
|
+
}
|
|
1333
|
+
IsServerResponse.fromPartial = fromPartial;
|
|
1334
|
+
})(IsServerResponse || (exports.IsServerResponse = IsServerResponse = {}));
|
|
1335
|
+
exports.EngineApiServiceDefinition = {
|
|
1336
|
+
name: "EngineApiService",
|
|
1337
|
+
fullName: "decentraland.kernel.apis.EngineApiService",
|
|
1338
|
+
methods: {
|
|
1339
|
+
/** @deprecated */
|
|
1340
|
+
sendBatch: {
|
|
1341
|
+
name: "SendBatch",
|
|
1342
|
+
requestType: ManyEntityAction,
|
|
1343
|
+
requestStream: false,
|
|
1344
|
+
responseType: SendBatchResponse,
|
|
1345
|
+
responseStream: false,
|
|
1346
|
+
options: {},
|
|
1347
|
+
},
|
|
1348
|
+
/** @deprecated */
|
|
1349
|
+
subscribe: {
|
|
1350
|
+
name: "Subscribe",
|
|
1351
|
+
requestType: SubscribeRequest,
|
|
1352
|
+
requestStream: false,
|
|
1353
|
+
responseType: SubscribeResponse,
|
|
1354
|
+
responseStream: false,
|
|
1355
|
+
options: {},
|
|
1356
|
+
},
|
|
1357
|
+
/** @deprecated */
|
|
1358
|
+
unsubscribe: {
|
|
1359
|
+
name: "Unsubscribe",
|
|
1360
|
+
requestType: UnsubscribeRequest,
|
|
1361
|
+
requestStream: false,
|
|
1362
|
+
responseType: UnsubscribeResponse,
|
|
1363
|
+
responseStream: false,
|
|
1364
|
+
options: {},
|
|
1365
|
+
},
|
|
1366
|
+
/**
|
|
1367
|
+
* send information of the CRDT messages to the renderer. It returns the CRDT changes back from the renderer
|
|
1368
|
+
* like raycast responses or the player's position
|
|
1369
|
+
*/
|
|
1370
|
+
crdtSendToRenderer: {
|
|
1371
|
+
name: "CrdtSendToRenderer",
|
|
1372
|
+
requestType: CrdtSendToRendererRequest,
|
|
1373
|
+
requestStream: false,
|
|
1374
|
+
responseType: CrdtSendToResponse,
|
|
1375
|
+
responseStream: false,
|
|
1376
|
+
options: {},
|
|
1377
|
+
},
|
|
1378
|
+
/**
|
|
1379
|
+
* retrieves the current _full_ state of the entities from the renderer. This function is used to hidrate
|
|
1380
|
+
* the state of the scenes when the code of the worker is stopped/resumed
|
|
1381
|
+
*/
|
|
1382
|
+
crdtGetState: {
|
|
1383
|
+
name: "CrdtGetState",
|
|
1384
|
+
requestType: CrdtSendToRendererRequest,
|
|
1385
|
+
requestStream: false,
|
|
1386
|
+
responseType: CrdtGetStateResponse,
|
|
1387
|
+
responseStream: false,
|
|
1388
|
+
options: {},
|
|
1389
|
+
},
|
|
1390
|
+
/** @deprecated, this response was merged into CrdtSendToResponse */
|
|
1391
|
+
crdtGetMessageFromRenderer: {
|
|
1392
|
+
name: "CrdtGetMessageFromRenderer",
|
|
1393
|
+
requestType: CrdtMessageFromRendererRequest,
|
|
1394
|
+
requestStream: false,
|
|
1395
|
+
responseType: CrdtMessageFromRendererResponse,
|
|
1396
|
+
responseStream: false,
|
|
1397
|
+
options: {},
|
|
1398
|
+
},
|
|
1399
|
+
isServer: {
|
|
1400
|
+
name: "IsServer",
|
|
1401
|
+
requestType: IsServerRequest,
|
|
1402
|
+
requestStream: false,
|
|
1403
|
+
responseType: IsServerResponse,
|
|
1404
|
+
responseStream: false,
|
|
1405
|
+
options: {},
|
|
1406
|
+
},
|
|
1407
|
+
},
|
|
1408
|
+
};
|
|
1409
|
+
const tsProtoGlobalThis = (() => {
|
|
1410
|
+
if (typeof globalThis !== "undefined") {
|
|
1411
|
+
return globalThis;
|
|
1412
|
+
}
|
|
1413
|
+
if (typeof self !== "undefined") {
|
|
1414
|
+
return self;
|
|
1415
|
+
}
|
|
1416
|
+
if (typeof window !== "undefined") {
|
|
1417
|
+
return window;
|
|
1418
|
+
}
|
|
1419
|
+
if (typeof global !== "undefined") {
|
|
1420
|
+
return global;
|
|
1421
|
+
}
|
|
1422
|
+
throw "Unable to locate global object";
|
|
1423
|
+
})();
|
|
1424
|
+
function bytesFromBase64(b64) {
|
|
1425
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
1426
|
+
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
1427
|
+
}
|
|
1428
|
+
else {
|
|
1429
|
+
const bin = tsProtoGlobalThis.atob(b64);
|
|
1430
|
+
const arr = new Uint8Array(bin.length);
|
|
1431
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
1432
|
+
arr[i] = bin.charCodeAt(i);
|
|
1433
|
+
}
|
|
1434
|
+
return arr;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
function base64FromBytes(arr) {
|
|
1438
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
1439
|
+
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
1440
|
+
}
|
|
1441
|
+
else {
|
|
1442
|
+
const bin = [];
|
|
1443
|
+
arr.forEach((byte) => {
|
|
1444
|
+
bin.push(String.fromCharCode(byte));
|
|
1445
|
+
});
|
|
1446
|
+
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
function isSet(value) {
|
|
1450
|
+
return value !== null && value !== undefined;
|
|
1451
|
+
}
|
|
1452
|
+
//# sourceMappingURL=engine_api.gen.js.map
|