@dcl/protocol 1.0.0-3462922101.commit-3985a0a → 1.0.0-34643020503.commit-6402953
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +265 -5
- package/out-js/about.gen.d.ts +1 -0
- package/out-js/about.gen.js +6 -0
- package/out-js/about.gen.js.map +1 -0
- package/out-js/comms.gen.d.ts +1 -0
- package/out-js/comms.gen.js +6 -0
- package/out-js/comms.gen.js.map +1 -0
- package/out-js/decentraland/common/border_rect.gen.d.ts +49 -0
- package/out-js/decentraland/common/border_rect.gen.js +201 -0
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
- package/out-js/decentraland/common/colors.gen.d.ts +59 -0
- package/out-js/decentraland/common/colors.gen.js +260 -0
- package/out-js/decentraland/common/colors.gen.js.map +1 -0
- package/out-js/decentraland/common/content_mapping.gen.d.ts +31 -0
- package/out-js/decentraland/common/content_mapping.gen.js +80 -0
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -0
- package/out-js/decentraland/common/sdk/user_data.gen.d.ts +63 -0
- package/out-js/decentraland/common/sdk/user_data.gen.js +330 -0
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -0
- package/out-js/decentraland/common/texture.gen.d.ts +105 -0
- package/out-js/decentraland/common/texture.gen.js +475 -0
- package/out-js/decentraland/common/texture.gen.js.map +1 -0
- package/out-js/decentraland/common/vectors.gen.d.ts +71 -0
- package/out-js/decentraland/common/vectors.gen.js +338 -0
- package/out-js/decentraland/common/vectors.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +206 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +792 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +105 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +400 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +58 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +142 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +338 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +1452 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +283 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +1122 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +225 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +878 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +146 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +557 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +100 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js +360 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/players.gen.d.ts +127 -0
- package/out-js/decentraland/kernel/apis/players.gen.js +372 -0
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +178 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +607 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +383 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1363 -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 +313 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1973 -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 +249 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1384 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -0
- package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
- package/out-js/decentraland/quests/definitions.gen.js +2728 -0
- package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
- package/out-js/decentraland/realm/about.gen.d.ts +229 -0
- package/out-js/decentraland/realm/about.gen.js +1185 -0
- package/out-js/decentraland/realm/about.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +62 -0
- package/out-js/decentraland/sdk/components/animator.gen.js +192 -0
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +61 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js +151 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +138 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +76 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +262 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +64 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +171 -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 +62 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +160 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +264 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +61 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js +142 -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/avatar_mask.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js +34 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.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/explorer_ui.gen.d.ts +19 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +80 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +209 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js +107 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +308 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +73 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +231 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +164 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +108 -0
- package/out-js/decentraland/sdk/components/material.gen.js +536 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +130 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +471 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +115 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +319 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +81 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +201 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +1213 -0
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +81 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +238 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1547 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +51 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +177 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +83 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
- package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
- package/out-js/decentraland/social_service/errors.gen.js +405 -0
- package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2517 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1827 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9308 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
- package/out-js/google/protobuf/descriptor.gen.js +3173 -0
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
- package/out-js/google/protobuf/empty.gen.d.ts +38 -0
- package/out-js/google/protobuf/empty.gen.js +54 -0
- package/out-js/google/protobuf/empty.gen.js.map +1 -0
- package/out-js/quests.gen.d.ts +1 -0
- package/out-js/quests.gen.js +6 -0
- package/out-js/quests.gen.js.map +1 -0
- package/out-js/sdk-apis.gen.d.ts +1 -0
- package/out-js/sdk-apis.gen.js +6 -0
- package/out-js/sdk-apis.gen.js.map +1 -0
- package/out-js/sdk-components.gen.d.ts +1 -0
- package/out-js/sdk-components.gen.js +6 -0
- package/out-js/sdk-components.gen.js.map +1 -0
- package/out-js/sdk-development.gen.d.ts +1 -0
- package/out-js/sdk-development.gen.js +6 -0
- package/out-js/sdk-development.gen.js.map +1 -0
- package/out-js/social.gen.d.ts +1 -0
- package/out-js/social.gen.js +6 -0
- package/out-js/social.gen.js.map +1 -0
- package/out-ts/about.gen.ts +3 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
- package/out-ts/decentraland/common/colors.gen.ts +293 -0
- package/out-ts/decentraland/common/content_mapping.gen.ts +31 -18
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +133 -62
- package/out-ts/decentraland/common/texture.gen.ts +539 -0
- package/out-ts/decentraland/common/vectors.gen.ts +207 -56
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +338 -33
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +54 -34
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +813 -1608
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +506 -293
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +386 -211
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +231 -140
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +136 -72
- package/out-ts/decentraland/kernel/apis/players.gen.ts +170 -100
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +305 -158
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1339 -162
- 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 +356 -94
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +85 -51
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +50 -33
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +99 -66
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +1690 -239
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +404 -241
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1092 -611
- package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
- package/out-ts/decentraland/realm/about.gen.ts +1415 -0
- package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +182 -0
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
- package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
- package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +202 -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 +195 -0
- package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +349 -0
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +172 -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/avatar_mask.gen.ts +31 -0
- package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
- package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +77 -0
- package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +206 -0
- package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
- package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +281 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
- package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +655 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +536 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
- package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +436 -0
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
- package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
- package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
- package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +231 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
- package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1775 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +231 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +108 -0
- package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
- package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
- package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10674 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +1145 -536
- package/out-ts/google/protobuf/empty.gen.ts +21 -16
- package/out-ts/quests.gen.ts +3 -0
- package/out-ts/sdk-components.gen.ts +3 -0
- package/out-ts/sdk-development.gen.ts +3 -0
- package/out-ts/social.gen.ts +3 -0
- package/package.json +21 -10
- package/proto/decentraland/common/border_rect.proto +18 -0
- package/proto/decentraland/common/colors.proto +6 -0
- package/proto/decentraland/common/entity.proto +1 -1
- package/proto/decentraland/common/floats.proto +8 -0
- package/proto/decentraland/common/options.proto +51 -0
- package/proto/decentraland/common/quantization_example.proto +164 -0
- package/proto/decentraland/common/texture.proto +19 -8
- package/proto/decentraland/common/vectors.proto +7 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +19 -2
- package/proto/decentraland/kernel/apis/dev_tools.proto +2 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +37 -111
- package/proto/decentraland/kernel/apis/environment_api.proto +7 -0
- package/proto/decentraland/kernel/apis/ethereum_controller.proto +10 -0
- package/proto/decentraland/kernel/apis/parcel_identity.proto +3 -0
- package/proto/decentraland/kernel/apis/permissions.proto +4 -0
- package/proto/decentraland/kernel/apis/players.proto +6 -0
- package/proto/decentraland/kernel/apis/portable_experiences.proto +15 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +127 -12
- 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 +8 -0
- package/proto/decentraland/kernel/apis/social_controller.proto +6 -3
- package/proto/decentraland/kernel/apis/testing.proto +100 -0
- package/proto/decentraland/kernel/apis/user_action_module.proto +1 -0
- package/proto/decentraland/kernel/apis/user_identity.proto +1 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +92 -0
- package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +6 -3
- package/proto/decentraland/kernel/comms/v3/archipelago.proto +58 -34
- package/proto/decentraland/pulse/pulse_client.proto +120 -0
- package/proto/decentraland/pulse/pulse_server.proto +144 -0
- package/proto/decentraland/pulse/pulse_shared.proto +57 -0
- package/proto/decentraland/quests/definitions.proto +185 -0
- package/proto/decentraland/realm/about.proto +138 -0
- package/proto/decentraland/sdk/components/animator.proto +20 -8
- package/proto/decentraland/sdk/components/asset_load.proto +10 -0
- package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/audio_event.proto +12 -0
- package/proto/decentraland/sdk/components/audio_source.proto +24 -6
- package/proto/decentraland/sdk/components/audio_stream.proto +14 -3
- package/proto/decentraland/sdk/components/avatar_attach.proto +37 -5
- package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
- package/proto/decentraland/sdk/components/avatar_emote_command.proto +32 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -7
- package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +36 -24
- package/proto/decentraland/sdk/components/billboard.proto +24 -6
- package/proto/decentraland/sdk/components/camera_mode.proto +3 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +13 -2
- package/proto/decentraland/sdk/components/common/avatar_mask.proto +7 -0
- package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
- package/proto/decentraland/sdk/components/common/camera_type.proto +1 -0
- package/proto/decentraland/sdk/components/common/explorer_ui.proto +15 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +17 -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 +3 -2
- package/proto/decentraland/sdk/components/engine_info.proto +16 -0
- package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
- package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +33 -0
- package/proto/decentraland/sdk/components/gltf_container.proto +11 -5
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
- package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
- package/proto/decentraland/sdk/components/light_source.proto +28 -0
- package/proto/decentraland/sdk/components/main_camera.proto +11 -0
- package/proto/decentraland/sdk/components/map_pin.proto +16 -0
- package/proto/decentraland/sdk/components/material.proto +8 -7
- package/proto/decentraland/sdk/components/mesh_collider.proto +36 -9
- package/proto/decentraland/sdk/components/mesh_renderer.proto +17 -4
- package/proto/decentraland/sdk/components/nft_shape.proto +15 -7
- package/proto/decentraland/sdk/components/particle_system.proto +133 -0
- package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
- package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
- package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +68 -0
- package/proto/decentraland/sdk/components/pointer_events_result.proto +8 -14
- package/proto/decentraland/sdk/components/pointer_lock.proto +3 -1
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +39 -0
- package/proto/decentraland/sdk/components/raycast.proto +45 -8
- package/proto/decentraland/sdk/components/raycast_result.proto +12 -16
- package/proto/decentraland/sdk/components/realm_info.proto +15 -0
- package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
- package/proto/decentraland/sdk/components/text_shape.proto +33 -21
- package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
- package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
- package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
- package/proto/decentraland/sdk/components/tween.proto +117 -0
- package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
- package/proto/decentraland/sdk/components/tween_state.proto +18 -0
- package/proto/decentraland/sdk/components/ui_background.proto +25 -2
- package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
- package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
- package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
- package/proto/decentraland/sdk/components/ui_input.proto +20 -0
- package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
- package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +14 -5
- package/proto/decentraland/sdk/components/ui_transform.proto +97 -82
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/sdk/components/video_player.proto +24 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
- package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
- package/proto/decentraland/sdk/development/local_development.proto +29 -0
- package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
- package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
- package/proto/decentraland/social_service/errors.proto +30 -0
- package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +721 -0
- package/protoc-gen-bitwise/generator_csharp.js +248 -0
- package/protoc-gen-bitwise/options.js +139 -0
- package/protoc-gen-bitwise/plugin.js +87 -0
- package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
- package/protoc-gen-bitwise/wire.js +239 -0
- package/public/about.proto +5 -0
- package/public/quests.proto +5 -0
- package/public/sdk-apis.proto +4 -0
- package/public/sdk-components.proto +48 -0
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +6 -0
- package/out-ts/bff-services.gen.ts +0 -3
- package/out-ts/decentraland/bff/authentication_service.gen.ts +0 -279
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +0 -239
- package/out-ts/decentraland/bff/comms_service.gen.ts +0 -194
- package/out-ts/decentraland/bff/http_endpoints.gen.ts +0 -845
- package/out-ts/decentraland/bff/topics_service.gen.ts +0 -405
- package/out-ts/decentraland/renderer/engine_interface.gen.ts +0 -8669
- package/out-ts/decentraland/renderer/protocol.gen.ts +0 -267
- package/out-ts/google/api/annotations.gen.ts +0 -3
- package/out-ts/google/api/http.gen.ts +0 -295
- package/out-ts/renderer-interface.gen.ts +0 -3
- package/proto/buf.yaml +0 -45
- package/proto/decentraland/bff/authentication_service.proto +0 -27
- package/proto/decentraland/bff/comms_director_service.proto +0 -33
- package/proto/decentraland/bff/comms_service.proto +0 -25
- package/proto/decentraland/bff/http_endpoints.proto +0 -82
- package/proto/decentraland/bff/topics_service.proto +0 -34
- package/proto/decentraland/renderer/engine_interface.proto +0 -709
- package/proto/decentraland/renderer/protocol.proto +0 -21
- package/proto/decentraland/sdk/components/pointer_hover_feedback.proto +0 -31
- package/proto/google/LICENSE +0 -27
- package/proto/google/README.md +0 -1
- package/proto/google/api/annotations.json +0 -83
- package/proto/google/api/annotations.proto +0 -11
- package/proto/google/api/http.json +0 -86
- package/proto/google/api/http.proto +0 -31
- package/proto/google/protobuf/api.json +0 -118
- package/proto/google/protobuf/api.proto +0 -34
- package/proto/google/protobuf/descriptor.json +0 -739
- package/proto/google/protobuf/descriptor.proto +0 -286
- package/proto/google/protobuf/source_context.json +0 -20
- package/proto/google/protobuf/source_context.proto +0 -7
- package/proto/google/protobuf/type.json +0 -202
- package/proto/google/protobuf/type.proto +0 -89
- package/public/bff-services.proto +0 -16
- package/public/renderer-interface.proto +0 -4
|
@@ -1,164 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { EntityAction } from "../../sdk/ecs6/engine_interface_ecs6.gen";
|
|
3
4
|
|
|
4
5
|
export const protobufPackage = "decentraland.kernel.apis";
|
|
5
6
|
|
|
6
|
-
export enum QueryType {
|
|
7
|
-
QT_INVALID_QUERY_TYPE = 0,
|
|
8
|
-
QT_HIT_FIRST = 1,
|
|
9
|
-
QT_HIT_ALL = 2,
|
|
10
|
-
QT_HIT_FIRST_AVATAR = 3,
|
|
11
|
-
QT_HIT_ALL_AVATARS = 4,
|
|
12
|
-
UNRECOGNIZED = -1,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function queryTypeFromJSON(object: any): QueryType {
|
|
16
|
-
switch (object) {
|
|
17
|
-
case 0:
|
|
18
|
-
case "QT_INVALID_QUERY_TYPE":
|
|
19
|
-
return QueryType.QT_INVALID_QUERY_TYPE;
|
|
20
|
-
case 1:
|
|
21
|
-
case "QT_HIT_FIRST":
|
|
22
|
-
return QueryType.QT_HIT_FIRST;
|
|
23
|
-
case 2:
|
|
24
|
-
case "QT_HIT_ALL":
|
|
25
|
-
return QueryType.QT_HIT_ALL;
|
|
26
|
-
case 3:
|
|
27
|
-
case "QT_HIT_FIRST_AVATAR":
|
|
28
|
-
return QueryType.QT_HIT_FIRST_AVATAR;
|
|
29
|
-
case 4:
|
|
30
|
-
case "QT_HIT_ALL_AVATARS":
|
|
31
|
-
return QueryType.QT_HIT_ALL_AVATARS;
|
|
32
|
-
case -1:
|
|
33
|
-
case "UNRECOGNIZED":
|
|
34
|
-
default:
|
|
35
|
-
return QueryType.UNRECOGNIZED;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function queryTypeToJSON(object: QueryType): string {
|
|
40
|
-
switch (object) {
|
|
41
|
-
case QueryType.QT_INVALID_QUERY_TYPE:
|
|
42
|
-
return "QT_INVALID_QUERY_TYPE";
|
|
43
|
-
case QueryType.QT_HIT_FIRST:
|
|
44
|
-
return "QT_HIT_FIRST";
|
|
45
|
-
case QueryType.QT_HIT_ALL:
|
|
46
|
-
return "QT_HIT_ALL";
|
|
47
|
-
case QueryType.QT_HIT_FIRST_AVATAR:
|
|
48
|
-
return "QT_HIT_FIRST_AVATAR";
|
|
49
|
-
case QueryType.QT_HIT_ALL_AVATARS:
|
|
50
|
-
return "QT_HIT_ALL_AVATARS";
|
|
51
|
-
case QueryType.UNRECOGNIZED:
|
|
52
|
-
default:
|
|
53
|
-
return "UNRECOGNIZED";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export enum EAType {
|
|
58
|
-
EAT_INVALID_EA_TYPE = 0,
|
|
59
|
-
EAT_OPEN_EXTERNAL_URL = 1,
|
|
60
|
-
EAT_OPEN_NFT_DIALOG = 2,
|
|
61
|
-
EAT_CREATE_ENTITY = 3,
|
|
62
|
-
EAT_REMOVE_ENTITY = 4,
|
|
63
|
-
EAT_UPDATE_ENTITY_COMPONENT = 5,
|
|
64
|
-
EAT_ATTACH_ENTITY_COMPONENT = 6,
|
|
65
|
-
EAT_COMPONENT_REMOVED = 7,
|
|
66
|
-
EAT_SET_ENTITY_PARENT = 8,
|
|
67
|
-
EAT_QUERY = 9,
|
|
68
|
-
EAT_COMPONENT_CREATED = 10,
|
|
69
|
-
EAT_COMPONENT_DISPOSED = 11,
|
|
70
|
-
EAT_COMPONENT_UPDATED = 12,
|
|
71
|
-
EAT_INIT_MESSAGES_FINISHED = 13,
|
|
72
|
-
UNRECOGNIZED = -1,
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function eATypeFromJSON(object: any): EAType {
|
|
76
|
-
switch (object) {
|
|
77
|
-
case 0:
|
|
78
|
-
case "EAT_INVALID_EA_TYPE":
|
|
79
|
-
return EAType.EAT_INVALID_EA_TYPE;
|
|
80
|
-
case 1:
|
|
81
|
-
case "EAT_OPEN_EXTERNAL_URL":
|
|
82
|
-
return EAType.EAT_OPEN_EXTERNAL_URL;
|
|
83
|
-
case 2:
|
|
84
|
-
case "EAT_OPEN_NFT_DIALOG":
|
|
85
|
-
return EAType.EAT_OPEN_NFT_DIALOG;
|
|
86
|
-
case 3:
|
|
87
|
-
case "EAT_CREATE_ENTITY":
|
|
88
|
-
return EAType.EAT_CREATE_ENTITY;
|
|
89
|
-
case 4:
|
|
90
|
-
case "EAT_REMOVE_ENTITY":
|
|
91
|
-
return EAType.EAT_REMOVE_ENTITY;
|
|
92
|
-
case 5:
|
|
93
|
-
case "EAT_UPDATE_ENTITY_COMPONENT":
|
|
94
|
-
return EAType.EAT_UPDATE_ENTITY_COMPONENT;
|
|
95
|
-
case 6:
|
|
96
|
-
case "EAT_ATTACH_ENTITY_COMPONENT":
|
|
97
|
-
return EAType.EAT_ATTACH_ENTITY_COMPONENT;
|
|
98
|
-
case 7:
|
|
99
|
-
case "EAT_COMPONENT_REMOVED":
|
|
100
|
-
return EAType.EAT_COMPONENT_REMOVED;
|
|
101
|
-
case 8:
|
|
102
|
-
case "EAT_SET_ENTITY_PARENT":
|
|
103
|
-
return EAType.EAT_SET_ENTITY_PARENT;
|
|
104
|
-
case 9:
|
|
105
|
-
case "EAT_QUERY":
|
|
106
|
-
return EAType.EAT_QUERY;
|
|
107
|
-
case 10:
|
|
108
|
-
case "EAT_COMPONENT_CREATED":
|
|
109
|
-
return EAType.EAT_COMPONENT_CREATED;
|
|
110
|
-
case 11:
|
|
111
|
-
case "EAT_COMPONENT_DISPOSED":
|
|
112
|
-
return EAType.EAT_COMPONENT_DISPOSED;
|
|
113
|
-
case 12:
|
|
114
|
-
case "EAT_COMPONENT_UPDATED":
|
|
115
|
-
return EAType.EAT_COMPONENT_UPDATED;
|
|
116
|
-
case 13:
|
|
117
|
-
case "EAT_INIT_MESSAGES_FINISHED":
|
|
118
|
-
return EAType.EAT_INIT_MESSAGES_FINISHED;
|
|
119
|
-
case -1:
|
|
120
|
-
case "UNRECOGNIZED":
|
|
121
|
-
default:
|
|
122
|
-
return EAType.UNRECOGNIZED;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export function eATypeToJSON(object: EAType): string {
|
|
127
|
-
switch (object) {
|
|
128
|
-
case EAType.EAT_INVALID_EA_TYPE:
|
|
129
|
-
return "EAT_INVALID_EA_TYPE";
|
|
130
|
-
case EAType.EAT_OPEN_EXTERNAL_URL:
|
|
131
|
-
return "EAT_OPEN_EXTERNAL_URL";
|
|
132
|
-
case EAType.EAT_OPEN_NFT_DIALOG:
|
|
133
|
-
return "EAT_OPEN_NFT_DIALOG";
|
|
134
|
-
case EAType.EAT_CREATE_ENTITY:
|
|
135
|
-
return "EAT_CREATE_ENTITY";
|
|
136
|
-
case EAType.EAT_REMOVE_ENTITY:
|
|
137
|
-
return "EAT_REMOVE_ENTITY";
|
|
138
|
-
case EAType.EAT_UPDATE_ENTITY_COMPONENT:
|
|
139
|
-
return "EAT_UPDATE_ENTITY_COMPONENT";
|
|
140
|
-
case EAType.EAT_ATTACH_ENTITY_COMPONENT:
|
|
141
|
-
return "EAT_ATTACH_ENTITY_COMPONENT";
|
|
142
|
-
case EAType.EAT_COMPONENT_REMOVED:
|
|
143
|
-
return "EAT_COMPONENT_REMOVED";
|
|
144
|
-
case EAType.EAT_SET_ENTITY_PARENT:
|
|
145
|
-
return "EAT_SET_ENTITY_PARENT";
|
|
146
|
-
case EAType.EAT_QUERY:
|
|
147
|
-
return "EAT_QUERY";
|
|
148
|
-
case EAType.EAT_COMPONENT_CREATED:
|
|
149
|
-
return "EAT_COMPONENT_CREATED";
|
|
150
|
-
case EAType.EAT_COMPONENT_DISPOSED:
|
|
151
|
-
return "EAT_COMPONENT_DISPOSED";
|
|
152
|
-
case EAType.EAT_COMPONENT_UPDATED:
|
|
153
|
-
return "EAT_COMPONENT_UPDATED";
|
|
154
|
-
case EAType.EAT_INIT_MESSAGES_FINISHED:
|
|
155
|
-
return "EAT_INIT_MESSAGES_FINISHED";
|
|
156
|
-
case EAType.UNRECOGNIZED:
|
|
157
|
-
default:
|
|
158
|
-
return "UNRECOGNIZED";
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
7
|
/** Events */
|
|
163
8
|
export enum EventDataType {
|
|
164
9
|
EDT_GENERIC = 0,
|
|
@@ -199,92 +44,6 @@ export function eventDataTypeToJSON(object: EventDataType): string {
|
|
|
199
44
|
}
|
|
200
45
|
}
|
|
201
46
|
|
|
202
|
-
export interface OpenExternalUrlBody {
|
|
203
|
-
url: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface OpenNFTDialogBody {
|
|
207
|
-
assetContractAddress: string;
|
|
208
|
-
tokenId: string;
|
|
209
|
-
comment?: string | undefined;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface CreateEntityBody {
|
|
213
|
-
id: string;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export interface RemoveEntityBody {
|
|
217
|
-
id: string;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface UpdateEntityComponentBody {
|
|
221
|
-
entityId: string;
|
|
222
|
-
classId: number;
|
|
223
|
-
name: string;
|
|
224
|
-
json: string;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface AttachEntityComponentBody {
|
|
228
|
-
entityId: string;
|
|
229
|
-
name: string;
|
|
230
|
-
id: string;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface ComponentRemovedBody {
|
|
234
|
-
entityId: string;
|
|
235
|
-
name: string;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface SetEntityParentBody {
|
|
239
|
-
entityId: string;
|
|
240
|
-
parentId: string;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export interface QueryBody {
|
|
244
|
-
queryId: QueryType;
|
|
245
|
-
payload: string;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export interface ComponentCreatedBody {
|
|
249
|
-
id: string;
|
|
250
|
-
classId: number;
|
|
251
|
-
name: string;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export interface ComponentDisposedBody {
|
|
255
|
-
id: string;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export interface ComponentUpdatedBody {
|
|
259
|
-
id: string;
|
|
260
|
-
json: string;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export interface InitMessagesFinishedBody {
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface Payload {
|
|
267
|
-
openExternalUrl?: OpenExternalUrlBody | undefined;
|
|
268
|
-
openNftDialog?: OpenNFTDialogBody | undefined;
|
|
269
|
-
createEntity?: CreateEntityBody | undefined;
|
|
270
|
-
removeEntity?: RemoveEntityBody | undefined;
|
|
271
|
-
updateEntityComponent?: UpdateEntityComponentBody | undefined;
|
|
272
|
-
attachEntityComponent?: AttachEntityComponentBody | undefined;
|
|
273
|
-
componentRemoved?: ComponentRemovedBody | undefined;
|
|
274
|
-
setEntityParent?: SetEntityParentBody | undefined;
|
|
275
|
-
query?: QueryBody | undefined;
|
|
276
|
-
componentCreated?: ComponentCreatedBody | undefined;
|
|
277
|
-
componentDisposed?: ComponentDisposedBody | undefined;
|
|
278
|
-
componentUpdated?: ComponentUpdatedBody | undefined;
|
|
279
|
-
initMessagesFinished?: InitMessagesFinishedBody | undefined;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export interface EntityAction {
|
|
283
|
-
type: EAType;
|
|
284
|
-
tag?: string | undefined;
|
|
285
|
-
payload: Payload | undefined;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
47
|
export interface ManyEntityAction {
|
|
289
48
|
actions: EntityAction[];
|
|
290
49
|
}
|
|
@@ -316,1116 +75,108 @@ export interface ReadOnlyVector3 {
|
|
|
316
75
|
x: number;
|
|
317
76
|
y: number;
|
|
318
77
|
z: number;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export interface ReadOnlyQuaternion {
|
|
322
|
-
x: number;
|
|
323
|
-
y: number;
|
|
324
|
-
z: number;
|
|
325
|
-
w: number;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export interface PositionChangedPayload {
|
|
329
|
-
position: ReadOnlyVector3 | undefined;
|
|
330
|
-
cameraPosition: ReadOnlyVector3 | undefined;
|
|
331
|
-
playerHeight: number;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export interface RotationChangedPayload {
|
|
335
|
-
rotation: ReadOnlyVector3 | undefined;
|
|
336
|
-
quaternion: ReadOnlyQuaternion | undefined;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
export interface EventData {
|
|
340
|
-
type: EventDataType;
|
|
341
|
-
generic?: GenericPayload | undefined;
|
|
342
|
-
positionChanged?: PositionChangedPayload | undefined;
|
|
343
|
-
rotationChanged?: RotationChangedPayload | undefined;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
export interface CrdtSendToRendererRequest {
|
|
347
|
-
data: Uint8Array;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
export interface CrdtSendToResponse {
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export interface CrdtMessageFromRendererRequest {
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
export interface CrdtMessageFromRendererResponse {
|
|
357
|
-
data: Uint8Array[];
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
function createBaseOpenExternalUrlBody(): OpenExternalUrlBody {
|
|
361
|
-
return { url: "" };
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export const OpenExternalUrlBody = {
|
|
365
|
-
encode(message: OpenExternalUrlBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
366
|
-
if (message.url !== "") {
|
|
367
|
-
writer.uint32(10).string(message.url);
|
|
368
|
-
}
|
|
369
|
-
return writer;
|
|
370
|
-
},
|
|
371
|
-
|
|
372
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): OpenExternalUrlBody {
|
|
373
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
374
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
375
|
-
const message = createBaseOpenExternalUrlBody();
|
|
376
|
-
while (reader.pos < end) {
|
|
377
|
-
const tag = reader.uint32();
|
|
378
|
-
switch (tag >>> 3) {
|
|
379
|
-
case 1:
|
|
380
|
-
message.url = reader.string();
|
|
381
|
-
break;
|
|
382
|
-
default:
|
|
383
|
-
reader.skipType(tag & 7);
|
|
384
|
-
break;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
return message;
|
|
388
|
-
},
|
|
389
|
-
|
|
390
|
-
fromJSON(object: any): OpenExternalUrlBody {
|
|
391
|
-
return { url: isSet(object.url) ? String(object.url) : "" };
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
toJSON(message: OpenExternalUrlBody): unknown {
|
|
395
|
-
const obj: any = {};
|
|
396
|
-
message.url !== undefined && (obj.url = message.url);
|
|
397
|
-
return obj;
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
fromPartial<I extends Exact<DeepPartial<OpenExternalUrlBody>, I>>(object: I): OpenExternalUrlBody {
|
|
401
|
-
const message = createBaseOpenExternalUrlBody();
|
|
402
|
-
message.url = object.url ?? "";
|
|
403
|
-
return message;
|
|
404
|
-
},
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
function createBaseOpenNFTDialogBody(): OpenNFTDialogBody {
|
|
408
|
-
return { assetContractAddress: "", tokenId: "", comment: undefined };
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export const OpenNFTDialogBody = {
|
|
412
|
-
encode(message: OpenNFTDialogBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
413
|
-
if (message.assetContractAddress !== "") {
|
|
414
|
-
writer.uint32(10).string(message.assetContractAddress);
|
|
415
|
-
}
|
|
416
|
-
if (message.tokenId !== "") {
|
|
417
|
-
writer.uint32(18).string(message.tokenId);
|
|
418
|
-
}
|
|
419
|
-
if (message.comment !== undefined) {
|
|
420
|
-
writer.uint32(26).string(message.comment);
|
|
421
|
-
}
|
|
422
|
-
return writer;
|
|
423
|
-
},
|
|
424
|
-
|
|
425
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): OpenNFTDialogBody {
|
|
426
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
427
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
428
|
-
const message = createBaseOpenNFTDialogBody();
|
|
429
|
-
while (reader.pos < end) {
|
|
430
|
-
const tag = reader.uint32();
|
|
431
|
-
switch (tag >>> 3) {
|
|
432
|
-
case 1:
|
|
433
|
-
message.assetContractAddress = reader.string();
|
|
434
|
-
break;
|
|
435
|
-
case 2:
|
|
436
|
-
message.tokenId = reader.string();
|
|
437
|
-
break;
|
|
438
|
-
case 3:
|
|
439
|
-
message.comment = reader.string();
|
|
440
|
-
break;
|
|
441
|
-
default:
|
|
442
|
-
reader.skipType(tag & 7);
|
|
443
|
-
break;
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
return message;
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
fromJSON(object: any): OpenNFTDialogBody {
|
|
450
|
-
return {
|
|
451
|
-
assetContractAddress: isSet(object.assetContractAddress) ? String(object.assetContractAddress) : "",
|
|
452
|
-
tokenId: isSet(object.tokenId) ? String(object.tokenId) : "",
|
|
453
|
-
comment: isSet(object.comment) ? String(object.comment) : undefined,
|
|
454
|
-
};
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
toJSON(message: OpenNFTDialogBody): unknown {
|
|
458
|
-
const obj: any = {};
|
|
459
|
-
message.assetContractAddress !== undefined && (obj.assetContractAddress = message.assetContractAddress);
|
|
460
|
-
message.tokenId !== undefined && (obj.tokenId = message.tokenId);
|
|
461
|
-
message.comment !== undefined && (obj.comment = message.comment);
|
|
462
|
-
return obj;
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
fromPartial<I extends Exact<DeepPartial<OpenNFTDialogBody>, I>>(object: I): OpenNFTDialogBody {
|
|
466
|
-
const message = createBaseOpenNFTDialogBody();
|
|
467
|
-
message.assetContractAddress = object.assetContractAddress ?? "";
|
|
468
|
-
message.tokenId = object.tokenId ?? "";
|
|
469
|
-
message.comment = object.comment ?? undefined;
|
|
470
|
-
return message;
|
|
471
|
-
},
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
function createBaseCreateEntityBody(): CreateEntityBody {
|
|
475
|
-
return { id: "" };
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
export const CreateEntityBody = {
|
|
479
|
-
encode(message: CreateEntityBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
480
|
-
if (message.id !== "") {
|
|
481
|
-
writer.uint32(10).string(message.id);
|
|
482
|
-
}
|
|
483
|
-
return writer;
|
|
484
|
-
},
|
|
485
|
-
|
|
486
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CreateEntityBody {
|
|
487
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
488
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
489
|
-
const message = createBaseCreateEntityBody();
|
|
490
|
-
while (reader.pos < end) {
|
|
491
|
-
const tag = reader.uint32();
|
|
492
|
-
switch (tag >>> 3) {
|
|
493
|
-
case 1:
|
|
494
|
-
message.id = reader.string();
|
|
495
|
-
break;
|
|
496
|
-
default:
|
|
497
|
-
reader.skipType(tag & 7);
|
|
498
|
-
break;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
return message;
|
|
502
|
-
},
|
|
503
|
-
|
|
504
|
-
fromJSON(object: any): CreateEntityBody {
|
|
505
|
-
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
506
|
-
},
|
|
507
|
-
|
|
508
|
-
toJSON(message: CreateEntityBody): unknown {
|
|
509
|
-
const obj: any = {};
|
|
510
|
-
message.id !== undefined && (obj.id = message.id);
|
|
511
|
-
return obj;
|
|
512
|
-
},
|
|
513
|
-
|
|
514
|
-
fromPartial<I extends Exact<DeepPartial<CreateEntityBody>, I>>(object: I): CreateEntityBody {
|
|
515
|
-
const message = createBaseCreateEntityBody();
|
|
516
|
-
message.id = object.id ?? "";
|
|
517
|
-
return message;
|
|
518
|
-
},
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
function createBaseRemoveEntityBody(): RemoveEntityBody {
|
|
522
|
-
return { id: "" };
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
export const RemoveEntityBody = {
|
|
526
|
-
encode(message: RemoveEntityBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
527
|
-
if (message.id !== "") {
|
|
528
|
-
writer.uint32(10).string(message.id);
|
|
529
|
-
}
|
|
530
|
-
return writer;
|
|
531
|
-
},
|
|
532
|
-
|
|
533
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): RemoveEntityBody {
|
|
534
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
535
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
536
|
-
const message = createBaseRemoveEntityBody();
|
|
537
|
-
while (reader.pos < end) {
|
|
538
|
-
const tag = reader.uint32();
|
|
539
|
-
switch (tag >>> 3) {
|
|
540
|
-
case 1:
|
|
541
|
-
message.id = reader.string();
|
|
542
|
-
break;
|
|
543
|
-
default:
|
|
544
|
-
reader.skipType(tag & 7);
|
|
545
|
-
break;
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
return message;
|
|
549
|
-
},
|
|
550
|
-
|
|
551
|
-
fromJSON(object: any): RemoveEntityBody {
|
|
552
|
-
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
553
|
-
},
|
|
554
|
-
|
|
555
|
-
toJSON(message: RemoveEntityBody): unknown {
|
|
556
|
-
const obj: any = {};
|
|
557
|
-
message.id !== undefined && (obj.id = message.id);
|
|
558
|
-
return obj;
|
|
559
|
-
},
|
|
560
|
-
|
|
561
|
-
fromPartial<I extends Exact<DeepPartial<RemoveEntityBody>, I>>(object: I): RemoveEntityBody {
|
|
562
|
-
const message = createBaseRemoveEntityBody();
|
|
563
|
-
message.id = object.id ?? "";
|
|
564
|
-
return message;
|
|
565
|
-
},
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
function createBaseUpdateEntityComponentBody(): UpdateEntityComponentBody {
|
|
569
|
-
return { entityId: "", classId: 0, name: "", json: "" };
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
export const UpdateEntityComponentBody = {
|
|
573
|
-
encode(message: UpdateEntityComponentBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
574
|
-
if (message.entityId !== "") {
|
|
575
|
-
writer.uint32(10).string(message.entityId);
|
|
576
|
-
}
|
|
577
|
-
if (message.classId !== 0) {
|
|
578
|
-
writer.uint32(16).int32(message.classId);
|
|
579
|
-
}
|
|
580
|
-
if (message.name !== "") {
|
|
581
|
-
writer.uint32(26).string(message.name);
|
|
582
|
-
}
|
|
583
|
-
if (message.json !== "") {
|
|
584
|
-
writer.uint32(34).string(message.json);
|
|
585
|
-
}
|
|
586
|
-
return writer;
|
|
587
|
-
},
|
|
588
|
-
|
|
589
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateEntityComponentBody {
|
|
590
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
591
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
592
|
-
const message = createBaseUpdateEntityComponentBody();
|
|
593
|
-
while (reader.pos < end) {
|
|
594
|
-
const tag = reader.uint32();
|
|
595
|
-
switch (tag >>> 3) {
|
|
596
|
-
case 1:
|
|
597
|
-
message.entityId = reader.string();
|
|
598
|
-
break;
|
|
599
|
-
case 2:
|
|
600
|
-
message.classId = reader.int32();
|
|
601
|
-
break;
|
|
602
|
-
case 3:
|
|
603
|
-
message.name = reader.string();
|
|
604
|
-
break;
|
|
605
|
-
case 4:
|
|
606
|
-
message.json = reader.string();
|
|
607
|
-
break;
|
|
608
|
-
default:
|
|
609
|
-
reader.skipType(tag & 7);
|
|
610
|
-
break;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return message;
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
fromJSON(object: any): UpdateEntityComponentBody {
|
|
617
|
-
return {
|
|
618
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
619
|
-
classId: isSet(object.classId) ? Number(object.classId) : 0,
|
|
620
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
621
|
-
json: isSet(object.json) ? String(object.json) : "",
|
|
622
|
-
};
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
toJSON(message: UpdateEntityComponentBody): unknown {
|
|
626
|
-
const obj: any = {};
|
|
627
|
-
message.entityId !== undefined && (obj.entityId = message.entityId);
|
|
628
|
-
message.classId !== undefined && (obj.classId = Math.round(message.classId));
|
|
629
|
-
message.name !== undefined && (obj.name = message.name);
|
|
630
|
-
message.json !== undefined && (obj.json = message.json);
|
|
631
|
-
return obj;
|
|
632
|
-
},
|
|
633
|
-
|
|
634
|
-
fromPartial<I extends Exact<DeepPartial<UpdateEntityComponentBody>, I>>(object: I): UpdateEntityComponentBody {
|
|
635
|
-
const message = createBaseUpdateEntityComponentBody();
|
|
636
|
-
message.entityId = object.entityId ?? "";
|
|
637
|
-
message.classId = object.classId ?? 0;
|
|
638
|
-
message.name = object.name ?? "";
|
|
639
|
-
message.json = object.json ?? "";
|
|
640
|
-
return message;
|
|
641
|
-
},
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
function createBaseAttachEntityComponentBody(): AttachEntityComponentBody {
|
|
645
|
-
return { entityId: "", name: "", id: "" };
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
export const AttachEntityComponentBody = {
|
|
649
|
-
encode(message: AttachEntityComponentBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
650
|
-
if (message.entityId !== "") {
|
|
651
|
-
writer.uint32(10).string(message.entityId);
|
|
652
|
-
}
|
|
653
|
-
if (message.name !== "") {
|
|
654
|
-
writer.uint32(18).string(message.name);
|
|
655
|
-
}
|
|
656
|
-
if (message.id !== "") {
|
|
657
|
-
writer.uint32(26).string(message.id);
|
|
658
|
-
}
|
|
659
|
-
return writer;
|
|
660
|
-
},
|
|
661
|
-
|
|
662
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AttachEntityComponentBody {
|
|
663
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
664
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
665
|
-
const message = createBaseAttachEntityComponentBody();
|
|
666
|
-
while (reader.pos < end) {
|
|
667
|
-
const tag = reader.uint32();
|
|
668
|
-
switch (tag >>> 3) {
|
|
669
|
-
case 1:
|
|
670
|
-
message.entityId = reader.string();
|
|
671
|
-
break;
|
|
672
|
-
case 2:
|
|
673
|
-
message.name = reader.string();
|
|
674
|
-
break;
|
|
675
|
-
case 3:
|
|
676
|
-
message.id = reader.string();
|
|
677
|
-
break;
|
|
678
|
-
default:
|
|
679
|
-
reader.skipType(tag & 7);
|
|
680
|
-
break;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
return message;
|
|
684
|
-
},
|
|
685
|
-
|
|
686
|
-
fromJSON(object: any): AttachEntityComponentBody {
|
|
687
|
-
return {
|
|
688
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
689
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
690
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
691
|
-
};
|
|
692
|
-
},
|
|
693
|
-
|
|
694
|
-
toJSON(message: AttachEntityComponentBody): unknown {
|
|
695
|
-
const obj: any = {};
|
|
696
|
-
message.entityId !== undefined && (obj.entityId = message.entityId);
|
|
697
|
-
message.name !== undefined && (obj.name = message.name);
|
|
698
|
-
message.id !== undefined && (obj.id = message.id);
|
|
699
|
-
return obj;
|
|
700
|
-
},
|
|
701
|
-
|
|
702
|
-
fromPartial<I extends Exact<DeepPartial<AttachEntityComponentBody>, I>>(object: I): AttachEntityComponentBody {
|
|
703
|
-
const message = createBaseAttachEntityComponentBody();
|
|
704
|
-
message.entityId = object.entityId ?? "";
|
|
705
|
-
message.name = object.name ?? "";
|
|
706
|
-
message.id = object.id ?? "";
|
|
707
|
-
return message;
|
|
708
|
-
},
|
|
709
|
-
};
|
|
710
|
-
|
|
711
|
-
function createBaseComponentRemovedBody(): ComponentRemovedBody {
|
|
712
|
-
return { entityId: "", name: "" };
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
export const ComponentRemovedBody = {
|
|
716
|
-
encode(message: ComponentRemovedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
717
|
-
if (message.entityId !== "") {
|
|
718
|
-
writer.uint32(10).string(message.entityId);
|
|
719
|
-
}
|
|
720
|
-
if (message.name !== "") {
|
|
721
|
-
writer.uint32(18).string(message.name);
|
|
722
|
-
}
|
|
723
|
-
return writer;
|
|
724
|
-
},
|
|
725
|
-
|
|
726
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ComponentRemovedBody {
|
|
727
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
728
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
729
|
-
const message = createBaseComponentRemovedBody();
|
|
730
|
-
while (reader.pos < end) {
|
|
731
|
-
const tag = reader.uint32();
|
|
732
|
-
switch (tag >>> 3) {
|
|
733
|
-
case 1:
|
|
734
|
-
message.entityId = reader.string();
|
|
735
|
-
break;
|
|
736
|
-
case 2:
|
|
737
|
-
message.name = reader.string();
|
|
738
|
-
break;
|
|
739
|
-
default:
|
|
740
|
-
reader.skipType(tag & 7);
|
|
741
|
-
break;
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
return message;
|
|
745
|
-
},
|
|
746
|
-
|
|
747
|
-
fromJSON(object: any): ComponentRemovedBody {
|
|
748
|
-
return {
|
|
749
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
750
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
751
|
-
};
|
|
752
|
-
},
|
|
753
|
-
|
|
754
|
-
toJSON(message: ComponentRemovedBody): unknown {
|
|
755
|
-
const obj: any = {};
|
|
756
|
-
message.entityId !== undefined && (obj.entityId = message.entityId);
|
|
757
|
-
message.name !== undefined && (obj.name = message.name);
|
|
758
|
-
return obj;
|
|
759
|
-
},
|
|
760
|
-
|
|
761
|
-
fromPartial<I extends Exact<DeepPartial<ComponentRemovedBody>, I>>(object: I): ComponentRemovedBody {
|
|
762
|
-
const message = createBaseComponentRemovedBody();
|
|
763
|
-
message.entityId = object.entityId ?? "";
|
|
764
|
-
message.name = object.name ?? "";
|
|
765
|
-
return message;
|
|
766
|
-
},
|
|
767
|
-
};
|
|
768
|
-
|
|
769
|
-
function createBaseSetEntityParentBody(): SetEntityParentBody {
|
|
770
|
-
return { entityId: "", parentId: "" };
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
export const SetEntityParentBody = {
|
|
774
|
-
encode(message: SetEntityParentBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
775
|
-
if (message.entityId !== "") {
|
|
776
|
-
writer.uint32(10).string(message.entityId);
|
|
777
|
-
}
|
|
778
|
-
if (message.parentId !== "") {
|
|
779
|
-
writer.uint32(18).string(message.parentId);
|
|
780
|
-
}
|
|
781
|
-
return writer;
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SetEntityParentBody {
|
|
785
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
786
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
787
|
-
const message = createBaseSetEntityParentBody();
|
|
788
|
-
while (reader.pos < end) {
|
|
789
|
-
const tag = reader.uint32();
|
|
790
|
-
switch (tag >>> 3) {
|
|
791
|
-
case 1:
|
|
792
|
-
message.entityId = reader.string();
|
|
793
|
-
break;
|
|
794
|
-
case 2:
|
|
795
|
-
message.parentId = reader.string();
|
|
796
|
-
break;
|
|
797
|
-
default:
|
|
798
|
-
reader.skipType(tag & 7);
|
|
799
|
-
break;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
return message;
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
fromJSON(object: any): SetEntityParentBody {
|
|
806
|
-
return {
|
|
807
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
808
|
-
parentId: isSet(object.parentId) ? String(object.parentId) : "",
|
|
809
|
-
};
|
|
810
|
-
},
|
|
811
|
-
|
|
812
|
-
toJSON(message: SetEntityParentBody): unknown {
|
|
813
|
-
const obj: any = {};
|
|
814
|
-
message.entityId !== undefined && (obj.entityId = message.entityId);
|
|
815
|
-
message.parentId !== undefined && (obj.parentId = message.parentId);
|
|
816
|
-
return obj;
|
|
817
|
-
},
|
|
818
|
-
|
|
819
|
-
fromPartial<I extends Exact<DeepPartial<SetEntityParentBody>, I>>(object: I): SetEntityParentBody {
|
|
820
|
-
const message = createBaseSetEntityParentBody();
|
|
821
|
-
message.entityId = object.entityId ?? "";
|
|
822
|
-
message.parentId = object.parentId ?? "";
|
|
823
|
-
return message;
|
|
824
|
-
},
|
|
825
|
-
};
|
|
826
|
-
|
|
827
|
-
function createBaseQueryBody(): QueryBody {
|
|
828
|
-
return { queryId: 0, payload: "" };
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
export const QueryBody = {
|
|
832
|
-
encode(message: QueryBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
833
|
-
if (message.queryId !== 0) {
|
|
834
|
-
writer.uint32(8).int32(message.queryId);
|
|
835
|
-
}
|
|
836
|
-
if (message.payload !== "") {
|
|
837
|
-
writer.uint32(18).string(message.payload);
|
|
838
|
-
}
|
|
839
|
-
return writer;
|
|
840
|
-
},
|
|
841
|
-
|
|
842
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBody {
|
|
843
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
844
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
845
|
-
const message = createBaseQueryBody();
|
|
846
|
-
while (reader.pos < end) {
|
|
847
|
-
const tag = reader.uint32();
|
|
848
|
-
switch (tag >>> 3) {
|
|
849
|
-
case 1:
|
|
850
|
-
message.queryId = reader.int32() as any;
|
|
851
|
-
break;
|
|
852
|
-
case 2:
|
|
853
|
-
message.payload = reader.string();
|
|
854
|
-
break;
|
|
855
|
-
default:
|
|
856
|
-
reader.skipType(tag & 7);
|
|
857
|
-
break;
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
return message;
|
|
861
|
-
},
|
|
862
|
-
|
|
863
|
-
fromJSON(object: any): QueryBody {
|
|
864
|
-
return {
|
|
865
|
-
queryId: isSet(object.queryId) ? queryTypeFromJSON(object.queryId) : 0,
|
|
866
|
-
payload: isSet(object.payload) ? String(object.payload) : "",
|
|
867
|
-
};
|
|
868
|
-
},
|
|
869
|
-
|
|
870
|
-
toJSON(message: QueryBody): unknown {
|
|
871
|
-
const obj: any = {};
|
|
872
|
-
message.queryId !== undefined && (obj.queryId = queryTypeToJSON(message.queryId));
|
|
873
|
-
message.payload !== undefined && (obj.payload = message.payload);
|
|
874
|
-
return obj;
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
fromPartial<I extends Exact<DeepPartial<QueryBody>, I>>(object: I): QueryBody {
|
|
878
|
-
const message = createBaseQueryBody();
|
|
879
|
-
message.queryId = object.queryId ?? 0;
|
|
880
|
-
message.payload = object.payload ?? "";
|
|
881
|
-
return message;
|
|
882
|
-
},
|
|
883
|
-
};
|
|
884
|
-
|
|
885
|
-
function createBaseComponentCreatedBody(): ComponentCreatedBody {
|
|
886
|
-
return { id: "", classId: 0, name: "" };
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
export const ComponentCreatedBody = {
|
|
890
|
-
encode(message: ComponentCreatedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
891
|
-
if (message.id !== "") {
|
|
892
|
-
writer.uint32(10).string(message.id);
|
|
893
|
-
}
|
|
894
|
-
if (message.classId !== 0) {
|
|
895
|
-
writer.uint32(16).int32(message.classId);
|
|
896
|
-
}
|
|
897
|
-
if (message.name !== "") {
|
|
898
|
-
writer.uint32(26).string(message.name);
|
|
899
|
-
}
|
|
900
|
-
return writer;
|
|
901
|
-
},
|
|
902
|
-
|
|
903
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ComponentCreatedBody {
|
|
904
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
905
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
906
|
-
const message = createBaseComponentCreatedBody();
|
|
907
|
-
while (reader.pos < end) {
|
|
908
|
-
const tag = reader.uint32();
|
|
909
|
-
switch (tag >>> 3) {
|
|
910
|
-
case 1:
|
|
911
|
-
message.id = reader.string();
|
|
912
|
-
break;
|
|
913
|
-
case 2:
|
|
914
|
-
message.classId = reader.int32();
|
|
915
|
-
break;
|
|
916
|
-
case 3:
|
|
917
|
-
message.name = reader.string();
|
|
918
|
-
break;
|
|
919
|
-
default:
|
|
920
|
-
reader.skipType(tag & 7);
|
|
921
|
-
break;
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
return message;
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
fromJSON(object: any): ComponentCreatedBody {
|
|
928
|
-
return {
|
|
929
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
930
|
-
classId: isSet(object.classId) ? Number(object.classId) : 0,
|
|
931
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
932
|
-
};
|
|
933
|
-
},
|
|
934
|
-
|
|
935
|
-
toJSON(message: ComponentCreatedBody): unknown {
|
|
936
|
-
const obj: any = {};
|
|
937
|
-
message.id !== undefined && (obj.id = message.id);
|
|
938
|
-
message.classId !== undefined && (obj.classId = Math.round(message.classId));
|
|
939
|
-
message.name !== undefined && (obj.name = message.name);
|
|
940
|
-
return obj;
|
|
941
|
-
},
|
|
942
|
-
|
|
943
|
-
fromPartial<I extends Exact<DeepPartial<ComponentCreatedBody>, I>>(object: I): ComponentCreatedBody {
|
|
944
|
-
const message = createBaseComponentCreatedBody();
|
|
945
|
-
message.id = object.id ?? "";
|
|
946
|
-
message.classId = object.classId ?? 0;
|
|
947
|
-
message.name = object.name ?? "";
|
|
948
|
-
return message;
|
|
949
|
-
},
|
|
950
|
-
};
|
|
951
|
-
|
|
952
|
-
function createBaseComponentDisposedBody(): ComponentDisposedBody {
|
|
953
|
-
return { id: "" };
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
export const ComponentDisposedBody = {
|
|
957
|
-
encode(message: ComponentDisposedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
958
|
-
if (message.id !== "") {
|
|
959
|
-
writer.uint32(10).string(message.id);
|
|
960
|
-
}
|
|
961
|
-
return writer;
|
|
962
|
-
},
|
|
963
|
-
|
|
964
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ComponentDisposedBody {
|
|
965
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
966
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
967
|
-
const message = createBaseComponentDisposedBody();
|
|
968
|
-
while (reader.pos < end) {
|
|
969
|
-
const tag = reader.uint32();
|
|
970
|
-
switch (tag >>> 3) {
|
|
971
|
-
case 1:
|
|
972
|
-
message.id = reader.string();
|
|
973
|
-
break;
|
|
974
|
-
default:
|
|
975
|
-
reader.skipType(tag & 7);
|
|
976
|
-
break;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
return message;
|
|
980
|
-
},
|
|
981
|
-
|
|
982
|
-
fromJSON(object: any): ComponentDisposedBody {
|
|
983
|
-
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
984
|
-
},
|
|
985
|
-
|
|
986
|
-
toJSON(message: ComponentDisposedBody): unknown {
|
|
987
|
-
const obj: any = {};
|
|
988
|
-
message.id !== undefined && (obj.id = message.id);
|
|
989
|
-
return obj;
|
|
990
|
-
},
|
|
991
|
-
|
|
992
|
-
fromPartial<I extends Exact<DeepPartial<ComponentDisposedBody>, I>>(object: I): ComponentDisposedBody {
|
|
993
|
-
const message = createBaseComponentDisposedBody();
|
|
994
|
-
message.id = object.id ?? "";
|
|
995
|
-
return message;
|
|
996
|
-
},
|
|
997
|
-
};
|
|
998
|
-
|
|
999
|
-
function createBaseComponentUpdatedBody(): ComponentUpdatedBody {
|
|
1000
|
-
return { id: "", json: "" };
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
export const ComponentUpdatedBody = {
|
|
1004
|
-
encode(message: ComponentUpdatedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1005
|
-
if (message.id !== "") {
|
|
1006
|
-
writer.uint32(10).string(message.id);
|
|
1007
|
-
}
|
|
1008
|
-
if (message.json !== "") {
|
|
1009
|
-
writer.uint32(18).string(message.json);
|
|
1010
|
-
}
|
|
1011
|
-
return writer;
|
|
1012
|
-
},
|
|
1013
|
-
|
|
1014
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ComponentUpdatedBody {
|
|
1015
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1016
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1017
|
-
const message = createBaseComponentUpdatedBody();
|
|
1018
|
-
while (reader.pos < end) {
|
|
1019
|
-
const tag = reader.uint32();
|
|
1020
|
-
switch (tag >>> 3) {
|
|
1021
|
-
case 1:
|
|
1022
|
-
message.id = reader.string();
|
|
1023
|
-
break;
|
|
1024
|
-
case 2:
|
|
1025
|
-
message.json = reader.string();
|
|
1026
|
-
break;
|
|
1027
|
-
default:
|
|
1028
|
-
reader.skipType(tag & 7);
|
|
1029
|
-
break;
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
return message;
|
|
1033
|
-
},
|
|
1034
|
-
|
|
1035
|
-
fromJSON(object: any): ComponentUpdatedBody {
|
|
1036
|
-
return { id: isSet(object.id) ? String(object.id) : "", json: isSet(object.json) ? String(object.json) : "" };
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
toJSON(message: ComponentUpdatedBody): unknown {
|
|
1040
|
-
const obj: any = {};
|
|
1041
|
-
message.id !== undefined && (obj.id = message.id);
|
|
1042
|
-
message.json !== undefined && (obj.json = message.json);
|
|
1043
|
-
return obj;
|
|
1044
|
-
},
|
|
1045
|
-
|
|
1046
|
-
fromPartial<I extends Exact<DeepPartial<ComponentUpdatedBody>, I>>(object: I): ComponentUpdatedBody {
|
|
1047
|
-
const message = createBaseComponentUpdatedBody();
|
|
1048
|
-
message.id = object.id ?? "";
|
|
1049
|
-
message.json = object.json ?? "";
|
|
1050
|
-
return message;
|
|
1051
|
-
},
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
|
-
function createBaseInitMessagesFinishedBody(): InitMessagesFinishedBody {
|
|
1055
|
-
return {};
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
export const InitMessagesFinishedBody = {
|
|
1059
|
-
encode(_: InitMessagesFinishedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1060
|
-
return writer;
|
|
1061
|
-
},
|
|
1062
|
-
|
|
1063
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InitMessagesFinishedBody {
|
|
1064
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1065
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1066
|
-
const message = createBaseInitMessagesFinishedBody();
|
|
1067
|
-
while (reader.pos < end) {
|
|
1068
|
-
const tag = reader.uint32();
|
|
1069
|
-
switch (tag >>> 3) {
|
|
1070
|
-
default:
|
|
1071
|
-
reader.skipType(tag & 7);
|
|
1072
|
-
break;
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
return message;
|
|
1076
|
-
},
|
|
1077
|
-
|
|
1078
|
-
fromJSON(_: any): InitMessagesFinishedBody {
|
|
1079
|
-
return {};
|
|
1080
|
-
},
|
|
1081
|
-
|
|
1082
|
-
toJSON(_: InitMessagesFinishedBody): unknown {
|
|
1083
|
-
const obj: any = {};
|
|
1084
|
-
return obj;
|
|
1085
|
-
},
|
|
1086
|
-
|
|
1087
|
-
fromPartial<I extends Exact<DeepPartial<InitMessagesFinishedBody>, I>>(_: I): InitMessagesFinishedBody {
|
|
1088
|
-
const message = createBaseInitMessagesFinishedBody();
|
|
1089
|
-
return message;
|
|
1090
|
-
},
|
|
1091
|
-
};
|
|
1092
|
-
|
|
1093
|
-
function createBasePayload(): Payload {
|
|
1094
|
-
return {
|
|
1095
|
-
openExternalUrl: undefined,
|
|
1096
|
-
openNftDialog: undefined,
|
|
1097
|
-
createEntity: undefined,
|
|
1098
|
-
removeEntity: undefined,
|
|
1099
|
-
updateEntityComponent: undefined,
|
|
1100
|
-
attachEntityComponent: undefined,
|
|
1101
|
-
componentRemoved: undefined,
|
|
1102
|
-
setEntityParent: undefined,
|
|
1103
|
-
query: undefined,
|
|
1104
|
-
componentCreated: undefined,
|
|
1105
|
-
componentDisposed: undefined,
|
|
1106
|
-
componentUpdated: undefined,
|
|
1107
|
-
initMessagesFinished: undefined,
|
|
1108
|
-
};
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
export const Payload = {
|
|
1112
|
-
encode(message: Payload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1113
|
-
if (message.openExternalUrl !== undefined) {
|
|
1114
|
-
OpenExternalUrlBody.encode(message.openExternalUrl, writer.uint32(10).fork()).ldelim();
|
|
1115
|
-
}
|
|
1116
|
-
if (message.openNftDialog !== undefined) {
|
|
1117
|
-
OpenNFTDialogBody.encode(message.openNftDialog, writer.uint32(18).fork()).ldelim();
|
|
1118
|
-
}
|
|
1119
|
-
if (message.createEntity !== undefined) {
|
|
1120
|
-
CreateEntityBody.encode(message.createEntity, writer.uint32(26).fork()).ldelim();
|
|
1121
|
-
}
|
|
1122
|
-
if (message.removeEntity !== undefined) {
|
|
1123
|
-
RemoveEntityBody.encode(message.removeEntity, writer.uint32(34).fork()).ldelim();
|
|
1124
|
-
}
|
|
1125
|
-
if (message.updateEntityComponent !== undefined) {
|
|
1126
|
-
UpdateEntityComponentBody.encode(message.updateEntityComponent, writer.uint32(42).fork()).ldelim();
|
|
1127
|
-
}
|
|
1128
|
-
if (message.attachEntityComponent !== undefined) {
|
|
1129
|
-
AttachEntityComponentBody.encode(message.attachEntityComponent, writer.uint32(50).fork()).ldelim();
|
|
1130
|
-
}
|
|
1131
|
-
if (message.componentRemoved !== undefined) {
|
|
1132
|
-
ComponentRemovedBody.encode(message.componentRemoved, writer.uint32(58).fork()).ldelim();
|
|
1133
|
-
}
|
|
1134
|
-
if (message.setEntityParent !== undefined) {
|
|
1135
|
-
SetEntityParentBody.encode(message.setEntityParent, writer.uint32(66).fork()).ldelim();
|
|
1136
|
-
}
|
|
1137
|
-
if (message.query !== undefined) {
|
|
1138
|
-
QueryBody.encode(message.query, writer.uint32(74).fork()).ldelim();
|
|
1139
|
-
}
|
|
1140
|
-
if (message.componentCreated !== undefined) {
|
|
1141
|
-
ComponentCreatedBody.encode(message.componentCreated, writer.uint32(82).fork()).ldelim();
|
|
1142
|
-
}
|
|
1143
|
-
if (message.componentDisposed !== undefined) {
|
|
1144
|
-
ComponentDisposedBody.encode(message.componentDisposed, writer.uint32(90).fork()).ldelim();
|
|
1145
|
-
}
|
|
1146
|
-
if (message.componentUpdated !== undefined) {
|
|
1147
|
-
ComponentUpdatedBody.encode(message.componentUpdated, writer.uint32(98).fork()).ldelim();
|
|
1148
|
-
}
|
|
1149
|
-
if (message.initMessagesFinished !== undefined) {
|
|
1150
|
-
InitMessagesFinishedBody.encode(message.initMessagesFinished, writer.uint32(106).fork()).ldelim();
|
|
1151
|
-
}
|
|
1152
|
-
return writer;
|
|
1153
|
-
},
|
|
78
|
+
}
|
|
1154
79
|
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
switch (tag >>> 3) {
|
|
1162
|
-
case 1:
|
|
1163
|
-
message.openExternalUrl = OpenExternalUrlBody.decode(reader, reader.uint32());
|
|
1164
|
-
break;
|
|
1165
|
-
case 2:
|
|
1166
|
-
message.openNftDialog = OpenNFTDialogBody.decode(reader, reader.uint32());
|
|
1167
|
-
break;
|
|
1168
|
-
case 3:
|
|
1169
|
-
message.createEntity = CreateEntityBody.decode(reader, reader.uint32());
|
|
1170
|
-
break;
|
|
1171
|
-
case 4:
|
|
1172
|
-
message.removeEntity = RemoveEntityBody.decode(reader, reader.uint32());
|
|
1173
|
-
break;
|
|
1174
|
-
case 5:
|
|
1175
|
-
message.updateEntityComponent = UpdateEntityComponentBody.decode(reader, reader.uint32());
|
|
1176
|
-
break;
|
|
1177
|
-
case 6:
|
|
1178
|
-
message.attachEntityComponent = AttachEntityComponentBody.decode(reader, reader.uint32());
|
|
1179
|
-
break;
|
|
1180
|
-
case 7:
|
|
1181
|
-
message.componentRemoved = ComponentRemovedBody.decode(reader, reader.uint32());
|
|
1182
|
-
break;
|
|
1183
|
-
case 8:
|
|
1184
|
-
message.setEntityParent = SetEntityParentBody.decode(reader, reader.uint32());
|
|
1185
|
-
break;
|
|
1186
|
-
case 9:
|
|
1187
|
-
message.query = QueryBody.decode(reader, reader.uint32());
|
|
1188
|
-
break;
|
|
1189
|
-
case 10:
|
|
1190
|
-
message.componentCreated = ComponentCreatedBody.decode(reader, reader.uint32());
|
|
1191
|
-
break;
|
|
1192
|
-
case 11:
|
|
1193
|
-
message.componentDisposed = ComponentDisposedBody.decode(reader, reader.uint32());
|
|
1194
|
-
break;
|
|
1195
|
-
case 12:
|
|
1196
|
-
message.componentUpdated = ComponentUpdatedBody.decode(reader, reader.uint32());
|
|
1197
|
-
break;
|
|
1198
|
-
case 13:
|
|
1199
|
-
message.initMessagesFinished = InitMessagesFinishedBody.decode(reader, reader.uint32());
|
|
1200
|
-
break;
|
|
1201
|
-
default:
|
|
1202
|
-
reader.skipType(tag & 7);
|
|
1203
|
-
break;
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
return message;
|
|
1207
|
-
},
|
|
80
|
+
export interface ReadOnlyQuaternion {
|
|
81
|
+
x: number;
|
|
82
|
+
y: number;
|
|
83
|
+
z: number;
|
|
84
|
+
w: number;
|
|
85
|
+
}
|
|
1208
86
|
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
removeEntity: isSet(object.removeEntity) ? RemoveEntityBody.fromJSON(object.removeEntity) : undefined,
|
|
1215
|
-
updateEntityComponent: isSet(object.updateEntityComponent)
|
|
1216
|
-
? UpdateEntityComponentBody.fromJSON(object.updateEntityComponent)
|
|
1217
|
-
: undefined,
|
|
1218
|
-
attachEntityComponent: isSet(object.attachEntityComponent)
|
|
1219
|
-
? AttachEntityComponentBody.fromJSON(object.attachEntityComponent)
|
|
1220
|
-
: undefined,
|
|
1221
|
-
componentRemoved: isSet(object.componentRemoved)
|
|
1222
|
-
? ComponentRemovedBody.fromJSON(object.componentRemoved)
|
|
1223
|
-
: undefined,
|
|
1224
|
-
setEntityParent: isSet(object.setEntityParent) ? SetEntityParentBody.fromJSON(object.setEntityParent) : undefined,
|
|
1225
|
-
query: isSet(object.query) ? QueryBody.fromJSON(object.query) : undefined,
|
|
1226
|
-
componentCreated: isSet(object.componentCreated)
|
|
1227
|
-
? ComponentCreatedBody.fromJSON(object.componentCreated)
|
|
1228
|
-
: undefined,
|
|
1229
|
-
componentDisposed: isSet(object.componentDisposed)
|
|
1230
|
-
? ComponentDisposedBody.fromJSON(object.componentDisposed)
|
|
1231
|
-
: undefined,
|
|
1232
|
-
componentUpdated: isSet(object.componentUpdated)
|
|
1233
|
-
? ComponentUpdatedBody.fromJSON(object.componentUpdated)
|
|
1234
|
-
: undefined,
|
|
1235
|
-
initMessagesFinished: isSet(object.initMessagesFinished)
|
|
1236
|
-
? InitMessagesFinishedBody.fromJSON(object.initMessagesFinished)
|
|
1237
|
-
: undefined,
|
|
1238
|
-
};
|
|
1239
|
-
},
|
|
87
|
+
export interface PositionChangedPayload {
|
|
88
|
+
position: ReadOnlyVector3 | undefined;
|
|
89
|
+
cameraPosition: ReadOnlyVector3 | undefined;
|
|
90
|
+
playerHeight: number;
|
|
91
|
+
}
|
|
1240
92
|
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
message.openNftDialog !== undefined &&
|
|
1246
|
-
(obj.openNftDialog = message.openNftDialog ? OpenNFTDialogBody.toJSON(message.openNftDialog) : undefined);
|
|
1247
|
-
message.createEntity !== undefined &&
|
|
1248
|
-
(obj.createEntity = message.createEntity ? CreateEntityBody.toJSON(message.createEntity) : undefined);
|
|
1249
|
-
message.removeEntity !== undefined &&
|
|
1250
|
-
(obj.removeEntity = message.removeEntity ? RemoveEntityBody.toJSON(message.removeEntity) : undefined);
|
|
1251
|
-
message.updateEntityComponent !== undefined && (obj.updateEntityComponent = message.updateEntityComponent
|
|
1252
|
-
? UpdateEntityComponentBody.toJSON(message.updateEntityComponent)
|
|
1253
|
-
: undefined);
|
|
1254
|
-
message.attachEntityComponent !== undefined && (obj.attachEntityComponent = message.attachEntityComponent
|
|
1255
|
-
? AttachEntityComponentBody.toJSON(message.attachEntityComponent)
|
|
1256
|
-
: undefined);
|
|
1257
|
-
message.componentRemoved !== undefined && (obj.componentRemoved = message.componentRemoved
|
|
1258
|
-
? ComponentRemovedBody.toJSON(message.componentRemoved)
|
|
1259
|
-
: undefined);
|
|
1260
|
-
message.setEntityParent !== undefined &&
|
|
1261
|
-
(obj.setEntityParent = message.setEntityParent ? SetEntityParentBody.toJSON(message.setEntityParent) : undefined);
|
|
1262
|
-
message.query !== undefined && (obj.query = message.query ? QueryBody.toJSON(message.query) : undefined);
|
|
1263
|
-
message.componentCreated !== undefined && (obj.componentCreated = message.componentCreated
|
|
1264
|
-
? ComponentCreatedBody.toJSON(message.componentCreated)
|
|
1265
|
-
: undefined);
|
|
1266
|
-
message.componentDisposed !== undefined && (obj.componentDisposed = message.componentDisposed
|
|
1267
|
-
? ComponentDisposedBody.toJSON(message.componentDisposed)
|
|
1268
|
-
: undefined);
|
|
1269
|
-
message.componentUpdated !== undefined && (obj.componentUpdated = message.componentUpdated
|
|
1270
|
-
? ComponentUpdatedBody.toJSON(message.componentUpdated)
|
|
1271
|
-
: undefined);
|
|
1272
|
-
message.initMessagesFinished !== undefined && (obj.initMessagesFinished = message.initMessagesFinished
|
|
1273
|
-
? InitMessagesFinishedBody.toJSON(message.initMessagesFinished)
|
|
1274
|
-
: undefined);
|
|
1275
|
-
return obj;
|
|
1276
|
-
},
|
|
93
|
+
export interface RotationChangedPayload {
|
|
94
|
+
rotation: ReadOnlyVector3 | undefined;
|
|
95
|
+
quaternion: ReadOnlyQuaternion | undefined;
|
|
96
|
+
}
|
|
1277
97
|
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
? OpenNFTDialogBody.fromPartial(object.openNftDialog)
|
|
1285
|
-
: undefined;
|
|
1286
|
-
message.createEntity = (object.createEntity !== undefined && object.createEntity !== null)
|
|
1287
|
-
? CreateEntityBody.fromPartial(object.createEntity)
|
|
1288
|
-
: undefined;
|
|
1289
|
-
message.removeEntity = (object.removeEntity !== undefined && object.removeEntity !== null)
|
|
1290
|
-
? RemoveEntityBody.fromPartial(object.removeEntity)
|
|
1291
|
-
: undefined;
|
|
1292
|
-
message.updateEntityComponent =
|
|
1293
|
-
(object.updateEntityComponent !== undefined && object.updateEntityComponent !== null)
|
|
1294
|
-
? UpdateEntityComponentBody.fromPartial(object.updateEntityComponent)
|
|
1295
|
-
: undefined;
|
|
1296
|
-
message.attachEntityComponent =
|
|
1297
|
-
(object.attachEntityComponent !== undefined && object.attachEntityComponent !== null)
|
|
1298
|
-
? AttachEntityComponentBody.fromPartial(object.attachEntityComponent)
|
|
1299
|
-
: undefined;
|
|
1300
|
-
message.componentRemoved = (object.componentRemoved !== undefined && object.componentRemoved !== null)
|
|
1301
|
-
? ComponentRemovedBody.fromPartial(object.componentRemoved)
|
|
1302
|
-
: undefined;
|
|
1303
|
-
message.setEntityParent = (object.setEntityParent !== undefined && object.setEntityParent !== null)
|
|
1304
|
-
? SetEntityParentBody.fromPartial(object.setEntityParent)
|
|
1305
|
-
: undefined;
|
|
1306
|
-
message.query = (object.query !== undefined && object.query !== null)
|
|
1307
|
-
? QueryBody.fromPartial(object.query)
|
|
1308
|
-
: undefined;
|
|
1309
|
-
message.componentCreated = (object.componentCreated !== undefined && object.componentCreated !== null)
|
|
1310
|
-
? ComponentCreatedBody.fromPartial(object.componentCreated)
|
|
1311
|
-
: undefined;
|
|
1312
|
-
message.componentDisposed = (object.componentDisposed !== undefined && object.componentDisposed !== null)
|
|
1313
|
-
? ComponentDisposedBody.fromPartial(object.componentDisposed)
|
|
1314
|
-
: undefined;
|
|
1315
|
-
message.componentUpdated = (object.componentUpdated !== undefined && object.componentUpdated !== null)
|
|
1316
|
-
? ComponentUpdatedBody.fromPartial(object.componentUpdated)
|
|
1317
|
-
: undefined;
|
|
1318
|
-
message.initMessagesFinished = (object.initMessagesFinished !== undefined && object.initMessagesFinished !== null)
|
|
1319
|
-
? InitMessagesFinishedBody.fromPartial(object.initMessagesFinished)
|
|
1320
|
-
: undefined;
|
|
1321
|
-
return message;
|
|
1322
|
-
},
|
|
1323
|
-
};
|
|
98
|
+
export interface EventData {
|
|
99
|
+
type: EventDataType;
|
|
100
|
+
generic?: GenericPayload | undefined;
|
|
101
|
+
positionChanged?: PositionChangedPayload | undefined;
|
|
102
|
+
rotationChanged?: RotationChangedPayload | undefined;
|
|
103
|
+
}
|
|
1324
104
|
|
|
1325
|
-
|
|
1326
|
-
|
|
105
|
+
export interface CrdtSendToRendererRequest {
|
|
106
|
+
data: Uint8Array;
|
|
1327
107
|
}
|
|
1328
108
|
|
|
1329
|
-
export
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
}
|
|
1334
|
-
if (message.tag !== undefined) {
|
|
1335
|
-
writer.uint32(18).string(message.tag);
|
|
1336
|
-
}
|
|
1337
|
-
if (message.payload !== undefined) {
|
|
1338
|
-
Payload.encode(message.payload, writer.uint32(26).fork()).ldelim();
|
|
1339
|
-
}
|
|
1340
|
-
return writer;
|
|
1341
|
-
},
|
|
109
|
+
export interface CrdtSendToResponse {
|
|
110
|
+
/** list of CRDT messages coming back from the renderer */
|
|
111
|
+
data: Uint8Array[];
|
|
112
|
+
}
|
|
1342
113
|
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1346
|
-
const message = createBaseEntityAction();
|
|
1347
|
-
while (reader.pos < end) {
|
|
1348
|
-
const tag = reader.uint32();
|
|
1349
|
-
switch (tag >>> 3) {
|
|
1350
|
-
case 1:
|
|
1351
|
-
message.type = reader.int32() as any;
|
|
1352
|
-
break;
|
|
1353
|
-
case 2:
|
|
1354
|
-
message.tag = reader.string();
|
|
1355
|
-
break;
|
|
1356
|
-
case 3:
|
|
1357
|
-
message.payload = Payload.decode(reader, reader.uint32());
|
|
1358
|
-
break;
|
|
1359
|
-
default:
|
|
1360
|
-
reader.skipType(tag & 7);
|
|
1361
|
-
break;
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
return message;
|
|
1365
|
-
},
|
|
114
|
+
export interface CrdtGetStateRequest {
|
|
115
|
+
}
|
|
1366
116
|
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
},
|
|
117
|
+
export interface CrdtGetStateResponse {
|
|
118
|
+
/** returns true if the returned state has scene-created entities */
|
|
119
|
+
hasEntities: boolean;
|
|
120
|
+
/** static entities data (root entity, camera, etc) and scene-created entities */
|
|
121
|
+
data: Uint8Array[];
|
|
122
|
+
}
|
|
1374
123
|
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
message.tag !== undefined && (obj.tag = message.tag);
|
|
1379
|
-
message.payload !== undefined && (obj.payload = message.payload ? Payload.toJSON(message.payload) : undefined);
|
|
1380
|
-
return obj;
|
|
1381
|
-
},
|
|
124
|
+
/** deprecated */
|
|
125
|
+
export interface CrdtMessageFromRendererRequest {
|
|
126
|
+
}
|
|
1382
127
|
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
128
|
+
/** deprecated */
|
|
129
|
+
export interface CrdtMessageFromRendererResponse {
|
|
130
|
+
data: Uint8Array[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface IsServerRequest {
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface IsServerResponse {
|
|
137
|
+
isServer: boolean;
|
|
138
|
+
}
|
|
1393
139
|
|
|
1394
140
|
function createBaseManyEntityAction(): ManyEntityAction {
|
|
1395
141
|
return { actions: [] };
|
|
1396
142
|
}
|
|
1397
143
|
|
|
1398
|
-
export
|
|
1399
|
-
encode(message: ManyEntityAction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
144
|
+
export namespace ManyEntityAction {
|
|
145
|
+
export function encode(message: ManyEntityAction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1400
146
|
for (const v of message.actions) {
|
|
1401
147
|
EntityAction.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1402
148
|
}
|
|
1403
149
|
return writer;
|
|
1404
|
-
}
|
|
150
|
+
}
|
|
1405
151
|
|
|
1406
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ManyEntityAction {
|
|
1407
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
152
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ManyEntityAction {
|
|
153
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1408
154
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1409
155
|
const message = createBaseManyEntityAction();
|
|
1410
156
|
while (reader.pos < end) {
|
|
1411
157
|
const tag = reader.uint32();
|
|
1412
158
|
switch (tag >>> 3) {
|
|
1413
159
|
case 1:
|
|
160
|
+
if (tag !== 10) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
|
|
1414
164
|
message.actions.push(EntityAction.decode(reader, reader.uint32()));
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
168
|
+
break;
|
|
1419
169
|
}
|
|
170
|
+
reader.skipType(tag & 7);
|
|
1420
171
|
}
|
|
1421
172
|
return message;
|
|
1422
|
-
}
|
|
173
|
+
}
|
|
1423
174
|
|
|
1424
|
-
fromJSON(object: any): ManyEntityAction {
|
|
175
|
+
export function fromJSON(object: any): ManyEntityAction {
|
|
1425
176
|
return { actions: Array.isArray(object?.actions) ? object.actions.map((e: any) => EntityAction.fromJSON(e)) : [] };
|
|
1426
|
-
}
|
|
177
|
+
}
|
|
1427
178
|
|
|
1428
|
-
toJSON(message: ManyEntityAction): unknown {
|
|
179
|
+
export function toJSON(message: ManyEntityAction): unknown {
|
|
1429
180
|
const obj: any = {};
|
|
1430
181
|
if (message.actions) {
|
|
1431
182
|
obj.actions = message.actions.map((e) => e ? EntityAction.toJSON(e) : undefined);
|
|
@@ -1433,50 +184,59 @@ export const ManyEntityAction = {
|
|
|
1433
184
|
obj.actions = [];
|
|
1434
185
|
}
|
|
1435
186
|
return obj;
|
|
1436
|
-
}
|
|
187
|
+
}
|
|
1437
188
|
|
|
1438
|
-
|
|
189
|
+
export function create<I extends Exact<DeepPartial<ManyEntityAction>, I>>(base?: I): ManyEntityAction {
|
|
190
|
+
return ManyEntityAction.fromPartial(base ?? {});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function fromPartial<I extends Exact<DeepPartial<ManyEntityAction>, I>>(object: I): ManyEntityAction {
|
|
1439
194
|
const message = createBaseManyEntityAction();
|
|
1440
195
|
message.actions = object.actions?.map((e) => EntityAction.fromPartial(e)) || [];
|
|
1441
196
|
return message;
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
1444
199
|
|
|
1445
200
|
function createBaseSendBatchResponse(): SendBatchResponse {
|
|
1446
201
|
return { events: [] };
|
|
1447
202
|
}
|
|
1448
203
|
|
|
1449
|
-
export
|
|
1450
|
-
encode(message: SendBatchResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
204
|
+
export namespace SendBatchResponse {
|
|
205
|
+
export function encode(message: SendBatchResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1451
206
|
for (const v of message.events) {
|
|
1452
207
|
EventData.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1453
208
|
}
|
|
1454
209
|
return writer;
|
|
1455
|
-
}
|
|
210
|
+
}
|
|
1456
211
|
|
|
1457
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SendBatchResponse {
|
|
1458
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
212
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SendBatchResponse {
|
|
213
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1459
214
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1460
215
|
const message = createBaseSendBatchResponse();
|
|
1461
216
|
while (reader.pos < end) {
|
|
1462
217
|
const tag = reader.uint32();
|
|
1463
218
|
switch (tag >>> 3) {
|
|
1464
219
|
case 1:
|
|
220
|
+
if (tag !== 10) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
|
|
1465
224
|
message.events.push(EventData.decode(reader, reader.uint32()));
|
|
1466
|
-
|
|
1467
|
-
default:
|
|
1468
|
-
reader.skipType(tag & 7);
|
|
1469
|
-
break;
|
|
225
|
+
continue;
|
|
1470
226
|
}
|
|
227
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
reader.skipType(tag & 7);
|
|
1471
231
|
}
|
|
1472
232
|
return message;
|
|
1473
|
-
}
|
|
233
|
+
}
|
|
1474
234
|
|
|
1475
|
-
fromJSON(object: any): SendBatchResponse {
|
|
235
|
+
export function fromJSON(object: any): SendBatchResponse {
|
|
1476
236
|
return { events: Array.isArray(object?.events) ? object.events.map((e: any) => EventData.fromJSON(e)) : [] };
|
|
1477
|
-
}
|
|
237
|
+
}
|
|
1478
238
|
|
|
1479
|
-
toJSON(message: SendBatchResponse): unknown {
|
|
239
|
+
export function toJSON(message: SendBatchResponse): unknown {
|
|
1480
240
|
const obj: any = {};
|
|
1481
241
|
if (message.events) {
|
|
1482
242
|
obj.events = message.events.map((e) => e ? EventData.toJSON(e) : undefined);
|
|
@@ -1484,193 +244,225 @@ export const SendBatchResponse = {
|
|
|
1484
244
|
obj.events = [];
|
|
1485
245
|
}
|
|
1486
246
|
return obj;
|
|
1487
|
-
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export function create<I extends Exact<DeepPartial<SendBatchResponse>, I>>(base?: I): SendBatchResponse {
|
|
250
|
+
return SendBatchResponse.fromPartial(base ?? {});
|
|
251
|
+
}
|
|
1488
252
|
|
|
1489
|
-
fromPartial<I extends Exact<DeepPartial<SendBatchResponse>, I>>(object: I): SendBatchResponse {
|
|
253
|
+
export function fromPartial<I extends Exact<DeepPartial<SendBatchResponse>, I>>(object: I): SendBatchResponse {
|
|
1490
254
|
const message = createBaseSendBatchResponse();
|
|
1491
255
|
message.events = object.events?.map((e) => EventData.fromPartial(e)) || [];
|
|
1492
256
|
return message;
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
1495
259
|
|
|
1496
260
|
function createBaseUnsubscribeRequest(): UnsubscribeRequest {
|
|
1497
261
|
return { eventId: "" };
|
|
1498
262
|
}
|
|
1499
263
|
|
|
1500
|
-
export
|
|
1501
|
-
encode(message: UnsubscribeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
264
|
+
export namespace UnsubscribeRequest {
|
|
265
|
+
export function encode(message: UnsubscribeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1502
266
|
if (message.eventId !== "") {
|
|
1503
267
|
writer.uint32(10).string(message.eventId);
|
|
1504
268
|
}
|
|
1505
269
|
return writer;
|
|
1506
|
-
}
|
|
270
|
+
}
|
|
1507
271
|
|
|
1508
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscribeRequest {
|
|
1509
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
272
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscribeRequest {
|
|
273
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1510
274
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1511
275
|
const message = createBaseUnsubscribeRequest();
|
|
1512
276
|
while (reader.pos < end) {
|
|
1513
277
|
const tag = reader.uint32();
|
|
1514
278
|
switch (tag >>> 3) {
|
|
1515
279
|
case 1:
|
|
280
|
+
if (tag !== 10) {
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
|
|
1516
284
|
message.eventId = reader.string();
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
288
|
+
break;
|
|
1521
289
|
}
|
|
290
|
+
reader.skipType(tag & 7);
|
|
1522
291
|
}
|
|
1523
292
|
return message;
|
|
1524
|
-
}
|
|
293
|
+
}
|
|
1525
294
|
|
|
1526
|
-
fromJSON(object: any): UnsubscribeRequest {
|
|
295
|
+
export function fromJSON(object: any): UnsubscribeRequest {
|
|
1527
296
|
return { eventId: isSet(object.eventId) ? String(object.eventId) : "" };
|
|
1528
|
-
}
|
|
297
|
+
}
|
|
1529
298
|
|
|
1530
|
-
toJSON(message: UnsubscribeRequest): unknown {
|
|
299
|
+
export function toJSON(message: UnsubscribeRequest): unknown {
|
|
1531
300
|
const obj: any = {};
|
|
1532
301
|
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
1533
302
|
return obj;
|
|
1534
|
-
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export function create<I extends Exact<DeepPartial<UnsubscribeRequest>, I>>(base?: I): UnsubscribeRequest {
|
|
306
|
+
return UnsubscribeRequest.fromPartial(base ?? {});
|
|
307
|
+
}
|
|
1535
308
|
|
|
1536
|
-
fromPartial<I extends Exact<DeepPartial<UnsubscribeRequest>, I>>(object: I): UnsubscribeRequest {
|
|
309
|
+
export function fromPartial<I extends Exact<DeepPartial<UnsubscribeRequest>, I>>(object: I): UnsubscribeRequest {
|
|
1537
310
|
const message = createBaseUnsubscribeRequest();
|
|
1538
311
|
message.eventId = object.eventId ?? "";
|
|
1539
312
|
return message;
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
1542
315
|
|
|
1543
316
|
function createBaseSubscribeRequest(): SubscribeRequest {
|
|
1544
317
|
return { eventId: "" };
|
|
1545
318
|
}
|
|
1546
319
|
|
|
1547
|
-
export
|
|
1548
|
-
encode(message: SubscribeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
320
|
+
export namespace SubscribeRequest {
|
|
321
|
+
export function encode(message: SubscribeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1549
322
|
if (message.eventId !== "") {
|
|
1550
323
|
writer.uint32(10).string(message.eventId);
|
|
1551
324
|
}
|
|
1552
325
|
return writer;
|
|
1553
|
-
}
|
|
326
|
+
}
|
|
1554
327
|
|
|
1555
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeRequest {
|
|
1556
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
328
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeRequest {
|
|
329
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1557
330
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1558
331
|
const message = createBaseSubscribeRequest();
|
|
1559
332
|
while (reader.pos < end) {
|
|
1560
333
|
const tag = reader.uint32();
|
|
1561
334
|
switch (tag >>> 3) {
|
|
1562
335
|
case 1:
|
|
336
|
+
if (tag !== 10) {
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
|
|
1563
340
|
message.eventId = reader.string();
|
|
1564
|
-
|
|
1565
|
-
default:
|
|
1566
|
-
reader.skipType(tag & 7);
|
|
1567
|
-
break;
|
|
341
|
+
continue;
|
|
1568
342
|
}
|
|
343
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
reader.skipType(tag & 7);
|
|
1569
347
|
}
|
|
1570
348
|
return message;
|
|
1571
|
-
}
|
|
349
|
+
}
|
|
1572
350
|
|
|
1573
|
-
fromJSON(object: any): SubscribeRequest {
|
|
351
|
+
export function fromJSON(object: any): SubscribeRequest {
|
|
1574
352
|
return { eventId: isSet(object.eventId) ? String(object.eventId) : "" };
|
|
1575
|
-
}
|
|
353
|
+
}
|
|
1576
354
|
|
|
1577
|
-
toJSON(message: SubscribeRequest): unknown {
|
|
355
|
+
export function toJSON(message: SubscribeRequest): unknown {
|
|
1578
356
|
const obj: any = {};
|
|
1579
357
|
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
1580
358
|
return obj;
|
|
1581
|
-
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export function create<I extends Exact<DeepPartial<SubscribeRequest>, I>>(base?: I): SubscribeRequest {
|
|
362
|
+
return SubscribeRequest.fromPartial(base ?? {});
|
|
363
|
+
}
|
|
1582
364
|
|
|
1583
|
-
fromPartial<I extends Exact<DeepPartial<SubscribeRequest>, I>>(object: I): SubscribeRequest {
|
|
365
|
+
export function fromPartial<I extends Exact<DeepPartial<SubscribeRequest>, I>>(object: I): SubscribeRequest {
|
|
1584
366
|
const message = createBaseSubscribeRequest();
|
|
1585
367
|
message.eventId = object.eventId ?? "";
|
|
1586
368
|
return message;
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
1589
371
|
|
|
1590
372
|
function createBaseSubscribeResponse(): SubscribeResponse {
|
|
1591
373
|
return {};
|
|
1592
374
|
}
|
|
1593
375
|
|
|
1594
|
-
export
|
|
1595
|
-
encode(_: SubscribeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
376
|
+
export namespace SubscribeResponse {
|
|
377
|
+
export function encode(_: SubscribeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1596
378
|
return writer;
|
|
1597
|
-
}
|
|
379
|
+
}
|
|
1598
380
|
|
|
1599
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeResponse {
|
|
1600
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
381
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeResponse {
|
|
382
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1601
383
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1602
384
|
const message = createBaseSubscribeResponse();
|
|
1603
385
|
while (reader.pos < end) {
|
|
1604
386
|
const tag = reader.uint32();
|
|
1605
387
|
switch (tag >>> 3) {
|
|
1606
|
-
default:
|
|
1607
|
-
reader.skipType(tag & 7);
|
|
1608
|
-
break;
|
|
1609
388
|
}
|
|
389
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
reader.skipType(tag & 7);
|
|
1610
393
|
}
|
|
1611
394
|
return message;
|
|
1612
|
-
}
|
|
395
|
+
}
|
|
1613
396
|
|
|
1614
|
-
fromJSON(_: any): SubscribeResponse {
|
|
397
|
+
export function fromJSON(_: any): SubscribeResponse {
|
|
1615
398
|
return {};
|
|
1616
|
-
}
|
|
399
|
+
}
|
|
1617
400
|
|
|
1618
|
-
toJSON(_: SubscribeResponse): unknown {
|
|
401
|
+
export function toJSON(_: SubscribeResponse): unknown {
|
|
1619
402
|
const obj: any = {};
|
|
1620
403
|
return obj;
|
|
1621
|
-
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export function create<I extends Exact<DeepPartial<SubscribeResponse>, I>>(base?: I): SubscribeResponse {
|
|
407
|
+
return SubscribeResponse.fromPartial(base ?? {});
|
|
408
|
+
}
|
|
1622
409
|
|
|
1623
|
-
fromPartial<I extends Exact<DeepPartial<SubscribeResponse>, I>>(_: I): SubscribeResponse {
|
|
410
|
+
export function fromPartial<I extends Exact<DeepPartial<SubscribeResponse>, I>>(_: I): SubscribeResponse {
|
|
1624
411
|
const message = createBaseSubscribeResponse();
|
|
1625
412
|
return message;
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
1628
415
|
|
|
1629
416
|
function createBaseUnsubscribeResponse(): UnsubscribeResponse {
|
|
1630
417
|
return {};
|
|
1631
418
|
}
|
|
1632
419
|
|
|
1633
|
-
export
|
|
1634
|
-
encode(_: UnsubscribeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
420
|
+
export namespace UnsubscribeResponse {
|
|
421
|
+
export function encode(_: UnsubscribeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1635
422
|
return writer;
|
|
1636
|
-
}
|
|
423
|
+
}
|
|
1637
424
|
|
|
1638
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscribeResponse {
|
|
1639
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
425
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscribeResponse {
|
|
426
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1640
427
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1641
428
|
const message = createBaseUnsubscribeResponse();
|
|
1642
429
|
while (reader.pos < end) {
|
|
1643
430
|
const tag = reader.uint32();
|
|
1644
431
|
switch (tag >>> 3) {
|
|
1645
|
-
default:
|
|
1646
|
-
reader.skipType(tag & 7);
|
|
1647
|
-
break;
|
|
1648
432
|
}
|
|
433
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
reader.skipType(tag & 7);
|
|
1649
437
|
}
|
|
1650
438
|
return message;
|
|
1651
|
-
}
|
|
439
|
+
}
|
|
1652
440
|
|
|
1653
|
-
fromJSON(_: any): UnsubscribeResponse {
|
|
441
|
+
export function fromJSON(_: any): UnsubscribeResponse {
|
|
1654
442
|
return {};
|
|
1655
|
-
}
|
|
443
|
+
}
|
|
1656
444
|
|
|
1657
|
-
toJSON(_: UnsubscribeResponse): unknown {
|
|
445
|
+
export function toJSON(_: UnsubscribeResponse): unknown {
|
|
1658
446
|
const obj: any = {};
|
|
1659
447
|
return obj;
|
|
1660
|
-
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export function create<I extends Exact<DeepPartial<UnsubscribeResponse>, I>>(base?: I): UnsubscribeResponse {
|
|
451
|
+
return UnsubscribeResponse.fromPartial(base ?? {});
|
|
452
|
+
}
|
|
1661
453
|
|
|
1662
|
-
fromPartial<I extends Exact<DeepPartial<UnsubscribeResponse>, I>>(_: I): UnsubscribeResponse {
|
|
454
|
+
export function fromPartial<I extends Exact<DeepPartial<UnsubscribeResponse>, I>>(_: I): UnsubscribeResponse {
|
|
1663
455
|
const message = createBaseUnsubscribeResponse();
|
|
1664
456
|
return message;
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
1667
459
|
|
|
1668
460
|
function createBaseGenericPayload(): GenericPayload {
|
|
1669
461
|
return { eventId: "", eventData: "" };
|
|
1670
462
|
}
|
|
1671
463
|
|
|
1672
|
-
export
|
|
1673
|
-
encode(message: GenericPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
464
|
+
export namespace GenericPayload {
|
|
465
|
+
export function encode(message: GenericPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1674
466
|
if (message.eventId !== "") {
|
|
1675
467
|
writer.uint32(26).string(message.eventId);
|
|
1676
468
|
}
|
|
@@ -1678,57 +470,70 @@ export const GenericPayload = {
|
|
|
1678
470
|
writer.uint32(34).string(message.eventData);
|
|
1679
471
|
}
|
|
1680
472
|
return writer;
|
|
1681
|
-
}
|
|
473
|
+
}
|
|
1682
474
|
|
|
1683
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GenericPayload {
|
|
1684
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
475
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): GenericPayload {
|
|
476
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1685
477
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1686
478
|
const message = createBaseGenericPayload();
|
|
1687
479
|
while (reader.pos < end) {
|
|
1688
480
|
const tag = reader.uint32();
|
|
1689
481
|
switch (tag >>> 3) {
|
|
1690
482
|
case 3:
|
|
483
|
+
if (tag !== 26) {
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
|
|
1691
487
|
message.eventId = reader.string();
|
|
1692
|
-
|
|
488
|
+
continue;
|
|
1693
489
|
case 4:
|
|
490
|
+
if (tag !== 34) {
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
|
|
1694
494
|
message.eventData = reader.string();
|
|
1695
|
-
|
|
1696
|
-
default:
|
|
1697
|
-
reader.skipType(tag & 7);
|
|
1698
|
-
break;
|
|
495
|
+
continue;
|
|
1699
496
|
}
|
|
497
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
reader.skipType(tag & 7);
|
|
1700
501
|
}
|
|
1701
502
|
return message;
|
|
1702
|
-
}
|
|
503
|
+
}
|
|
1703
504
|
|
|
1704
|
-
fromJSON(object: any): GenericPayload {
|
|
505
|
+
export function fromJSON(object: any): GenericPayload {
|
|
1705
506
|
return {
|
|
1706
507
|
eventId: isSet(object.eventId) ? String(object.eventId) : "",
|
|
1707
508
|
eventData: isSet(object.eventData) ? String(object.eventData) : "",
|
|
1708
509
|
};
|
|
1709
|
-
}
|
|
510
|
+
}
|
|
1710
511
|
|
|
1711
|
-
toJSON(message: GenericPayload): unknown {
|
|
512
|
+
export function toJSON(message: GenericPayload): unknown {
|
|
1712
513
|
const obj: any = {};
|
|
1713
514
|
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
1714
515
|
message.eventData !== undefined && (obj.eventData = message.eventData);
|
|
1715
516
|
return obj;
|
|
1716
|
-
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export function create<I extends Exact<DeepPartial<GenericPayload>, I>>(base?: I): GenericPayload {
|
|
520
|
+
return GenericPayload.fromPartial(base ?? {});
|
|
521
|
+
}
|
|
1717
522
|
|
|
1718
|
-
fromPartial<I extends Exact<DeepPartial<GenericPayload>, I>>(object: I): GenericPayload {
|
|
523
|
+
export function fromPartial<I extends Exact<DeepPartial<GenericPayload>, I>>(object: I): GenericPayload {
|
|
1719
524
|
const message = createBaseGenericPayload();
|
|
1720
525
|
message.eventId = object.eventId ?? "";
|
|
1721
526
|
message.eventData = object.eventData ?? "";
|
|
1722
527
|
return message;
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
1725
530
|
|
|
1726
531
|
function createBaseReadOnlyVector3(): ReadOnlyVector3 {
|
|
1727
532
|
return { x: 0, y: 0, z: 0 };
|
|
1728
533
|
}
|
|
1729
534
|
|
|
1730
|
-
export
|
|
1731
|
-
encode(message: ReadOnlyVector3, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
535
|
+
export namespace ReadOnlyVector3 {
|
|
536
|
+
export function encode(message: ReadOnlyVector3, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1732
537
|
if (message.x !== 0) {
|
|
1733
538
|
writer.uint32(13).float(message.x);
|
|
1734
539
|
}
|
|
@@ -1739,63 +544,80 @@ export const ReadOnlyVector3 = {
|
|
|
1739
544
|
writer.uint32(29).float(message.z);
|
|
1740
545
|
}
|
|
1741
546
|
return writer;
|
|
1742
|
-
}
|
|
547
|
+
}
|
|
1743
548
|
|
|
1744
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ReadOnlyVector3 {
|
|
1745
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
549
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ReadOnlyVector3 {
|
|
550
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1746
551
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1747
552
|
const message = createBaseReadOnlyVector3();
|
|
1748
553
|
while (reader.pos < end) {
|
|
1749
554
|
const tag = reader.uint32();
|
|
1750
555
|
switch (tag >>> 3) {
|
|
1751
556
|
case 1:
|
|
557
|
+
if (tag !== 13) {
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
|
|
1752
561
|
message.x = reader.float();
|
|
1753
|
-
|
|
562
|
+
continue;
|
|
1754
563
|
case 2:
|
|
564
|
+
if (tag !== 21) {
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
|
|
1755
568
|
message.y = reader.float();
|
|
1756
|
-
|
|
569
|
+
continue;
|
|
1757
570
|
case 3:
|
|
571
|
+
if (tag !== 29) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
|
|
1758
575
|
message.z = reader.float();
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
579
|
+
break;
|
|
1763
580
|
}
|
|
581
|
+
reader.skipType(tag & 7);
|
|
1764
582
|
}
|
|
1765
583
|
return message;
|
|
1766
|
-
}
|
|
584
|
+
}
|
|
1767
585
|
|
|
1768
|
-
fromJSON(object: any): ReadOnlyVector3 {
|
|
586
|
+
export function fromJSON(object: any): ReadOnlyVector3 {
|
|
1769
587
|
return {
|
|
1770
588
|
x: isSet(object.x) ? Number(object.x) : 0,
|
|
1771
589
|
y: isSet(object.y) ? Number(object.y) : 0,
|
|
1772
590
|
z: isSet(object.z) ? Number(object.z) : 0,
|
|
1773
591
|
};
|
|
1774
|
-
}
|
|
592
|
+
}
|
|
1775
593
|
|
|
1776
|
-
toJSON(message: ReadOnlyVector3): unknown {
|
|
594
|
+
export function toJSON(message: ReadOnlyVector3): unknown {
|
|
1777
595
|
const obj: any = {};
|
|
1778
596
|
message.x !== undefined && (obj.x = message.x);
|
|
1779
597
|
message.y !== undefined && (obj.y = message.y);
|
|
1780
598
|
message.z !== undefined && (obj.z = message.z);
|
|
1781
599
|
return obj;
|
|
1782
|
-
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export function create<I extends Exact<DeepPartial<ReadOnlyVector3>, I>>(base?: I): ReadOnlyVector3 {
|
|
603
|
+
return ReadOnlyVector3.fromPartial(base ?? {});
|
|
604
|
+
}
|
|
1783
605
|
|
|
1784
|
-
fromPartial<I extends Exact<DeepPartial<ReadOnlyVector3>, I>>(object: I): ReadOnlyVector3 {
|
|
606
|
+
export function fromPartial<I extends Exact<DeepPartial<ReadOnlyVector3>, I>>(object: I): ReadOnlyVector3 {
|
|
1785
607
|
const message = createBaseReadOnlyVector3();
|
|
1786
608
|
message.x = object.x ?? 0;
|
|
1787
609
|
message.y = object.y ?? 0;
|
|
1788
610
|
message.z = object.z ?? 0;
|
|
1789
611
|
return message;
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
1792
614
|
|
|
1793
615
|
function createBaseReadOnlyQuaternion(): ReadOnlyQuaternion {
|
|
1794
616
|
return { x: 0, y: 0, z: 0, w: 0 };
|
|
1795
617
|
}
|
|
1796
618
|
|
|
1797
|
-
export
|
|
1798
|
-
encode(message: ReadOnlyQuaternion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
619
|
+
export namespace ReadOnlyQuaternion {
|
|
620
|
+
export function encode(message: ReadOnlyQuaternion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1799
621
|
if (message.x !== 0) {
|
|
1800
622
|
writer.uint32(13).float(message.x);
|
|
1801
623
|
}
|
|
@@ -1809,69 +631,90 @@ export const ReadOnlyQuaternion = {
|
|
|
1809
631
|
writer.uint32(37).float(message.w);
|
|
1810
632
|
}
|
|
1811
633
|
return writer;
|
|
1812
|
-
}
|
|
634
|
+
}
|
|
1813
635
|
|
|
1814
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ReadOnlyQuaternion {
|
|
1815
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
636
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ReadOnlyQuaternion {
|
|
637
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1816
638
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1817
639
|
const message = createBaseReadOnlyQuaternion();
|
|
1818
640
|
while (reader.pos < end) {
|
|
1819
641
|
const tag = reader.uint32();
|
|
1820
642
|
switch (tag >>> 3) {
|
|
1821
643
|
case 1:
|
|
644
|
+
if (tag !== 13) {
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
|
|
1822
648
|
message.x = reader.float();
|
|
1823
|
-
|
|
649
|
+
continue;
|
|
1824
650
|
case 2:
|
|
651
|
+
if (tag !== 21) {
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
|
|
1825
655
|
message.y = reader.float();
|
|
1826
|
-
|
|
656
|
+
continue;
|
|
1827
657
|
case 3:
|
|
658
|
+
if (tag !== 29) {
|
|
659
|
+
break;
|
|
660
|
+
}
|
|
661
|
+
|
|
1828
662
|
message.z = reader.float();
|
|
1829
|
-
|
|
663
|
+
continue;
|
|
1830
664
|
case 4:
|
|
665
|
+
if (tag !== 37) {
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
|
|
1831
669
|
message.w = reader.float();
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
672
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
673
|
+
break;
|
|
1836
674
|
}
|
|
675
|
+
reader.skipType(tag & 7);
|
|
1837
676
|
}
|
|
1838
677
|
return message;
|
|
1839
|
-
}
|
|
678
|
+
}
|
|
1840
679
|
|
|
1841
|
-
fromJSON(object: any): ReadOnlyQuaternion {
|
|
680
|
+
export function fromJSON(object: any): ReadOnlyQuaternion {
|
|
1842
681
|
return {
|
|
1843
682
|
x: isSet(object.x) ? Number(object.x) : 0,
|
|
1844
683
|
y: isSet(object.y) ? Number(object.y) : 0,
|
|
1845
684
|
z: isSet(object.z) ? Number(object.z) : 0,
|
|
1846
685
|
w: isSet(object.w) ? Number(object.w) : 0,
|
|
1847
686
|
};
|
|
1848
|
-
}
|
|
687
|
+
}
|
|
1849
688
|
|
|
1850
|
-
toJSON(message: ReadOnlyQuaternion): unknown {
|
|
689
|
+
export function toJSON(message: ReadOnlyQuaternion): unknown {
|
|
1851
690
|
const obj: any = {};
|
|
1852
691
|
message.x !== undefined && (obj.x = message.x);
|
|
1853
692
|
message.y !== undefined && (obj.y = message.y);
|
|
1854
693
|
message.z !== undefined && (obj.z = message.z);
|
|
1855
694
|
message.w !== undefined && (obj.w = message.w);
|
|
1856
695
|
return obj;
|
|
1857
|
-
}
|
|
696
|
+
}
|
|
1858
697
|
|
|
1859
|
-
|
|
698
|
+
export function create<I extends Exact<DeepPartial<ReadOnlyQuaternion>, I>>(base?: I): ReadOnlyQuaternion {
|
|
699
|
+
return ReadOnlyQuaternion.fromPartial(base ?? {});
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export function fromPartial<I extends Exact<DeepPartial<ReadOnlyQuaternion>, I>>(object: I): ReadOnlyQuaternion {
|
|
1860
703
|
const message = createBaseReadOnlyQuaternion();
|
|
1861
704
|
message.x = object.x ?? 0;
|
|
1862
705
|
message.y = object.y ?? 0;
|
|
1863
706
|
message.z = object.z ?? 0;
|
|
1864
707
|
message.w = object.w ?? 0;
|
|
1865
708
|
return message;
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
1868
711
|
|
|
1869
712
|
function createBasePositionChangedPayload(): PositionChangedPayload {
|
|
1870
713
|
return { position: undefined, cameraPosition: undefined, playerHeight: 0 };
|
|
1871
714
|
}
|
|
1872
715
|
|
|
1873
|
-
export
|
|
1874
|
-
encode(message: PositionChangedPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
716
|
+
export namespace PositionChangedPayload {
|
|
717
|
+
export function encode(message: PositionChangedPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1875
718
|
if (message.position !== undefined) {
|
|
1876
719
|
ReadOnlyVector3.encode(message.position, writer.uint32(10).fork()).ldelim();
|
|
1877
720
|
}
|
|
@@ -1882,41 +725,54 @@ export const PositionChangedPayload = {
|
|
|
1882
725
|
writer.uint32(29).float(message.playerHeight);
|
|
1883
726
|
}
|
|
1884
727
|
return writer;
|
|
1885
|
-
}
|
|
728
|
+
}
|
|
1886
729
|
|
|
1887
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PositionChangedPayload {
|
|
1888
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
730
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PositionChangedPayload {
|
|
731
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1889
732
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1890
733
|
const message = createBasePositionChangedPayload();
|
|
1891
734
|
while (reader.pos < end) {
|
|
1892
735
|
const tag = reader.uint32();
|
|
1893
736
|
switch (tag >>> 3) {
|
|
1894
737
|
case 1:
|
|
738
|
+
if (tag !== 10) {
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
|
|
1895
742
|
message.position = ReadOnlyVector3.decode(reader, reader.uint32());
|
|
1896
|
-
|
|
743
|
+
continue;
|
|
1897
744
|
case 2:
|
|
745
|
+
if (tag !== 18) {
|
|
746
|
+
break;
|
|
747
|
+
}
|
|
748
|
+
|
|
1898
749
|
message.cameraPosition = ReadOnlyVector3.decode(reader, reader.uint32());
|
|
1899
|
-
|
|
750
|
+
continue;
|
|
1900
751
|
case 3:
|
|
752
|
+
if (tag !== 29) {
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
755
|
+
|
|
1901
756
|
message.playerHeight = reader.float();
|
|
1902
|
-
|
|
1903
|
-
default:
|
|
1904
|
-
reader.skipType(tag & 7);
|
|
1905
|
-
break;
|
|
757
|
+
continue;
|
|
1906
758
|
}
|
|
759
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
reader.skipType(tag & 7);
|
|
1907
763
|
}
|
|
1908
764
|
return message;
|
|
1909
|
-
}
|
|
765
|
+
}
|
|
1910
766
|
|
|
1911
|
-
fromJSON(object: any): PositionChangedPayload {
|
|
767
|
+
export function fromJSON(object: any): PositionChangedPayload {
|
|
1912
768
|
return {
|
|
1913
769
|
position: isSet(object.position) ? ReadOnlyVector3.fromJSON(object.position) : undefined,
|
|
1914
770
|
cameraPosition: isSet(object.cameraPosition) ? ReadOnlyVector3.fromJSON(object.cameraPosition) : undefined,
|
|
1915
771
|
playerHeight: isSet(object.playerHeight) ? Number(object.playerHeight) : 0,
|
|
1916
772
|
};
|
|
1917
|
-
}
|
|
773
|
+
}
|
|
1918
774
|
|
|
1919
|
-
toJSON(message: PositionChangedPayload): unknown {
|
|
775
|
+
export function toJSON(message: PositionChangedPayload): unknown {
|
|
1920
776
|
const obj: any = {};
|
|
1921
777
|
message.position !== undefined &&
|
|
1922
778
|
(obj.position = message.position ? ReadOnlyVector3.toJSON(message.position) : undefined);
|
|
@@ -1924,9 +780,15 @@ export const PositionChangedPayload = {
|
|
|
1924
780
|
(obj.cameraPosition = message.cameraPosition ? ReadOnlyVector3.toJSON(message.cameraPosition) : undefined);
|
|
1925
781
|
message.playerHeight !== undefined && (obj.playerHeight = message.playerHeight);
|
|
1926
782
|
return obj;
|
|
1927
|
-
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export function create<I extends Exact<DeepPartial<PositionChangedPayload>, I>>(base?: I): PositionChangedPayload {
|
|
786
|
+
return PositionChangedPayload.fromPartial(base ?? {});
|
|
787
|
+
}
|
|
1928
788
|
|
|
1929
|
-
fromPartial<I extends Exact<DeepPartial<PositionChangedPayload>, I>>(
|
|
789
|
+
export function fromPartial<I extends Exact<DeepPartial<PositionChangedPayload>, I>>(
|
|
790
|
+
object: I,
|
|
791
|
+
): PositionChangedPayload {
|
|
1930
792
|
const message = createBasePositionChangedPayload();
|
|
1931
793
|
message.position = (object.position !== undefined && object.position !== null)
|
|
1932
794
|
? ReadOnlyVector3.fromPartial(object.position)
|
|
@@ -1936,15 +798,15 @@ export const PositionChangedPayload = {
|
|
|
1936
798
|
: undefined;
|
|
1937
799
|
message.playerHeight = object.playerHeight ?? 0;
|
|
1938
800
|
return message;
|
|
1939
|
-
}
|
|
1940
|
-
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
1941
803
|
|
|
1942
804
|
function createBaseRotationChangedPayload(): RotationChangedPayload {
|
|
1943
805
|
return { rotation: undefined, quaternion: undefined };
|
|
1944
806
|
}
|
|
1945
807
|
|
|
1946
|
-
export
|
|
1947
|
-
encode(message: RotationChangedPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
808
|
+
export namespace RotationChangedPayload {
|
|
809
|
+
export function encode(message: RotationChangedPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1948
810
|
if (message.rotation !== undefined) {
|
|
1949
811
|
ReadOnlyVector3.encode(message.rotation, writer.uint32(10).fork()).ldelim();
|
|
1950
812
|
}
|
|
@@ -1952,46 +814,61 @@ export const RotationChangedPayload = {
|
|
|
1952
814
|
ReadOnlyQuaternion.encode(message.quaternion, writer.uint32(18).fork()).ldelim();
|
|
1953
815
|
}
|
|
1954
816
|
return writer;
|
|
1955
|
-
}
|
|
817
|
+
}
|
|
1956
818
|
|
|
1957
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): RotationChangedPayload {
|
|
1958
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
819
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RotationChangedPayload {
|
|
820
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1959
821
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1960
822
|
const message = createBaseRotationChangedPayload();
|
|
1961
823
|
while (reader.pos < end) {
|
|
1962
824
|
const tag = reader.uint32();
|
|
1963
825
|
switch (tag >>> 3) {
|
|
1964
826
|
case 1:
|
|
827
|
+
if (tag !== 10) {
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
830
|
+
|
|
1965
831
|
message.rotation = ReadOnlyVector3.decode(reader, reader.uint32());
|
|
1966
|
-
|
|
832
|
+
continue;
|
|
1967
833
|
case 2:
|
|
834
|
+
if (tag !== 18) {
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
|
|
1968
838
|
message.quaternion = ReadOnlyQuaternion.decode(reader, reader.uint32());
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
839
|
+
continue;
|
|
840
|
+
}
|
|
841
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
842
|
+
break;
|
|
1973
843
|
}
|
|
844
|
+
reader.skipType(tag & 7);
|
|
1974
845
|
}
|
|
1975
846
|
return message;
|
|
1976
|
-
}
|
|
847
|
+
}
|
|
1977
848
|
|
|
1978
|
-
fromJSON(object: any): RotationChangedPayload {
|
|
849
|
+
export function fromJSON(object: any): RotationChangedPayload {
|
|
1979
850
|
return {
|
|
1980
851
|
rotation: isSet(object.rotation) ? ReadOnlyVector3.fromJSON(object.rotation) : undefined,
|
|
1981
852
|
quaternion: isSet(object.quaternion) ? ReadOnlyQuaternion.fromJSON(object.quaternion) : undefined,
|
|
1982
853
|
};
|
|
1983
|
-
}
|
|
854
|
+
}
|
|
1984
855
|
|
|
1985
|
-
toJSON(message: RotationChangedPayload): unknown {
|
|
856
|
+
export function toJSON(message: RotationChangedPayload): unknown {
|
|
1986
857
|
const obj: any = {};
|
|
1987
858
|
message.rotation !== undefined &&
|
|
1988
859
|
(obj.rotation = message.rotation ? ReadOnlyVector3.toJSON(message.rotation) : undefined);
|
|
1989
860
|
message.quaternion !== undefined &&
|
|
1990
861
|
(obj.quaternion = message.quaternion ? ReadOnlyQuaternion.toJSON(message.quaternion) : undefined);
|
|
1991
862
|
return obj;
|
|
1992
|
-
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
export function create<I extends Exact<DeepPartial<RotationChangedPayload>, I>>(base?: I): RotationChangedPayload {
|
|
866
|
+
return RotationChangedPayload.fromPartial(base ?? {});
|
|
867
|
+
}
|
|
1993
868
|
|
|
1994
|
-
fromPartial<I extends Exact<DeepPartial<RotationChangedPayload>, I>>(
|
|
869
|
+
export function fromPartial<I extends Exact<DeepPartial<RotationChangedPayload>, I>>(
|
|
870
|
+
object: I,
|
|
871
|
+
): RotationChangedPayload {
|
|
1995
872
|
const message = createBaseRotationChangedPayload();
|
|
1996
873
|
message.rotation = (object.rotation !== undefined && object.rotation !== null)
|
|
1997
874
|
? ReadOnlyVector3.fromPartial(object.rotation)
|
|
@@ -2000,15 +877,15 @@ export const RotationChangedPayload = {
|
|
|
2000
877
|
? ReadOnlyQuaternion.fromPartial(object.quaternion)
|
|
2001
878
|
: undefined;
|
|
2002
879
|
return message;
|
|
2003
|
-
}
|
|
2004
|
-
}
|
|
880
|
+
}
|
|
881
|
+
}
|
|
2005
882
|
|
|
2006
883
|
function createBaseEventData(): EventData {
|
|
2007
884
|
return { type: 0, generic: undefined, positionChanged: undefined, rotationChanged: undefined };
|
|
2008
885
|
}
|
|
2009
886
|
|
|
2010
|
-
export
|
|
2011
|
-
encode(message: EventData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
887
|
+
export namespace EventData {
|
|
888
|
+
export function encode(message: EventData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2012
889
|
if (message.type !== 0) {
|
|
2013
890
|
writer.uint32(8).int32(message.type);
|
|
2014
891
|
}
|
|
@@ -2022,36 +899,53 @@ export const EventData = {
|
|
|
2022
899
|
RotationChangedPayload.encode(message.rotationChanged, writer.uint32(34).fork()).ldelim();
|
|
2023
900
|
}
|
|
2024
901
|
return writer;
|
|
2025
|
-
}
|
|
902
|
+
}
|
|
2026
903
|
|
|
2027
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventData {
|
|
2028
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
904
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): EventData {
|
|
905
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2029
906
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2030
907
|
const message = createBaseEventData();
|
|
2031
908
|
while (reader.pos < end) {
|
|
2032
909
|
const tag = reader.uint32();
|
|
2033
910
|
switch (tag >>> 3) {
|
|
2034
911
|
case 1:
|
|
912
|
+
if (tag !== 8) {
|
|
913
|
+
break;
|
|
914
|
+
}
|
|
915
|
+
|
|
2035
916
|
message.type = reader.int32() as any;
|
|
2036
|
-
|
|
917
|
+
continue;
|
|
2037
918
|
case 2:
|
|
919
|
+
if (tag !== 18) {
|
|
920
|
+
break;
|
|
921
|
+
}
|
|
922
|
+
|
|
2038
923
|
message.generic = GenericPayload.decode(reader, reader.uint32());
|
|
2039
|
-
|
|
924
|
+
continue;
|
|
2040
925
|
case 3:
|
|
926
|
+
if (tag !== 26) {
|
|
927
|
+
break;
|
|
928
|
+
}
|
|
929
|
+
|
|
2041
930
|
message.positionChanged = PositionChangedPayload.decode(reader, reader.uint32());
|
|
2042
|
-
|
|
931
|
+
continue;
|
|
2043
932
|
case 4:
|
|
933
|
+
if (tag !== 34) {
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
|
|
2044
937
|
message.rotationChanged = RotationChangedPayload.decode(reader, reader.uint32());
|
|
2045
|
-
|
|
2046
|
-
default:
|
|
2047
|
-
reader.skipType(tag & 7);
|
|
2048
|
-
break;
|
|
938
|
+
continue;
|
|
2049
939
|
}
|
|
940
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
reader.skipType(tag & 7);
|
|
2050
944
|
}
|
|
2051
945
|
return message;
|
|
2052
|
-
}
|
|
946
|
+
}
|
|
2053
947
|
|
|
2054
|
-
fromJSON(object: any): EventData {
|
|
948
|
+
export function fromJSON(object: any): EventData {
|
|
2055
949
|
return {
|
|
2056
950
|
type: isSet(object.type) ? eventDataTypeFromJSON(object.type) : 0,
|
|
2057
951
|
generic: isSet(object.generic) ? GenericPayload.fromJSON(object.generic) : undefined,
|
|
@@ -2062,23 +956,29 @@ export const EventData = {
|
|
|
2062
956
|
? RotationChangedPayload.fromJSON(object.rotationChanged)
|
|
2063
957
|
: undefined,
|
|
2064
958
|
};
|
|
2065
|
-
}
|
|
959
|
+
}
|
|
2066
960
|
|
|
2067
|
-
toJSON(message: EventData): unknown {
|
|
961
|
+
export function toJSON(message: EventData): unknown {
|
|
2068
962
|
const obj: any = {};
|
|
2069
963
|
message.type !== undefined && (obj.type = eventDataTypeToJSON(message.type));
|
|
2070
964
|
message.generic !== undefined &&
|
|
2071
965
|
(obj.generic = message.generic ? GenericPayload.toJSON(message.generic) : undefined);
|
|
2072
|
-
message.positionChanged !== undefined &&
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
966
|
+
message.positionChanged !== undefined &&
|
|
967
|
+
(obj.positionChanged = message.positionChanged
|
|
968
|
+
? PositionChangedPayload.toJSON(message.positionChanged)
|
|
969
|
+
: undefined);
|
|
970
|
+
message.rotationChanged !== undefined &&
|
|
971
|
+
(obj.rotationChanged = message.rotationChanged
|
|
972
|
+
? RotationChangedPayload.toJSON(message.rotationChanged)
|
|
973
|
+
: undefined);
|
|
2078
974
|
return obj;
|
|
2079
|
-
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export function create<I extends Exact<DeepPartial<EventData>, I>>(base?: I): EventData {
|
|
978
|
+
return EventData.fromPartial(base ?? {});
|
|
979
|
+
}
|
|
2080
980
|
|
|
2081
|
-
fromPartial<I extends Exact<DeepPartial<EventData>, I>>(object: I): EventData {
|
|
981
|
+
export function fromPartial<I extends Exact<DeepPartial<EventData>, I>>(object: I): EventData {
|
|
2082
982
|
const message = createBaseEventData();
|
|
2083
983
|
message.type = object.type ?? 0;
|
|
2084
984
|
message.generic = (object.generic !== undefined && object.generic !== null)
|
|
@@ -2091,193 +991,471 @@ export const EventData = {
|
|
|
2091
991
|
? RotationChangedPayload.fromPartial(object.rotationChanged)
|
|
2092
992
|
: undefined;
|
|
2093
993
|
return message;
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
2096
996
|
|
|
2097
997
|
function createBaseCrdtSendToRendererRequest(): CrdtSendToRendererRequest {
|
|
2098
|
-
return { data: new Uint8Array() };
|
|
998
|
+
return { data: new Uint8Array(0) };
|
|
2099
999
|
}
|
|
2100
1000
|
|
|
2101
|
-
export
|
|
2102
|
-
encode(message: CrdtSendToRendererRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1001
|
+
export namespace CrdtSendToRendererRequest {
|
|
1002
|
+
export function encode(message: CrdtSendToRendererRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2103
1003
|
if (message.data.length !== 0) {
|
|
2104
1004
|
writer.uint32(10).bytes(message.data);
|
|
2105
1005
|
}
|
|
2106
1006
|
return writer;
|
|
2107
|
-
}
|
|
1007
|
+
}
|
|
2108
1008
|
|
|
2109
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtSendToRendererRequest {
|
|
2110
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1009
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtSendToRendererRequest {
|
|
1010
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2111
1011
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2112
1012
|
const message = createBaseCrdtSendToRendererRequest();
|
|
2113
1013
|
while (reader.pos < end) {
|
|
2114
1014
|
const tag = reader.uint32();
|
|
2115
1015
|
switch (tag >>> 3) {
|
|
2116
1016
|
case 1:
|
|
1017
|
+
if (tag !== 10) {
|
|
1018
|
+
break;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
2117
1021
|
message.data = reader.bytes();
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
1022
|
+
continue;
|
|
1023
|
+
}
|
|
1024
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1025
|
+
break;
|
|
2122
1026
|
}
|
|
1027
|
+
reader.skipType(tag & 7);
|
|
2123
1028
|
}
|
|
2124
1029
|
return message;
|
|
2125
|
-
}
|
|
1030
|
+
}
|
|
2126
1031
|
|
|
2127
|
-
fromJSON(object: any): CrdtSendToRendererRequest {
|
|
2128
|
-
return { data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array() };
|
|
2129
|
-
}
|
|
1032
|
+
export function fromJSON(object: any): CrdtSendToRendererRequest {
|
|
1033
|
+
return { data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0) };
|
|
1034
|
+
}
|
|
2130
1035
|
|
|
2131
|
-
toJSON(message: CrdtSendToRendererRequest): unknown {
|
|
1036
|
+
export function toJSON(message: CrdtSendToRendererRequest): unknown {
|
|
2132
1037
|
const obj: any = {};
|
|
2133
1038
|
message.data !== undefined &&
|
|
2134
|
-
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
1039
|
+
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array(0)));
|
|
2135
1040
|
return obj;
|
|
2136
|
-
}
|
|
1041
|
+
}
|
|
2137
1042
|
|
|
2138
|
-
|
|
1043
|
+
export function create<I extends Exact<DeepPartial<CrdtSendToRendererRequest>, I>>(
|
|
1044
|
+
base?: I,
|
|
1045
|
+
): CrdtSendToRendererRequest {
|
|
1046
|
+
return CrdtSendToRendererRequest.fromPartial(base ?? {});
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtSendToRendererRequest>, I>>(
|
|
1050
|
+
object: I,
|
|
1051
|
+
): CrdtSendToRendererRequest {
|
|
2139
1052
|
const message = createBaseCrdtSendToRendererRequest();
|
|
2140
|
-
message.data = object.data ?? new Uint8Array();
|
|
1053
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
2141
1054
|
return message;
|
|
2142
|
-
}
|
|
2143
|
-
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
2144
1057
|
|
|
2145
1058
|
function createBaseCrdtSendToResponse(): CrdtSendToResponse {
|
|
2146
|
-
return {};
|
|
1059
|
+
return { data: [] };
|
|
2147
1060
|
}
|
|
2148
1061
|
|
|
2149
|
-
export
|
|
2150
|
-
encode(
|
|
1062
|
+
export namespace CrdtSendToResponse {
|
|
1063
|
+
export function encode(message: CrdtSendToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1064
|
+
for (const v of message.data) {
|
|
1065
|
+
writer.uint32(10).bytes(v!);
|
|
1066
|
+
}
|
|
2151
1067
|
return writer;
|
|
2152
|
-
}
|
|
1068
|
+
}
|
|
2153
1069
|
|
|
2154
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtSendToResponse {
|
|
2155
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1070
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtSendToResponse {
|
|
1071
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2156
1072
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2157
1073
|
const message = createBaseCrdtSendToResponse();
|
|
2158
1074
|
while (reader.pos < end) {
|
|
2159
1075
|
const tag = reader.uint32();
|
|
2160
1076
|
switch (tag >>> 3) {
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
1077
|
+
case 1:
|
|
1078
|
+
if (tag !== 10) {
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
message.data.push(reader.bytes());
|
|
1083
|
+
continue;
|
|
2164
1084
|
}
|
|
1085
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1086
|
+
break;
|
|
1087
|
+
}
|
|
1088
|
+
reader.skipType(tag & 7);
|
|
2165
1089
|
}
|
|
2166
1090
|
return message;
|
|
2167
|
-
}
|
|
1091
|
+
}
|
|
2168
1092
|
|
|
2169
|
-
fromJSON(
|
|
2170
|
-
return {};
|
|
2171
|
-
}
|
|
1093
|
+
export function fromJSON(object: any): CrdtSendToResponse {
|
|
1094
|
+
return { data: Array.isArray(object?.data) ? object.data.map((e: any) => bytesFromBase64(e)) : [] };
|
|
1095
|
+
}
|
|
2172
1096
|
|
|
2173
|
-
toJSON(
|
|
1097
|
+
export function toJSON(message: CrdtSendToResponse): unknown {
|
|
2174
1098
|
const obj: any = {};
|
|
1099
|
+
if (message.data) {
|
|
1100
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
1101
|
+
} else {
|
|
1102
|
+
obj.data = [];
|
|
1103
|
+
}
|
|
2175
1104
|
return obj;
|
|
2176
|
-
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
export function create<I extends Exact<DeepPartial<CrdtSendToResponse>, I>>(base?: I): CrdtSendToResponse {
|
|
1108
|
+
return CrdtSendToResponse.fromPartial(base ?? {});
|
|
1109
|
+
}
|
|
2177
1110
|
|
|
2178
|
-
fromPartial<I extends Exact<DeepPartial<CrdtSendToResponse>, I>>(
|
|
1111
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtSendToResponse>, I>>(object: I): CrdtSendToResponse {
|
|
2179
1112
|
const message = createBaseCrdtSendToResponse();
|
|
1113
|
+
message.data = object.data?.map((e) => e) || [];
|
|
2180
1114
|
return message;
|
|
2181
|
-
}
|
|
2182
|
-
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
function createBaseCrdtGetStateRequest(): CrdtGetStateRequest {
|
|
1119
|
+
return {};
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export namespace CrdtGetStateRequest {
|
|
1123
|
+
export function encode(_: CrdtGetStateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1124
|
+
return writer;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtGetStateRequest {
|
|
1128
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1129
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1130
|
+
const message = createBaseCrdtGetStateRequest();
|
|
1131
|
+
while (reader.pos < end) {
|
|
1132
|
+
const tag = reader.uint32();
|
|
1133
|
+
switch (tag >>> 3) {
|
|
1134
|
+
}
|
|
1135
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1136
|
+
break;
|
|
1137
|
+
}
|
|
1138
|
+
reader.skipType(tag & 7);
|
|
1139
|
+
}
|
|
1140
|
+
return message;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
export function fromJSON(_: any): CrdtGetStateRequest {
|
|
1144
|
+
return {};
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
export function toJSON(_: CrdtGetStateRequest): unknown {
|
|
1148
|
+
const obj: any = {};
|
|
1149
|
+
return obj;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
export function create<I extends Exact<DeepPartial<CrdtGetStateRequest>, I>>(base?: I): CrdtGetStateRequest {
|
|
1153
|
+
return CrdtGetStateRequest.fromPartial(base ?? {});
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtGetStateRequest>, I>>(_: I): CrdtGetStateRequest {
|
|
1157
|
+
const message = createBaseCrdtGetStateRequest();
|
|
1158
|
+
return message;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
function createBaseCrdtGetStateResponse(): CrdtGetStateResponse {
|
|
1163
|
+
return { hasEntities: false, data: [] };
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
export namespace CrdtGetStateResponse {
|
|
1167
|
+
export function encode(message: CrdtGetStateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1168
|
+
if (message.hasEntities === true) {
|
|
1169
|
+
writer.uint32(8).bool(message.hasEntities);
|
|
1170
|
+
}
|
|
1171
|
+
for (const v of message.data) {
|
|
1172
|
+
writer.uint32(18).bytes(v!);
|
|
1173
|
+
}
|
|
1174
|
+
return writer;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtGetStateResponse {
|
|
1178
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1179
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1180
|
+
const message = createBaseCrdtGetStateResponse();
|
|
1181
|
+
while (reader.pos < end) {
|
|
1182
|
+
const tag = reader.uint32();
|
|
1183
|
+
switch (tag >>> 3) {
|
|
1184
|
+
case 1:
|
|
1185
|
+
if (tag !== 8) {
|
|
1186
|
+
break;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
message.hasEntities = reader.bool();
|
|
1190
|
+
continue;
|
|
1191
|
+
case 2:
|
|
1192
|
+
if (tag !== 18) {
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
message.data.push(reader.bytes());
|
|
1197
|
+
continue;
|
|
1198
|
+
}
|
|
1199
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1200
|
+
break;
|
|
1201
|
+
}
|
|
1202
|
+
reader.skipType(tag & 7);
|
|
1203
|
+
}
|
|
1204
|
+
return message;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
export function fromJSON(object: any): CrdtGetStateResponse {
|
|
1208
|
+
return {
|
|
1209
|
+
hasEntities: isSet(object.hasEntities) ? Boolean(object.hasEntities) : false,
|
|
1210
|
+
data: Array.isArray(object?.data) ? object.data.map((e: any) => bytesFromBase64(e)) : [],
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
export function toJSON(message: CrdtGetStateResponse): unknown {
|
|
1215
|
+
const obj: any = {};
|
|
1216
|
+
message.hasEntities !== undefined && (obj.hasEntities = message.hasEntities);
|
|
1217
|
+
if (message.data) {
|
|
1218
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
1219
|
+
} else {
|
|
1220
|
+
obj.data = [];
|
|
1221
|
+
}
|
|
1222
|
+
return obj;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
export function create<I extends Exact<DeepPartial<CrdtGetStateResponse>, I>>(base?: I): CrdtGetStateResponse {
|
|
1226
|
+
return CrdtGetStateResponse.fromPartial(base ?? {});
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtGetStateResponse>, I>>(object: I): CrdtGetStateResponse {
|
|
1230
|
+
const message = createBaseCrdtGetStateResponse();
|
|
1231
|
+
message.hasEntities = object.hasEntities ?? false;
|
|
1232
|
+
message.data = object.data?.map((e) => e) || [];
|
|
1233
|
+
return message;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
2183
1236
|
|
|
2184
1237
|
function createBaseCrdtMessageFromRendererRequest(): CrdtMessageFromRendererRequest {
|
|
2185
1238
|
return {};
|
|
2186
1239
|
}
|
|
2187
1240
|
|
|
2188
|
-
export
|
|
2189
|
-
encode(_: CrdtMessageFromRendererRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1241
|
+
export namespace CrdtMessageFromRendererRequest {
|
|
1242
|
+
export function encode(_: CrdtMessageFromRendererRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2190
1243
|
return writer;
|
|
2191
|
-
}
|
|
1244
|
+
}
|
|
2192
1245
|
|
|
2193
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtMessageFromRendererRequest {
|
|
2194
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1246
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtMessageFromRendererRequest {
|
|
1247
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2195
1248
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2196
1249
|
const message = createBaseCrdtMessageFromRendererRequest();
|
|
2197
1250
|
while (reader.pos < end) {
|
|
2198
1251
|
const tag = reader.uint32();
|
|
2199
1252
|
switch (tag >>> 3) {
|
|
2200
|
-
default:
|
|
2201
|
-
reader.skipType(tag & 7);
|
|
2202
|
-
break;
|
|
2203
1253
|
}
|
|
1254
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1255
|
+
break;
|
|
1256
|
+
}
|
|
1257
|
+
reader.skipType(tag & 7);
|
|
2204
1258
|
}
|
|
2205
1259
|
return message;
|
|
2206
|
-
}
|
|
1260
|
+
}
|
|
2207
1261
|
|
|
2208
|
-
fromJSON(_: any): CrdtMessageFromRendererRequest {
|
|
1262
|
+
export function fromJSON(_: any): CrdtMessageFromRendererRequest {
|
|
2209
1263
|
return {};
|
|
2210
|
-
}
|
|
1264
|
+
}
|
|
2211
1265
|
|
|
2212
|
-
toJSON(_: CrdtMessageFromRendererRequest): unknown {
|
|
1266
|
+
export function toJSON(_: CrdtMessageFromRendererRequest): unknown {
|
|
2213
1267
|
const obj: any = {};
|
|
2214
1268
|
return obj;
|
|
2215
|
-
}
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
export function create<I extends Exact<DeepPartial<CrdtMessageFromRendererRequest>, I>>(
|
|
1272
|
+
base?: I,
|
|
1273
|
+
): CrdtMessageFromRendererRequest {
|
|
1274
|
+
return CrdtMessageFromRendererRequest.fromPartial(base ?? {});
|
|
1275
|
+
}
|
|
2216
1276
|
|
|
2217
|
-
fromPartial<I extends Exact<DeepPartial<CrdtMessageFromRendererRequest>, I>>(
|
|
1277
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtMessageFromRendererRequest>, I>>(
|
|
1278
|
+
_: I,
|
|
1279
|
+
): CrdtMessageFromRendererRequest {
|
|
2218
1280
|
const message = createBaseCrdtMessageFromRendererRequest();
|
|
2219
1281
|
return message;
|
|
2220
|
-
}
|
|
2221
|
-
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
2222
1284
|
|
|
2223
1285
|
function createBaseCrdtMessageFromRendererResponse(): CrdtMessageFromRendererResponse {
|
|
2224
1286
|
return { data: [] };
|
|
2225
1287
|
}
|
|
2226
1288
|
|
|
2227
|
-
export
|
|
2228
|
-
|
|
1289
|
+
export namespace CrdtMessageFromRendererResponse {
|
|
1290
|
+
export function encode(
|
|
1291
|
+
message: CrdtMessageFromRendererResponse,
|
|
1292
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
1293
|
+
): _m0.Writer {
|
|
2229
1294
|
for (const v of message.data) {
|
|
2230
1295
|
writer.uint32(10).bytes(v!);
|
|
2231
1296
|
}
|
|
2232
1297
|
return writer;
|
|
2233
|
-
}
|
|
1298
|
+
}
|
|
2234
1299
|
|
|
2235
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtMessageFromRendererResponse {
|
|
2236
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1300
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtMessageFromRendererResponse {
|
|
1301
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2237
1302
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2238
1303
|
const message = createBaseCrdtMessageFromRendererResponse();
|
|
2239
1304
|
while (reader.pos < end) {
|
|
2240
1305
|
const tag = reader.uint32();
|
|
2241
1306
|
switch (tag >>> 3) {
|
|
2242
1307
|
case 1:
|
|
1308
|
+
if (tag !== 10) {
|
|
1309
|
+
break;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
2243
1312
|
message.data.push(reader.bytes());
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
1313
|
+
continue;
|
|
1314
|
+
}
|
|
1315
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1316
|
+
break;
|
|
2248
1317
|
}
|
|
1318
|
+
reader.skipType(tag & 7);
|
|
2249
1319
|
}
|
|
2250
1320
|
return message;
|
|
2251
|
-
}
|
|
1321
|
+
}
|
|
2252
1322
|
|
|
2253
|
-
fromJSON(object: any): CrdtMessageFromRendererResponse {
|
|
1323
|
+
export function fromJSON(object: any): CrdtMessageFromRendererResponse {
|
|
2254
1324
|
return { data: Array.isArray(object?.data) ? object.data.map((e: any) => bytesFromBase64(e)) : [] };
|
|
2255
|
-
}
|
|
1325
|
+
}
|
|
2256
1326
|
|
|
2257
|
-
toJSON(message: CrdtMessageFromRendererResponse): unknown {
|
|
1327
|
+
export function toJSON(message: CrdtMessageFromRendererResponse): unknown {
|
|
2258
1328
|
const obj: any = {};
|
|
2259
1329
|
if (message.data) {
|
|
2260
|
-
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
1330
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
2261
1331
|
} else {
|
|
2262
1332
|
obj.data = [];
|
|
2263
1333
|
}
|
|
2264
1334
|
return obj;
|
|
2265
|
-
}
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
export function create<I extends Exact<DeepPartial<CrdtMessageFromRendererResponse>, I>>(
|
|
1338
|
+
base?: I,
|
|
1339
|
+
): CrdtMessageFromRendererResponse {
|
|
1340
|
+
return CrdtMessageFromRendererResponse.fromPartial(base ?? {});
|
|
1341
|
+
}
|
|
2266
1342
|
|
|
2267
|
-
fromPartial<I extends Exact<DeepPartial<CrdtMessageFromRendererResponse>, I>>(
|
|
1343
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtMessageFromRendererResponse>, I>>(
|
|
2268
1344
|
object: I,
|
|
2269
1345
|
): CrdtMessageFromRendererResponse {
|
|
2270
1346
|
const message = createBaseCrdtMessageFromRendererResponse();
|
|
2271
1347
|
message.data = object.data?.map((e) => e) || [];
|
|
2272
1348
|
return message;
|
|
2273
|
-
}
|
|
2274
|
-
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
function createBaseIsServerRequest(): IsServerRequest {
|
|
1353
|
+
return {};
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
export namespace IsServerRequest {
|
|
1357
|
+
export function encode(_: IsServerRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1358
|
+
return writer;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): IsServerRequest {
|
|
1362
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1363
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1364
|
+
const message = createBaseIsServerRequest();
|
|
1365
|
+
while (reader.pos < end) {
|
|
1366
|
+
const tag = reader.uint32();
|
|
1367
|
+
switch (tag >>> 3) {
|
|
1368
|
+
}
|
|
1369
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1370
|
+
break;
|
|
1371
|
+
}
|
|
1372
|
+
reader.skipType(tag & 7);
|
|
1373
|
+
}
|
|
1374
|
+
return message;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
export function fromJSON(_: any): IsServerRequest {
|
|
1378
|
+
return {};
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
export function toJSON(_: IsServerRequest): unknown {
|
|
1382
|
+
const obj: any = {};
|
|
1383
|
+
return obj;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
export function create<I extends Exact<DeepPartial<IsServerRequest>, I>>(base?: I): IsServerRequest {
|
|
1387
|
+
return IsServerRequest.fromPartial(base ?? {});
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
export function fromPartial<I extends Exact<DeepPartial<IsServerRequest>, I>>(_: I): IsServerRequest {
|
|
1391
|
+
const message = createBaseIsServerRequest();
|
|
1392
|
+
return message;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
function createBaseIsServerResponse(): IsServerResponse {
|
|
1397
|
+
return { isServer: false };
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
export namespace IsServerResponse {
|
|
1401
|
+
export function encode(message: IsServerResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1402
|
+
if (message.isServer === true) {
|
|
1403
|
+
writer.uint32(8).bool(message.isServer);
|
|
1404
|
+
}
|
|
1405
|
+
return writer;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): IsServerResponse {
|
|
1409
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1410
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1411
|
+
const message = createBaseIsServerResponse();
|
|
1412
|
+
while (reader.pos < end) {
|
|
1413
|
+
const tag = reader.uint32();
|
|
1414
|
+
switch (tag >>> 3) {
|
|
1415
|
+
case 1:
|
|
1416
|
+
if (tag !== 8) {
|
|
1417
|
+
break;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
message.isServer = reader.bool();
|
|
1421
|
+
continue;
|
|
1422
|
+
}
|
|
1423
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1424
|
+
break;
|
|
1425
|
+
}
|
|
1426
|
+
reader.skipType(tag & 7);
|
|
1427
|
+
}
|
|
1428
|
+
return message;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
export function fromJSON(object: any): IsServerResponse {
|
|
1432
|
+
return { isServer: isSet(object.isServer) ? Boolean(object.isServer) : false };
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
export function toJSON(message: IsServerResponse): unknown {
|
|
1436
|
+
const obj: any = {};
|
|
1437
|
+
message.isServer !== undefined && (obj.isServer = message.isServer);
|
|
1438
|
+
return obj;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
export function create<I extends Exact<DeepPartial<IsServerResponse>, I>>(base?: I): IsServerResponse {
|
|
1442
|
+
return IsServerResponse.fromPartial(base ?? {});
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
export function fromPartial<I extends Exact<DeepPartial<IsServerResponse>, I>>(object: I): IsServerResponse {
|
|
1446
|
+
const message = createBaseIsServerResponse();
|
|
1447
|
+
message.isServer = object.isServer ?? false;
|
|
1448
|
+
return message;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
2275
1451
|
|
|
1452
|
+
/** support for legacy SDK events. */
|
|
2276
1453
|
export type EngineApiServiceDefinition = typeof EngineApiServiceDefinition;
|
|
2277
1454
|
export const EngineApiServiceDefinition = {
|
|
2278
1455
|
name: "EngineApiService",
|
|
2279
1456
|
fullName: "decentraland.kernel.apis.EngineApiService",
|
|
2280
1457
|
methods: {
|
|
1458
|
+
/** @deprecated */
|
|
2281
1459
|
sendBatch: {
|
|
2282
1460
|
name: "SendBatch",
|
|
2283
1461
|
requestType: ManyEntityAction,
|
|
@@ -2286,6 +1464,7 @@ export const EngineApiServiceDefinition = {
|
|
|
2286
1464
|
responseStream: false,
|
|
2287
1465
|
options: {},
|
|
2288
1466
|
},
|
|
1467
|
+
/** @deprecated */
|
|
2289
1468
|
subscribe: {
|
|
2290
1469
|
name: "Subscribe",
|
|
2291
1470
|
requestType: SubscribeRequest,
|
|
@@ -2294,6 +1473,7 @@ export const EngineApiServiceDefinition = {
|
|
|
2294
1473
|
responseStream: false,
|
|
2295
1474
|
options: {},
|
|
2296
1475
|
},
|
|
1476
|
+
/** @deprecated */
|
|
2297
1477
|
unsubscribe: {
|
|
2298
1478
|
name: "Unsubscribe",
|
|
2299
1479
|
requestType: UnsubscribeRequest,
|
|
@@ -2302,6 +1482,10 @@ export const EngineApiServiceDefinition = {
|
|
|
2302
1482
|
responseStream: false,
|
|
2303
1483
|
options: {},
|
|
2304
1484
|
},
|
|
1485
|
+
/**
|
|
1486
|
+
* send information of the CRDT messages to the renderer. It returns the CRDT changes back from the renderer
|
|
1487
|
+
* like raycast responses or the player's position
|
|
1488
|
+
*/
|
|
2305
1489
|
crdtSendToRenderer: {
|
|
2306
1490
|
name: "CrdtSendToRenderer",
|
|
2307
1491
|
requestType: CrdtSendToRendererRequest,
|
|
@@ -2310,6 +1494,19 @@ export const EngineApiServiceDefinition = {
|
|
|
2310
1494
|
responseStream: false,
|
|
2311
1495
|
options: {},
|
|
2312
1496
|
},
|
|
1497
|
+
/**
|
|
1498
|
+
* retrieves the current _full_ state of the entities from the renderer. This function is used to hidrate
|
|
1499
|
+
* the state of the scenes when the code of the worker is stopped/resumed
|
|
1500
|
+
*/
|
|
1501
|
+
crdtGetState: {
|
|
1502
|
+
name: "CrdtGetState",
|
|
1503
|
+
requestType: CrdtSendToRendererRequest,
|
|
1504
|
+
requestStream: false,
|
|
1505
|
+
responseType: CrdtGetStateResponse,
|
|
1506
|
+
responseStream: false,
|
|
1507
|
+
options: {},
|
|
1508
|
+
},
|
|
1509
|
+
/** @deprecated, this response was merged into CrdtSendToResponse */
|
|
2313
1510
|
crdtGetMessageFromRenderer: {
|
|
2314
1511
|
name: "CrdtGetMessageFromRenderer",
|
|
2315
1512
|
requestType: CrdtMessageFromRendererRequest,
|
|
@@ -2318,13 +1515,21 @@ export const EngineApiServiceDefinition = {
|
|
|
2318
1515
|
responseStream: false,
|
|
2319
1516
|
options: {},
|
|
2320
1517
|
},
|
|
1518
|
+
isServer: {
|
|
1519
|
+
name: "IsServer",
|
|
1520
|
+
requestType: IsServerRequest,
|
|
1521
|
+
requestStream: false,
|
|
1522
|
+
responseType: IsServerResponse,
|
|
1523
|
+
responseStream: false,
|
|
1524
|
+
options: {},
|
|
1525
|
+
},
|
|
2321
1526
|
},
|
|
2322
1527
|
} as const;
|
|
2323
1528
|
|
|
2324
|
-
declare
|
|
2325
|
-
declare
|
|
2326
|
-
declare
|
|
2327
|
-
|
|
1529
|
+
declare const self: any | undefined;
|
|
1530
|
+
declare const window: any | undefined;
|
|
1531
|
+
declare const global: any | undefined;
|
|
1532
|
+
const tsProtoGlobalThis: any = (() => {
|
|
2328
1533
|
if (typeof globalThis !== "undefined") {
|
|
2329
1534
|
return globalThis;
|
|
2330
1535
|
}
|
|
@@ -2341,10 +1546,10 @@ var globalThis: any = (() => {
|
|
|
2341
1546
|
})();
|
|
2342
1547
|
|
|
2343
1548
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
2344
|
-
if (
|
|
2345
|
-
return Uint8Array.from(
|
|
1549
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
1550
|
+
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
2346
1551
|
} else {
|
|
2347
|
-
const bin =
|
|
1552
|
+
const bin = tsProtoGlobalThis.atob(b64);
|
|
2348
1553
|
const arr = new Uint8Array(bin.length);
|
|
2349
1554
|
for (let i = 0; i < bin.length; ++i) {
|
|
2350
1555
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -2354,14 +1559,14 @@ function bytesFromBase64(b64: string): Uint8Array {
|
|
|
2354
1559
|
}
|
|
2355
1560
|
|
|
2356
1561
|
function base64FromBytes(arr: Uint8Array): string {
|
|
2357
|
-
if (
|
|
2358
|
-
return
|
|
1562
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
1563
|
+
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
2359
1564
|
} else {
|
|
2360
1565
|
const bin: string[] = [];
|
|
2361
1566
|
arr.forEach((byte) => {
|
|
2362
1567
|
bin.push(String.fromCharCode(byte));
|
|
2363
1568
|
});
|
|
2364
|
-
return
|
|
1569
|
+
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
2365
1570
|
}
|
|
2366
1571
|
}
|
|
2367
1572
|
|