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