@dcl/protocol 1.0.0-4949759723.commit-9a568b1 → 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 +67 -828
- package/out-js/decentraland/bff/http_endpoints.gen.js +237 -161
- 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 +159 -117
- 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/bff/http_endpoints.proto +1 -0
- 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
|
@@ -1,164 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { EntityAction } from "../../sdk/ecs6/engine_interface_ecs6.gen";
|
|
3
4
|
|
|
4
5
|
export const protobufPackage = "decentraland.kernel.apis";
|
|
5
6
|
|
|
6
|
-
export enum QueryType {
|
|
7
|
-
QT_INVALID_QUERY_TYPE = 0,
|
|
8
|
-
QT_HIT_FIRST = 1,
|
|
9
|
-
QT_HIT_ALL = 2,
|
|
10
|
-
QT_HIT_FIRST_AVATAR = 3,
|
|
11
|
-
QT_HIT_ALL_AVATARS = 4,
|
|
12
|
-
UNRECOGNIZED = -1,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function queryTypeFromJSON(object: any): QueryType {
|
|
16
|
-
switch (object) {
|
|
17
|
-
case 0:
|
|
18
|
-
case "QT_INVALID_QUERY_TYPE":
|
|
19
|
-
return QueryType.QT_INVALID_QUERY_TYPE;
|
|
20
|
-
case 1:
|
|
21
|
-
case "QT_HIT_FIRST":
|
|
22
|
-
return QueryType.QT_HIT_FIRST;
|
|
23
|
-
case 2:
|
|
24
|
-
case "QT_HIT_ALL":
|
|
25
|
-
return QueryType.QT_HIT_ALL;
|
|
26
|
-
case 3:
|
|
27
|
-
case "QT_HIT_FIRST_AVATAR":
|
|
28
|
-
return QueryType.QT_HIT_FIRST_AVATAR;
|
|
29
|
-
case 4:
|
|
30
|
-
case "QT_HIT_ALL_AVATARS":
|
|
31
|
-
return QueryType.QT_HIT_ALL_AVATARS;
|
|
32
|
-
case -1:
|
|
33
|
-
case "UNRECOGNIZED":
|
|
34
|
-
default:
|
|
35
|
-
return QueryType.UNRECOGNIZED;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function queryTypeToJSON(object: QueryType): string {
|
|
40
|
-
switch (object) {
|
|
41
|
-
case QueryType.QT_INVALID_QUERY_TYPE:
|
|
42
|
-
return "QT_INVALID_QUERY_TYPE";
|
|
43
|
-
case QueryType.QT_HIT_FIRST:
|
|
44
|
-
return "QT_HIT_FIRST";
|
|
45
|
-
case QueryType.QT_HIT_ALL:
|
|
46
|
-
return "QT_HIT_ALL";
|
|
47
|
-
case QueryType.QT_HIT_FIRST_AVATAR:
|
|
48
|
-
return "QT_HIT_FIRST_AVATAR";
|
|
49
|
-
case QueryType.QT_HIT_ALL_AVATARS:
|
|
50
|
-
return "QT_HIT_ALL_AVATARS";
|
|
51
|
-
case QueryType.UNRECOGNIZED:
|
|
52
|
-
default:
|
|
53
|
-
return "UNRECOGNIZED";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export enum EAType {
|
|
58
|
-
EAT_INVALID_EA_TYPE = 0,
|
|
59
|
-
EAT_OPEN_EXTERNAL_URL = 1,
|
|
60
|
-
EAT_OPEN_NFT_DIALOG = 2,
|
|
61
|
-
EAT_CREATE_ENTITY = 3,
|
|
62
|
-
EAT_REMOVE_ENTITY = 4,
|
|
63
|
-
EAT_UPDATE_ENTITY_COMPONENT = 5,
|
|
64
|
-
EAT_ATTACH_ENTITY_COMPONENT = 6,
|
|
65
|
-
EAT_COMPONENT_REMOVED = 7,
|
|
66
|
-
EAT_SET_ENTITY_PARENT = 8,
|
|
67
|
-
EAT_QUERY = 9,
|
|
68
|
-
EAT_COMPONENT_CREATED = 10,
|
|
69
|
-
EAT_COMPONENT_DISPOSED = 11,
|
|
70
|
-
EAT_COMPONENT_UPDATED = 12,
|
|
71
|
-
EAT_INIT_MESSAGES_FINISHED = 13,
|
|
72
|
-
UNRECOGNIZED = -1,
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function eATypeFromJSON(object: any): EAType {
|
|
76
|
-
switch (object) {
|
|
77
|
-
case 0:
|
|
78
|
-
case "EAT_INVALID_EA_TYPE":
|
|
79
|
-
return EAType.EAT_INVALID_EA_TYPE;
|
|
80
|
-
case 1:
|
|
81
|
-
case "EAT_OPEN_EXTERNAL_URL":
|
|
82
|
-
return EAType.EAT_OPEN_EXTERNAL_URL;
|
|
83
|
-
case 2:
|
|
84
|
-
case "EAT_OPEN_NFT_DIALOG":
|
|
85
|
-
return EAType.EAT_OPEN_NFT_DIALOG;
|
|
86
|
-
case 3:
|
|
87
|
-
case "EAT_CREATE_ENTITY":
|
|
88
|
-
return EAType.EAT_CREATE_ENTITY;
|
|
89
|
-
case 4:
|
|
90
|
-
case "EAT_REMOVE_ENTITY":
|
|
91
|
-
return EAType.EAT_REMOVE_ENTITY;
|
|
92
|
-
case 5:
|
|
93
|
-
case "EAT_UPDATE_ENTITY_COMPONENT":
|
|
94
|
-
return EAType.EAT_UPDATE_ENTITY_COMPONENT;
|
|
95
|
-
case 6:
|
|
96
|
-
case "EAT_ATTACH_ENTITY_COMPONENT":
|
|
97
|
-
return EAType.EAT_ATTACH_ENTITY_COMPONENT;
|
|
98
|
-
case 7:
|
|
99
|
-
case "EAT_COMPONENT_REMOVED":
|
|
100
|
-
return EAType.EAT_COMPONENT_REMOVED;
|
|
101
|
-
case 8:
|
|
102
|
-
case "EAT_SET_ENTITY_PARENT":
|
|
103
|
-
return EAType.EAT_SET_ENTITY_PARENT;
|
|
104
|
-
case 9:
|
|
105
|
-
case "EAT_QUERY":
|
|
106
|
-
return EAType.EAT_QUERY;
|
|
107
|
-
case 10:
|
|
108
|
-
case "EAT_COMPONENT_CREATED":
|
|
109
|
-
return EAType.EAT_COMPONENT_CREATED;
|
|
110
|
-
case 11:
|
|
111
|
-
case "EAT_COMPONENT_DISPOSED":
|
|
112
|
-
return EAType.EAT_COMPONENT_DISPOSED;
|
|
113
|
-
case 12:
|
|
114
|
-
case "EAT_COMPONENT_UPDATED":
|
|
115
|
-
return EAType.EAT_COMPONENT_UPDATED;
|
|
116
|
-
case 13:
|
|
117
|
-
case "EAT_INIT_MESSAGES_FINISHED":
|
|
118
|
-
return EAType.EAT_INIT_MESSAGES_FINISHED;
|
|
119
|
-
case -1:
|
|
120
|
-
case "UNRECOGNIZED":
|
|
121
|
-
default:
|
|
122
|
-
return EAType.UNRECOGNIZED;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export function eATypeToJSON(object: EAType): string {
|
|
127
|
-
switch (object) {
|
|
128
|
-
case EAType.EAT_INVALID_EA_TYPE:
|
|
129
|
-
return "EAT_INVALID_EA_TYPE";
|
|
130
|
-
case EAType.EAT_OPEN_EXTERNAL_URL:
|
|
131
|
-
return "EAT_OPEN_EXTERNAL_URL";
|
|
132
|
-
case EAType.EAT_OPEN_NFT_DIALOG:
|
|
133
|
-
return "EAT_OPEN_NFT_DIALOG";
|
|
134
|
-
case EAType.EAT_CREATE_ENTITY:
|
|
135
|
-
return "EAT_CREATE_ENTITY";
|
|
136
|
-
case EAType.EAT_REMOVE_ENTITY:
|
|
137
|
-
return "EAT_REMOVE_ENTITY";
|
|
138
|
-
case EAType.EAT_UPDATE_ENTITY_COMPONENT:
|
|
139
|
-
return "EAT_UPDATE_ENTITY_COMPONENT";
|
|
140
|
-
case EAType.EAT_ATTACH_ENTITY_COMPONENT:
|
|
141
|
-
return "EAT_ATTACH_ENTITY_COMPONENT";
|
|
142
|
-
case EAType.EAT_COMPONENT_REMOVED:
|
|
143
|
-
return "EAT_COMPONENT_REMOVED";
|
|
144
|
-
case EAType.EAT_SET_ENTITY_PARENT:
|
|
145
|
-
return "EAT_SET_ENTITY_PARENT";
|
|
146
|
-
case EAType.EAT_QUERY:
|
|
147
|
-
return "EAT_QUERY";
|
|
148
|
-
case EAType.EAT_COMPONENT_CREATED:
|
|
149
|
-
return "EAT_COMPONENT_CREATED";
|
|
150
|
-
case EAType.EAT_COMPONENT_DISPOSED:
|
|
151
|
-
return "EAT_COMPONENT_DISPOSED";
|
|
152
|
-
case EAType.EAT_COMPONENT_UPDATED:
|
|
153
|
-
return "EAT_COMPONENT_UPDATED";
|
|
154
|
-
case EAType.EAT_INIT_MESSAGES_FINISHED:
|
|
155
|
-
return "EAT_INIT_MESSAGES_FINISHED";
|
|
156
|
-
case EAType.UNRECOGNIZED:
|
|
157
|
-
default:
|
|
158
|
-
return "UNRECOGNIZED";
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
7
|
/** Events */
|
|
163
8
|
export enum EventDataType {
|
|
164
9
|
EDT_GENERIC = 0,
|
|
@@ -199,92 +44,6 @@ export function eventDataTypeToJSON(object: EventDataType): string {
|
|
|
199
44
|
}
|
|
200
45
|
}
|
|
201
46
|
|
|
202
|
-
export interface OpenExternalUrlBody {
|
|
203
|
-
url: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface OpenNFTDialogBody {
|
|
207
|
-
assetContractAddress: string;
|
|
208
|
-
tokenId: string;
|
|
209
|
-
comment?: string | undefined;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface CreateEntityBody {
|
|
213
|
-
id: string;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export interface RemoveEntityBody {
|
|
217
|
-
id: string;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface UpdateEntityComponentBody {
|
|
221
|
-
entityId: string;
|
|
222
|
-
classId: number;
|
|
223
|
-
name: string;
|
|
224
|
-
json: string;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface AttachEntityComponentBody {
|
|
228
|
-
entityId: string;
|
|
229
|
-
name: string;
|
|
230
|
-
id: string;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface ComponentRemovedBody {
|
|
234
|
-
entityId: string;
|
|
235
|
-
name: string;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface SetEntityParentBody {
|
|
239
|
-
entityId: string;
|
|
240
|
-
parentId: string;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export interface QueryBody {
|
|
244
|
-
queryId: QueryType;
|
|
245
|
-
payload: string;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export interface ComponentCreatedBody {
|
|
249
|
-
id: string;
|
|
250
|
-
classId: number;
|
|
251
|
-
name: string;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export interface ComponentDisposedBody {
|
|
255
|
-
id: string;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export interface ComponentUpdatedBody {
|
|
259
|
-
id: string;
|
|
260
|
-
json: string;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export interface InitMessagesFinishedBody {
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface Payload {
|
|
267
|
-
openExternalUrl?: OpenExternalUrlBody | undefined;
|
|
268
|
-
openNftDialog?: OpenNFTDialogBody | undefined;
|
|
269
|
-
createEntity?: CreateEntityBody | undefined;
|
|
270
|
-
removeEntity?: RemoveEntityBody | undefined;
|
|
271
|
-
updateEntityComponent?: UpdateEntityComponentBody | undefined;
|
|
272
|
-
attachEntityComponent?: AttachEntityComponentBody | undefined;
|
|
273
|
-
componentRemoved?: ComponentRemovedBody | undefined;
|
|
274
|
-
setEntityParent?: SetEntityParentBody | undefined;
|
|
275
|
-
query?: QueryBody | undefined;
|
|
276
|
-
componentCreated?: ComponentCreatedBody | undefined;
|
|
277
|
-
componentDisposed?: ComponentDisposedBody | undefined;
|
|
278
|
-
componentUpdated?: ComponentUpdatedBody | undefined;
|
|
279
|
-
initMessagesFinished?: InitMessagesFinishedBody | undefined;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export interface EntityAction {
|
|
283
|
-
type: EAType;
|
|
284
|
-
tag?: string | undefined;
|
|
285
|
-
payload: Payload | undefined;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
47
|
export interface ManyEntityAction {
|
|
289
48
|
actions: EntityAction[];
|
|
290
49
|
}
|
|
@@ -355,1308 +114,35 @@ export interface CrdtSendToResponse {
|
|
|
355
114
|
export interface CrdtGetStateRequest {
|
|
356
115
|
}
|
|
357
116
|
|
|
358
|
-
export interface CrdtGetStateResponse {
|
|
359
|
-
/** returns true if the returned state has scene-created entities */
|
|
360
|
-
hasEntities: boolean;
|
|
361
|
-
/** static entities data (root entity, camera, etc) and scene-created entities */
|
|
362
|
-
data: Uint8Array[];
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/** deprecated */
|
|
366
|
-
export interface CrdtMessageFromRendererRequest {
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/** deprecated */
|
|
370
|
-
export interface CrdtMessageFromRendererResponse {
|
|
371
|
-
data: Uint8Array[];
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
function createBaseOpenExternalUrlBody(): OpenExternalUrlBody {
|
|
375
|
-
return { url: "" };
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export const OpenExternalUrlBody = {
|
|
379
|
-
encode(message: OpenExternalUrlBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
380
|
-
if (message.url !== "") {
|
|
381
|
-
writer.uint32(10).string(message.url);
|
|
382
|
-
}
|
|
383
|
-
return writer;
|
|
384
|
-
},
|
|
385
|
-
|
|
386
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): OpenExternalUrlBody {
|
|
387
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
388
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
389
|
-
const message = createBaseOpenExternalUrlBody();
|
|
390
|
-
while (reader.pos < end) {
|
|
391
|
-
const tag = reader.uint32();
|
|
392
|
-
switch (tag >>> 3) {
|
|
393
|
-
case 1:
|
|
394
|
-
if (tag !== 10) {
|
|
395
|
-
break;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
message.url = reader.string();
|
|
399
|
-
continue;
|
|
400
|
-
}
|
|
401
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
402
|
-
break;
|
|
403
|
-
}
|
|
404
|
-
reader.skipType(tag & 7);
|
|
405
|
-
}
|
|
406
|
-
return message;
|
|
407
|
-
},
|
|
408
|
-
|
|
409
|
-
fromJSON(object: any): OpenExternalUrlBody {
|
|
410
|
-
return { url: isSet(object.url) ? String(object.url) : "" };
|
|
411
|
-
},
|
|
412
|
-
|
|
413
|
-
toJSON(message: OpenExternalUrlBody): unknown {
|
|
414
|
-
const obj: any = {};
|
|
415
|
-
message.url !== undefined && (obj.url = message.url);
|
|
416
|
-
return obj;
|
|
417
|
-
},
|
|
418
|
-
|
|
419
|
-
create<I extends Exact<DeepPartial<OpenExternalUrlBody>, I>>(base?: I): OpenExternalUrlBody {
|
|
420
|
-
return OpenExternalUrlBody.fromPartial(base ?? {});
|
|
421
|
-
},
|
|
422
|
-
|
|
423
|
-
fromPartial<I extends Exact<DeepPartial<OpenExternalUrlBody>, I>>(object: I): OpenExternalUrlBody {
|
|
424
|
-
const message = createBaseOpenExternalUrlBody();
|
|
425
|
-
message.url = object.url ?? "";
|
|
426
|
-
return message;
|
|
427
|
-
},
|
|
428
|
-
};
|
|
429
|
-
|
|
430
|
-
function createBaseOpenNFTDialogBody(): OpenNFTDialogBody {
|
|
431
|
-
return { assetContractAddress: "", tokenId: "", comment: undefined };
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
export const OpenNFTDialogBody = {
|
|
435
|
-
encode(message: OpenNFTDialogBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
436
|
-
if (message.assetContractAddress !== "") {
|
|
437
|
-
writer.uint32(10).string(message.assetContractAddress);
|
|
438
|
-
}
|
|
439
|
-
if (message.tokenId !== "") {
|
|
440
|
-
writer.uint32(18).string(message.tokenId);
|
|
441
|
-
}
|
|
442
|
-
if (message.comment !== undefined) {
|
|
443
|
-
writer.uint32(26).string(message.comment);
|
|
444
|
-
}
|
|
445
|
-
return writer;
|
|
446
|
-
},
|
|
447
|
-
|
|
448
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): OpenNFTDialogBody {
|
|
449
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
450
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
451
|
-
const message = createBaseOpenNFTDialogBody();
|
|
452
|
-
while (reader.pos < end) {
|
|
453
|
-
const tag = reader.uint32();
|
|
454
|
-
switch (tag >>> 3) {
|
|
455
|
-
case 1:
|
|
456
|
-
if (tag !== 10) {
|
|
457
|
-
break;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
message.assetContractAddress = reader.string();
|
|
461
|
-
continue;
|
|
462
|
-
case 2:
|
|
463
|
-
if (tag !== 18) {
|
|
464
|
-
break;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
message.tokenId = reader.string();
|
|
468
|
-
continue;
|
|
469
|
-
case 3:
|
|
470
|
-
if (tag !== 26) {
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
message.comment = reader.string();
|
|
475
|
-
continue;
|
|
476
|
-
}
|
|
477
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
478
|
-
break;
|
|
479
|
-
}
|
|
480
|
-
reader.skipType(tag & 7);
|
|
481
|
-
}
|
|
482
|
-
return message;
|
|
483
|
-
},
|
|
484
|
-
|
|
485
|
-
fromJSON(object: any): OpenNFTDialogBody {
|
|
486
|
-
return {
|
|
487
|
-
assetContractAddress: isSet(object.assetContractAddress) ? String(object.assetContractAddress) : "",
|
|
488
|
-
tokenId: isSet(object.tokenId) ? String(object.tokenId) : "",
|
|
489
|
-
comment: isSet(object.comment) ? String(object.comment) : undefined,
|
|
490
|
-
};
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
toJSON(message: OpenNFTDialogBody): unknown {
|
|
494
|
-
const obj: any = {};
|
|
495
|
-
message.assetContractAddress !== undefined && (obj.assetContractAddress = message.assetContractAddress);
|
|
496
|
-
message.tokenId !== undefined && (obj.tokenId = message.tokenId);
|
|
497
|
-
message.comment !== undefined && (obj.comment = message.comment);
|
|
498
|
-
return obj;
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
create<I extends Exact<DeepPartial<OpenNFTDialogBody>, I>>(base?: I): OpenNFTDialogBody {
|
|
502
|
-
return OpenNFTDialogBody.fromPartial(base ?? {});
|
|
503
|
-
},
|
|
504
|
-
|
|
505
|
-
fromPartial<I extends Exact<DeepPartial<OpenNFTDialogBody>, I>>(object: I): OpenNFTDialogBody {
|
|
506
|
-
const message = createBaseOpenNFTDialogBody();
|
|
507
|
-
message.assetContractAddress = object.assetContractAddress ?? "";
|
|
508
|
-
message.tokenId = object.tokenId ?? "";
|
|
509
|
-
message.comment = object.comment ?? undefined;
|
|
510
|
-
return message;
|
|
511
|
-
},
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
function createBaseCreateEntityBody(): CreateEntityBody {
|
|
515
|
-
return { id: "" };
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export const CreateEntityBody = {
|
|
519
|
-
encode(message: CreateEntityBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
520
|
-
if (message.id !== "") {
|
|
521
|
-
writer.uint32(10).string(message.id);
|
|
522
|
-
}
|
|
523
|
-
return writer;
|
|
524
|
-
},
|
|
525
|
-
|
|
526
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CreateEntityBody {
|
|
527
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
528
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
529
|
-
const message = createBaseCreateEntityBody();
|
|
530
|
-
while (reader.pos < end) {
|
|
531
|
-
const tag = reader.uint32();
|
|
532
|
-
switch (tag >>> 3) {
|
|
533
|
-
case 1:
|
|
534
|
-
if (tag !== 10) {
|
|
535
|
-
break;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
message.id = reader.string();
|
|
539
|
-
continue;
|
|
540
|
-
}
|
|
541
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
542
|
-
break;
|
|
543
|
-
}
|
|
544
|
-
reader.skipType(tag & 7);
|
|
545
|
-
}
|
|
546
|
-
return message;
|
|
547
|
-
},
|
|
548
|
-
|
|
549
|
-
fromJSON(object: any): CreateEntityBody {
|
|
550
|
-
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
551
|
-
},
|
|
552
|
-
|
|
553
|
-
toJSON(message: CreateEntityBody): unknown {
|
|
554
|
-
const obj: any = {};
|
|
555
|
-
message.id !== undefined && (obj.id = message.id);
|
|
556
|
-
return obj;
|
|
557
|
-
},
|
|
558
|
-
|
|
559
|
-
create<I extends Exact<DeepPartial<CreateEntityBody>, I>>(base?: I): CreateEntityBody {
|
|
560
|
-
return CreateEntityBody.fromPartial(base ?? {});
|
|
561
|
-
},
|
|
562
|
-
|
|
563
|
-
fromPartial<I extends Exact<DeepPartial<CreateEntityBody>, I>>(object: I): CreateEntityBody {
|
|
564
|
-
const message = createBaseCreateEntityBody();
|
|
565
|
-
message.id = object.id ?? "";
|
|
566
|
-
return message;
|
|
567
|
-
},
|
|
568
|
-
};
|
|
569
|
-
|
|
570
|
-
function createBaseRemoveEntityBody(): RemoveEntityBody {
|
|
571
|
-
return { id: "" };
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
export const RemoveEntityBody = {
|
|
575
|
-
encode(message: RemoveEntityBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
576
|
-
if (message.id !== "") {
|
|
577
|
-
writer.uint32(10).string(message.id);
|
|
578
|
-
}
|
|
579
|
-
return writer;
|
|
580
|
-
},
|
|
581
|
-
|
|
582
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): RemoveEntityBody {
|
|
583
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
584
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
585
|
-
const message = createBaseRemoveEntityBody();
|
|
586
|
-
while (reader.pos < end) {
|
|
587
|
-
const tag = reader.uint32();
|
|
588
|
-
switch (tag >>> 3) {
|
|
589
|
-
case 1:
|
|
590
|
-
if (tag !== 10) {
|
|
591
|
-
break;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
message.id = reader.string();
|
|
595
|
-
continue;
|
|
596
|
-
}
|
|
597
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
598
|
-
break;
|
|
599
|
-
}
|
|
600
|
-
reader.skipType(tag & 7);
|
|
601
|
-
}
|
|
602
|
-
return message;
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
fromJSON(object: any): RemoveEntityBody {
|
|
606
|
-
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
607
|
-
},
|
|
608
|
-
|
|
609
|
-
toJSON(message: RemoveEntityBody): unknown {
|
|
610
|
-
const obj: any = {};
|
|
611
|
-
message.id !== undefined && (obj.id = message.id);
|
|
612
|
-
return obj;
|
|
613
|
-
},
|
|
614
|
-
|
|
615
|
-
create<I extends Exact<DeepPartial<RemoveEntityBody>, I>>(base?: I): RemoveEntityBody {
|
|
616
|
-
return RemoveEntityBody.fromPartial(base ?? {});
|
|
617
|
-
},
|
|
618
|
-
|
|
619
|
-
fromPartial<I extends Exact<DeepPartial<RemoveEntityBody>, I>>(object: I): RemoveEntityBody {
|
|
620
|
-
const message = createBaseRemoveEntityBody();
|
|
621
|
-
message.id = object.id ?? "";
|
|
622
|
-
return message;
|
|
623
|
-
},
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
function createBaseUpdateEntityComponentBody(): UpdateEntityComponentBody {
|
|
627
|
-
return { entityId: "", classId: 0, name: "", json: "" };
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
export const UpdateEntityComponentBody = {
|
|
631
|
-
encode(message: UpdateEntityComponentBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
632
|
-
if (message.entityId !== "") {
|
|
633
|
-
writer.uint32(10).string(message.entityId);
|
|
634
|
-
}
|
|
635
|
-
if (message.classId !== 0) {
|
|
636
|
-
writer.uint32(16).int32(message.classId);
|
|
637
|
-
}
|
|
638
|
-
if (message.name !== "") {
|
|
639
|
-
writer.uint32(26).string(message.name);
|
|
640
|
-
}
|
|
641
|
-
if (message.json !== "") {
|
|
642
|
-
writer.uint32(34).string(message.json);
|
|
643
|
-
}
|
|
644
|
-
return writer;
|
|
645
|
-
},
|
|
646
|
-
|
|
647
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateEntityComponentBody {
|
|
648
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
649
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
650
|
-
const message = createBaseUpdateEntityComponentBody();
|
|
651
|
-
while (reader.pos < end) {
|
|
652
|
-
const tag = reader.uint32();
|
|
653
|
-
switch (tag >>> 3) {
|
|
654
|
-
case 1:
|
|
655
|
-
if (tag !== 10) {
|
|
656
|
-
break;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
message.entityId = reader.string();
|
|
660
|
-
continue;
|
|
661
|
-
case 2:
|
|
662
|
-
if (tag !== 16) {
|
|
663
|
-
break;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
message.classId = reader.int32();
|
|
667
|
-
continue;
|
|
668
|
-
case 3:
|
|
669
|
-
if (tag !== 26) {
|
|
670
|
-
break;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
message.name = reader.string();
|
|
674
|
-
continue;
|
|
675
|
-
case 4:
|
|
676
|
-
if (tag !== 34) {
|
|
677
|
-
break;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
message.json = reader.string();
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
684
|
-
break;
|
|
685
|
-
}
|
|
686
|
-
reader.skipType(tag & 7);
|
|
687
|
-
}
|
|
688
|
-
return message;
|
|
689
|
-
},
|
|
690
|
-
|
|
691
|
-
fromJSON(object: any): UpdateEntityComponentBody {
|
|
692
|
-
return {
|
|
693
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
694
|
-
classId: isSet(object.classId) ? Number(object.classId) : 0,
|
|
695
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
696
|
-
json: isSet(object.json) ? String(object.json) : "",
|
|
697
|
-
};
|
|
698
|
-
},
|
|
699
|
-
|
|
700
|
-
toJSON(message: UpdateEntityComponentBody): unknown {
|
|
701
|
-
const obj: any = {};
|
|
702
|
-
message.entityId !== undefined && (obj.entityId = message.entityId);
|
|
703
|
-
message.classId !== undefined && (obj.classId = Math.round(message.classId));
|
|
704
|
-
message.name !== undefined && (obj.name = message.name);
|
|
705
|
-
message.json !== undefined && (obj.json = message.json);
|
|
706
|
-
return obj;
|
|
707
|
-
},
|
|
708
|
-
|
|
709
|
-
create<I extends Exact<DeepPartial<UpdateEntityComponentBody>, I>>(base?: I): UpdateEntityComponentBody {
|
|
710
|
-
return UpdateEntityComponentBody.fromPartial(base ?? {});
|
|
711
|
-
},
|
|
712
|
-
|
|
713
|
-
fromPartial<I extends Exact<DeepPartial<UpdateEntityComponentBody>, I>>(object: I): UpdateEntityComponentBody {
|
|
714
|
-
const message = createBaseUpdateEntityComponentBody();
|
|
715
|
-
message.entityId = object.entityId ?? "";
|
|
716
|
-
message.classId = object.classId ?? 0;
|
|
717
|
-
message.name = object.name ?? "";
|
|
718
|
-
message.json = object.json ?? "";
|
|
719
|
-
return message;
|
|
720
|
-
},
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
function createBaseAttachEntityComponentBody(): AttachEntityComponentBody {
|
|
724
|
-
return { entityId: "", name: "", id: "" };
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
export const AttachEntityComponentBody = {
|
|
728
|
-
encode(message: AttachEntityComponentBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
729
|
-
if (message.entityId !== "") {
|
|
730
|
-
writer.uint32(10).string(message.entityId);
|
|
731
|
-
}
|
|
732
|
-
if (message.name !== "") {
|
|
733
|
-
writer.uint32(18).string(message.name);
|
|
734
|
-
}
|
|
735
|
-
if (message.id !== "") {
|
|
736
|
-
writer.uint32(26).string(message.id);
|
|
737
|
-
}
|
|
738
|
-
return writer;
|
|
739
|
-
},
|
|
740
|
-
|
|
741
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AttachEntityComponentBody {
|
|
742
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
743
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
744
|
-
const message = createBaseAttachEntityComponentBody();
|
|
745
|
-
while (reader.pos < end) {
|
|
746
|
-
const tag = reader.uint32();
|
|
747
|
-
switch (tag >>> 3) {
|
|
748
|
-
case 1:
|
|
749
|
-
if (tag !== 10) {
|
|
750
|
-
break;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
message.entityId = reader.string();
|
|
754
|
-
continue;
|
|
755
|
-
case 2:
|
|
756
|
-
if (tag !== 18) {
|
|
757
|
-
break;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
message.name = reader.string();
|
|
761
|
-
continue;
|
|
762
|
-
case 3:
|
|
763
|
-
if (tag !== 26) {
|
|
764
|
-
break;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
message.id = reader.string();
|
|
768
|
-
continue;
|
|
769
|
-
}
|
|
770
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
771
|
-
break;
|
|
772
|
-
}
|
|
773
|
-
reader.skipType(tag & 7);
|
|
774
|
-
}
|
|
775
|
-
return message;
|
|
776
|
-
},
|
|
777
|
-
|
|
778
|
-
fromJSON(object: any): AttachEntityComponentBody {
|
|
779
|
-
return {
|
|
780
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
781
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
782
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
783
|
-
};
|
|
784
|
-
},
|
|
785
|
-
|
|
786
|
-
toJSON(message: AttachEntityComponentBody): unknown {
|
|
787
|
-
const obj: any = {};
|
|
788
|
-
message.entityId !== undefined && (obj.entityId = message.entityId);
|
|
789
|
-
message.name !== undefined && (obj.name = message.name);
|
|
790
|
-
message.id !== undefined && (obj.id = message.id);
|
|
791
|
-
return obj;
|
|
792
|
-
},
|
|
793
|
-
|
|
794
|
-
create<I extends Exact<DeepPartial<AttachEntityComponentBody>, I>>(base?: I): AttachEntityComponentBody {
|
|
795
|
-
return AttachEntityComponentBody.fromPartial(base ?? {});
|
|
796
|
-
},
|
|
797
|
-
|
|
798
|
-
fromPartial<I extends Exact<DeepPartial<AttachEntityComponentBody>, I>>(object: I): AttachEntityComponentBody {
|
|
799
|
-
const message = createBaseAttachEntityComponentBody();
|
|
800
|
-
message.entityId = object.entityId ?? "";
|
|
801
|
-
message.name = object.name ?? "";
|
|
802
|
-
message.id = object.id ?? "";
|
|
803
|
-
return message;
|
|
804
|
-
},
|
|
805
|
-
};
|
|
806
|
-
|
|
807
|
-
function createBaseComponentRemovedBody(): ComponentRemovedBody {
|
|
808
|
-
return { entityId: "", name: "" };
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
export const ComponentRemovedBody = {
|
|
812
|
-
encode(message: ComponentRemovedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
813
|
-
if (message.entityId !== "") {
|
|
814
|
-
writer.uint32(10).string(message.entityId);
|
|
815
|
-
}
|
|
816
|
-
if (message.name !== "") {
|
|
817
|
-
writer.uint32(18).string(message.name);
|
|
818
|
-
}
|
|
819
|
-
return writer;
|
|
820
|
-
},
|
|
821
|
-
|
|
822
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ComponentRemovedBody {
|
|
823
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
824
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
825
|
-
const message = createBaseComponentRemovedBody();
|
|
826
|
-
while (reader.pos < end) {
|
|
827
|
-
const tag = reader.uint32();
|
|
828
|
-
switch (tag >>> 3) {
|
|
829
|
-
case 1:
|
|
830
|
-
if (tag !== 10) {
|
|
831
|
-
break;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
message.entityId = reader.string();
|
|
835
|
-
continue;
|
|
836
|
-
case 2:
|
|
837
|
-
if (tag !== 18) {
|
|
838
|
-
break;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
message.name = reader.string();
|
|
842
|
-
continue;
|
|
843
|
-
}
|
|
844
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
845
|
-
break;
|
|
846
|
-
}
|
|
847
|
-
reader.skipType(tag & 7);
|
|
848
|
-
}
|
|
849
|
-
return message;
|
|
850
|
-
},
|
|
851
|
-
|
|
852
|
-
fromJSON(object: any): ComponentRemovedBody {
|
|
853
|
-
return {
|
|
854
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
855
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
856
|
-
};
|
|
857
|
-
},
|
|
858
|
-
|
|
859
|
-
toJSON(message: ComponentRemovedBody): unknown {
|
|
860
|
-
const obj: any = {};
|
|
861
|
-
message.entityId !== undefined && (obj.entityId = message.entityId);
|
|
862
|
-
message.name !== undefined && (obj.name = message.name);
|
|
863
|
-
return obj;
|
|
864
|
-
},
|
|
865
|
-
|
|
866
|
-
create<I extends Exact<DeepPartial<ComponentRemovedBody>, I>>(base?: I): ComponentRemovedBody {
|
|
867
|
-
return ComponentRemovedBody.fromPartial(base ?? {});
|
|
868
|
-
},
|
|
869
|
-
|
|
870
|
-
fromPartial<I extends Exact<DeepPartial<ComponentRemovedBody>, I>>(object: I): ComponentRemovedBody {
|
|
871
|
-
const message = createBaseComponentRemovedBody();
|
|
872
|
-
message.entityId = object.entityId ?? "";
|
|
873
|
-
message.name = object.name ?? "";
|
|
874
|
-
return message;
|
|
875
|
-
},
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
function createBaseSetEntityParentBody(): SetEntityParentBody {
|
|
879
|
-
return { entityId: "", parentId: "" };
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
export const SetEntityParentBody = {
|
|
883
|
-
encode(message: SetEntityParentBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
884
|
-
if (message.entityId !== "") {
|
|
885
|
-
writer.uint32(10).string(message.entityId);
|
|
886
|
-
}
|
|
887
|
-
if (message.parentId !== "") {
|
|
888
|
-
writer.uint32(18).string(message.parentId);
|
|
889
|
-
}
|
|
890
|
-
return writer;
|
|
891
|
-
},
|
|
892
|
-
|
|
893
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SetEntityParentBody {
|
|
894
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
895
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
896
|
-
const message = createBaseSetEntityParentBody();
|
|
897
|
-
while (reader.pos < end) {
|
|
898
|
-
const tag = reader.uint32();
|
|
899
|
-
switch (tag >>> 3) {
|
|
900
|
-
case 1:
|
|
901
|
-
if (tag !== 10) {
|
|
902
|
-
break;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
message.entityId = reader.string();
|
|
906
|
-
continue;
|
|
907
|
-
case 2:
|
|
908
|
-
if (tag !== 18) {
|
|
909
|
-
break;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
message.parentId = reader.string();
|
|
913
|
-
continue;
|
|
914
|
-
}
|
|
915
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
916
|
-
break;
|
|
917
|
-
}
|
|
918
|
-
reader.skipType(tag & 7);
|
|
919
|
-
}
|
|
920
|
-
return message;
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
fromJSON(object: any): SetEntityParentBody {
|
|
924
|
-
return {
|
|
925
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
926
|
-
parentId: isSet(object.parentId) ? String(object.parentId) : "",
|
|
927
|
-
};
|
|
928
|
-
},
|
|
929
|
-
|
|
930
|
-
toJSON(message: SetEntityParentBody): unknown {
|
|
931
|
-
const obj: any = {};
|
|
932
|
-
message.entityId !== undefined && (obj.entityId = message.entityId);
|
|
933
|
-
message.parentId !== undefined && (obj.parentId = message.parentId);
|
|
934
|
-
return obj;
|
|
935
|
-
},
|
|
936
|
-
|
|
937
|
-
create<I extends Exact<DeepPartial<SetEntityParentBody>, I>>(base?: I): SetEntityParentBody {
|
|
938
|
-
return SetEntityParentBody.fromPartial(base ?? {});
|
|
939
|
-
},
|
|
940
|
-
|
|
941
|
-
fromPartial<I extends Exact<DeepPartial<SetEntityParentBody>, I>>(object: I): SetEntityParentBody {
|
|
942
|
-
const message = createBaseSetEntityParentBody();
|
|
943
|
-
message.entityId = object.entityId ?? "";
|
|
944
|
-
message.parentId = object.parentId ?? "";
|
|
945
|
-
return message;
|
|
946
|
-
},
|
|
947
|
-
};
|
|
948
|
-
|
|
949
|
-
function createBaseQueryBody(): QueryBody {
|
|
950
|
-
return { queryId: 0, payload: "" };
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
export const QueryBody = {
|
|
954
|
-
encode(message: QueryBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
955
|
-
if (message.queryId !== 0) {
|
|
956
|
-
writer.uint32(8).int32(message.queryId);
|
|
957
|
-
}
|
|
958
|
-
if (message.payload !== "") {
|
|
959
|
-
writer.uint32(18).string(message.payload);
|
|
960
|
-
}
|
|
961
|
-
return writer;
|
|
962
|
-
},
|
|
963
|
-
|
|
964
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBody {
|
|
965
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
966
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
967
|
-
const message = createBaseQueryBody();
|
|
968
|
-
while (reader.pos < end) {
|
|
969
|
-
const tag = reader.uint32();
|
|
970
|
-
switch (tag >>> 3) {
|
|
971
|
-
case 1:
|
|
972
|
-
if (tag !== 8) {
|
|
973
|
-
break;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
message.queryId = reader.int32() as any;
|
|
977
|
-
continue;
|
|
978
|
-
case 2:
|
|
979
|
-
if (tag !== 18) {
|
|
980
|
-
break;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
message.payload = reader.string();
|
|
984
|
-
continue;
|
|
985
|
-
}
|
|
986
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
987
|
-
break;
|
|
988
|
-
}
|
|
989
|
-
reader.skipType(tag & 7);
|
|
990
|
-
}
|
|
991
|
-
return message;
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
fromJSON(object: any): QueryBody {
|
|
995
|
-
return {
|
|
996
|
-
queryId: isSet(object.queryId) ? queryTypeFromJSON(object.queryId) : 0,
|
|
997
|
-
payload: isSet(object.payload) ? String(object.payload) : "",
|
|
998
|
-
};
|
|
999
|
-
},
|
|
1000
|
-
|
|
1001
|
-
toJSON(message: QueryBody): unknown {
|
|
1002
|
-
const obj: any = {};
|
|
1003
|
-
message.queryId !== undefined && (obj.queryId = queryTypeToJSON(message.queryId));
|
|
1004
|
-
message.payload !== undefined && (obj.payload = message.payload);
|
|
1005
|
-
return obj;
|
|
1006
|
-
},
|
|
1007
|
-
|
|
1008
|
-
create<I extends Exact<DeepPartial<QueryBody>, I>>(base?: I): QueryBody {
|
|
1009
|
-
return QueryBody.fromPartial(base ?? {});
|
|
1010
|
-
},
|
|
1011
|
-
|
|
1012
|
-
fromPartial<I extends Exact<DeepPartial<QueryBody>, I>>(object: I): QueryBody {
|
|
1013
|
-
const message = createBaseQueryBody();
|
|
1014
|
-
message.queryId = object.queryId ?? 0;
|
|
1015
|
-
message.payload = object.payload ?? "";
|
|
1016
|
-
return message;
|
|
1017
|
-
},
|
|
1018
|
-
};
|
|
1019
|
-
|
|
1020
|
-
function createBaseComponentCreatedBody(): ComponentCreatedBody {
|
|
1021
|
-
return { id: "", classId: 0, name: "" };
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
export const ComponentCreatedBody = {
|
|
1025
|
-
encode(message: ComponentCreatedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1026
|
-
if (message.id !== "") {
|
|
1027
|
-
writer.uint32(10).string(message.id);
|
|
1028
|
-
}
|
|
1029
|
-
if (message.classId !== 0) {
|
|
1030
|
-
writer.uint32(16).int32(message.classId);
|
|
1031
|
-
}
|
|
1032
|
-
if (message.name !== "") {
|
|
1033
|
-
writer.uint32(26).string(message.name);
|
|
1034
|
-
}
|
|
1035
|
-
return writer;
|
|
1036
|
-
},
|
|
1037
|
-
|
|
1038
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ComponentCreatedBody {
|
|
1039
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1040
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1041
|
-
const message = createBaseComponentCreatedBody();
|
|
1042
|
-
while (reader.pos < end) {
|
|
1043
|
-
const tag = reader.uint32();
|
|
1044
|
-
switch (tag >>> 3) {
|
|
1045
|
-
case 1:
|
|
1046
|
-
if (tag !== 10) {
|
|
1047
|
-
break;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
message.id = reader.string();
|
|
1051
|
-
continue;
|
|
1052
|
-
case 2:
|
|
1053
|
-
if (tag !== 16) {
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
message.classId = reader.int32();
|
|
1058
|
-
continue;
|
|
1059
|
-
case 3:
|
|
1060
|
-
if (tag !== 26) {
|
|
1061
|
-
break;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
message.name = reader.string();
|
|
1065
|
-
continue;
|
|
1066
|
-
}
|
|
1067
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1068
|
-
break;
|
|
1069
|
-
}
|
|
1070
|
-
reader.skipType(tag & 7);
|
|
1071
|
-
}
|
|
1072
|
-
return message;
|
|
1073
|
-
},
|
|
1074
|
-
|
|
1075
|
-
fromJSON(object: any): ComponentCreatedBody {
|
|
1076
|
-
return {
|
|
1077
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
1078
|
-
classId: isSet(object.classId) ? Number(object.classId) : 0,
|
|
1079
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
1080
|
-
};
|
|
1081
|
-
},
|
|
1082
|
-
|
|
1083
|
-
toJSON(message: ComponentCreatedBody): unknown {
|
|
1084
|
-
const obj: any = {};
|
|
1085
|
-
message.id !== undefined && (obj.id = message.id);
|
|
1086
|
-
message.classId !== undefined && (obj.classId = Math.round(message.classId));
|
|
1087
|
-
message.name !== undefined && (obj.name = message.name);
|
|
1088
|
-
return obj;
|
|
1089
|
-
},
|
|
1090
|
-
|
|
1091
|
-
create<I extends Exact<DeepPartial<ComponentCreatedBody>, I>>(base?: I): ComponentCreatedBody {
|
|
1092
|
-
return ComponentCreatedBody.fromPartial(base ?? {});
|
|
1093
|
-
},
|
|
1094
|
-
|
|
1095
|
-
fromPartial<I extends Exact<DeepPartial<ComponentCreatedBody>, I>>(object: I): ComponentCreatedBody {
|
|
1096
|
-
const message = createBaseComponentCreatedBody();
|
|
1097
|
-
message.id = object.id ?? "";
|
|
1098
|
-
message.classId = object.classId ?? 0;
|
|
1099
|
-
message.name = object.name ?? "";
|
|
1100
|
-
return message;
|
|
1101
|
-
},
|
|
1102
|
-
};
|
|
1103
|
-
|
|
1104
|
-
function createBaseComponentDisposedBody(): ComponentDisposedBody {
|
|
1105
|
-
return { id: "" };
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
export const ComponentDisposedBody = {
|
|
1109
|
-
encode(message: ComponentDisposedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1110
|
-
if (message.id !== "") {
|
|
1111
|
-
writer.uint32(10).string(message.id);
|
|
1112
|
-
}
|
|
1113
|
-
return writer;
|
|
1114
|
-
},
|
|
1115
|
-
|
|
1116
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ComponentDisposedBody {
|
|
1117
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1118
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1119
|
-
const message = createBaseComponentDisposedBody();
|
|
1120
|
-
while (reader.pos < end) {
|
|
1121
|
-
const tag = reader.uint32();
|
|
1122
|
-
switch (tag >>> 3) {
|
|
1123
|
-
case 1:
|
|
1124
|
-
if (tag !== 10) {
|
|
1125
|
-
break;
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
message.id = reader.string();
|
|
1129
|
-
continue;
|
|
1130
|
-
}
|
|
1131
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1132
|
-
break;
|
|
1133
|
-
}
|
|
1134
|
-
reader.skipType(tag & 7);
|
|
1135
|
-
}
|
|
1136
|
-
return message;
|
|
1137
|
-
},
|
|
1138
|
-
|
|
1139
|
-
fromJSON(object: any): ComponentDisposedBody {
|
|
1140
|
-
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
1141
|
-
},
|
|
1142
|
-
|
|
1143
|
-
toJSON(message: ComponentDisposedBody): unknown {
|
|
1144
|
-
const obj: any = {};
|
|
1145
|
-
message.id !== undefined && (obj.id = message.id);
|
|
1146
|
-
return obj;
|
|
1147
|
-
},
|
|
1148
|
-
|
|
1149
|
-
create<I extends Exact<DeepPartial<ComponentDisposedBody>, I>>(base?: I): ComponentDisposedBody {
|
|
1150
|
-
return ComponentDisposedBody.fromPartial(base ?? {});
|
|
1151
|
-
},
|
|
1152
|
-
|
|
1153
|
-
fromPartial<I extends Exact<DeepPartial<ComponentDisposedBody>, I>>(object: I): ComponentDisposedBody {
|
|
1154
|
-
const message = createBaseComponentDisposedBody();
|
|
1155
|
-
message.id = object.id ?? "";
|
|
1156
|
-
return message;
|
|
1157
|
-
},
|
|
1158
|
-
};
|
|
1159
|
-
|
|
1160
|
-
function createBaseComponentUpdatedBody(): ComponentUpdatedBody {
|
|
1161
|
-
return { id: "", json: "" };
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
export const ComponentUpdatedBody = {
|
|
1165
|
-
encode(message: ComponentUpdatedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1166
|
-
if (message.id !== "") {
|
|
1167
|
-
writer.uint32(10).string(message.id);
|
|
1168
|
-
}
|
|
1169
|
-
if (message.json !== "") {
|
|
1170
|
-
writer.uint32(18).string(message.json);
|
|
1171
|
-
}
|
|
1172
|
-
return writer;
|
|
1173
|
-
},
|
|
1174
|
-
|
|
1175
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ComponentUpdatedBody {
|
|
1176
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1177
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1178
|
-
const message = createBaseComponentUpdatedBody();
|
|
1179
|
-
while (reader.pos < end) {
|
|
1180
|
-
const tag = reader.uint32();
|
|
1181
|
-
switch (tag >>> 3) {
|
|
1182
|
-
case 1:
|
|
1183
|
-
if (tag !== 10) {
|
|
1184
|
-
break;
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
message.id = reader.string();
|
|
1188
|
-
continue;
|
|
1189
|
-
case 2:
|
|
1190
|
-
if (tag !== 18) {
|
|
1191
|
-
break;
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
message.json = reader.string();
|
|
1195
|
-
continue;
|
|
1196
|
-
}
|
|
1197
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1198
|
-
break;
|
|
1199
|
-
}
|
|
1200
|
-
reader.skipType(tag & 7);
|
|
1201
|
-
}
|
|
1202
|
-
return message;
|
|
1203
|
-
},
|
|
1204
|
-
|
|
1205
|
-
fromJSON(object: any): ComponentUpdatedBody {
|
|
1206
|
-
return { id: isSet(object.id) ? String(object.id) : "", json: isSet(object.json) ? String(object.json) : "" };
|
|
1207
|
-
},
|
|
1208
|
-
|
|
1209
|
-
toJSON(message: ComponentUpdatedBody): unknown {
|
|
1210
|
-
const obj: any = {};
|
|
1211
|
-
message.id !== undefined && (obj.id = message.id);
|
|
1212
|
-
message.json !== undefined && (obj.json = message.json);
|
|
1213
|
-
return obj;
|
|
1214
|
-
},
|
|
1215
|
-
|
|
1216
|
-
create<I extends Exact<DeepPartial<ComponentUpdatedBody>, I>>(base?: I): ComponentUpdatedBody {
|
|
1217
|
-
return ComponentUpdatedBody.fromPartial(base ?? {});
|
|
1218
|
-
},
|
|
1219
|
-
|
|
1220
|
-
fromPartial<I extends Exact<DeepPartial<ComponentUpdatedBody>, I>>(object: I): ComponentUpdatedBody {
|
|
1221
|
-
const message = createBaseComponentUpdatedBody();
|
|
1222
|
-
message.id = object.id ?? "";
|
|
1223
|
-
message.json = object.json ?? "";
|
|
1224
|
-
return message;
|
|
1225
|
-
},
|
|
1226
|
-
};
|
|
1227
|
-
|
|
1228
|
-
function createBaseInitMessagesFinishedBody(): InitMessagesFinishedBody {
|
|
1229
|
-
return {};
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
export const InitMessagesFinishedBody = {
|
|
1233
|
-
encode(_: InitMessagesFinishedBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1234
|
-
return writer;
|
|
1235
|
-
},
|
|
1236
|
-
|
|
1237
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InitMessagesFinishedBody {
|
|
1238
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1239
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1240
|
-
const message = createBaseInitMessagesFinishedBody();
|
|
1241
|
-
while (reader.pos < end) {
|
|
1242
|
-
const tag = reader.uint32();
|
|
1243
|
-
switch (tag >>> 3) {
|
|
1244
|
-
}
|
|
1245
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1246
|
-
break;
|
|
1247
|
-
}
|
|
1248
|
-
reader.skipType(tag & 7);
|
|
1249
|
-
}
|
|
1250
|
-
return message;
|
|
1251
|
-
},
|
|
1252
|
-
|
|
1253
|
-
fromJSON(_: any): InitMessagesFinishedBody {
|
|
1254
|
-
return {};
|
|
1255
|
-
},
|
|
1256
|
-
|
|
1257
|
-
toJSON(_: InitMessagesFinishedBody): unknown {
|
|
1258
|
-
const obj: any = {};
|
|
1259
|
-
return obj;
|
|
1260
|
-
},
|
|
1261
|
-
|
|
1262
|
-
create<I extends Exact<DeepPartial<InitMessagesFinishedBody>, I>>(base?: I): InitMessagesFinishedBody {
|
|
1263
|
-
return InitMessagesFinishedBody.fromPartial(base ?? {});
|
|
1264
|
-
},
|
|
1265
|
-
|
|
1266
|
-
fromPartial<I extends Exact<DeepPartial<InitMessagesFinishedBody>, I>>(_: I): InitMessagesFinishedBody {
|
|
1267
|
-
const message = createBaseInitMessagesFinishedBody();
|
|
1268
|
-
return message;
|
|
1269
|
-
},
|
|
1270
|
-
};
|
|
1271
|
-
|
|
1272
|
-
function createBasePayload(): Payload {
|
|
1273
|
-
return {
|
|
1274
|
-
openExternalUrl: undefined,
|
|
1275
|
-
openNftDialog: undefined,
|
|
1276
|
-
createEntity: undefined,
|
|
1277
|
-
removeEntity: undefined,
|
|
1278
|
-
updateEntityComponent: undefined,
|
|
1279
|
-
attachEntityComponent: undefined,
|
|
1280
|
-
componentRemoved: undefined,
|
|
1281
|
-
setEntityParent: undefined,
|
|
1282
|
-
query: undefined,
|
|
1283
|
-
componentCreated: undefined,
|
|
1284
|
-
componentDisposed: undefined,
|
|
1285
|
-
componentUpdated: undefined,
|
|
1286
|
-
initMessagesFinished: undefined,
|
|
1287
|
-
};
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
export const Payload = {
|
|
1291
|
-
encode(message: Payload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1292
|
-
if (message.openExternalUrl !== undefined) {
|
|
1293
|
-
OpenExternalUrlBody.encode(message.openExternalUrl, writer.uint32(10).fork()).ldelim();
|
|
1294
|
-
}
|
|
1295
|
-
if (message.openNftDialog !== undefined) {
|
|
1296
|
-
OpenNFTDialogBody.encode(message.openNftDialog, writer.uint32(18).fork()).ldelim();
|
|
1297
|
-
}
|
|
1298
|
-
if (message.createEntity !== undefined) {
|
|
1299
|
-
CreateEntityBody.encode(message.createEntity, writer.uint32(26).fork()).ldelim();
|
|
1300
|
-
}
|
|
1301
|
-
if (message.removeEntity !== undefined) {
|
|
1302
|
-
RemoveEntityBody.encode(message.removeEntity, writer.uint32(34).fork()).ldelim();
|
|
1303
|
-
}
|
|
1304
|
-
if (message.updateEntityComponent !== undefined) {
|
|
1305
|
-
UpdateEntityComponentBody.encode(message.updateEntityComponent, writer.uint32(42).fork()).ldelim();
|
|
1306
|
-
}
|
|
1307
|
-
if (message.attachEntityComponent !== undefined) {
|
|
1308
|
-
AttachEntityComponentBody.encode(message.attachEntityComponent, writer.uint32(50).fork()).ldelim();
|
|
1309
|
-
}
|
|
1310
|
-
if (message.componentRemoved !== undefined) {
|
|
1311
|
-
ComponentRemovedBody.encode(message.componentRemoved, writer.uint32(58).fork()).ldelim();
|
|
1312
|
-
}
|
|
1313
|
-
if (message.setEntityParent !== undefined) {
|
|
1314
|
-
SetEntityParentBody.encode(message.setEntityParent, writer.uint32(66).fork()).ldelim();
|
|
1315
|
-
}
|
|
1316
|
-
if (message.query !== undefined) {
|
|
1317
|
-
QueryBody.encode(message.query, writer.uint32(74).fork()).ldelim();
|
|
1318
|
-
}
|
|
1319
|
-
if (message.componentCreated !== undefined) {
|
|
1320
|
-
ComponentCreatedBody.encode(message.componentCreated, writer.uint32(82).fork()).ldelim();
|
|
1321
|
-
}
|
|
1322
|
-
if (message.componentDisposed !== undefined) {
|
|
1323
|
-
ComponentDisposedBody.encode(message.componentDisposed, writer.uint32(90).fork()).ldelim();
|
|
1324
|
-
}
|
|
1325
|
-
if (message.componentUpdated !== undefined) {
|
|
1326
|
-
ComponentUpdatedBody.encode(message.componentUpdated, writer.uint32(98).fork()).ldelim();
|
|
1327
|
-
}
|
|
1328
|
-
if (message.initMessagesFinished !== undefined) {
|
|
1329
|
-
InitMessagesFinishedBody.encode(message.initMessagesFinished, writer.uint32(106).fork()).ldelim();
|
|
1330
|
-
}
|
|
1331
|
-
return writer;
|
|
1332
|
-
},
|
|
1333
|
-
|
|
1334
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Payload {
|
|
1335
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1336
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1337
|
-
const message = createBasePayload();
|
|
1338
|
-
while (reader.pos < end) {
|
|
1339
|
-
const tag = reader.uint32();
|
|
1340
|
-
switch (tag >>> 3) {
|
|
1341
|
-
case 1:
|
|
1342
|
-
if (tag !== 10) {
|
|
1343
|
-
break;
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
message.openExternalUrl = OpenExternalUrlBody.decode(reader, reader.uint32());
|
|
1347
|
-
continue;
|
|
1348
|
-
case 2:
|
|
1349
|
-
if (tag !== 18) {
|
|
1350
|
-
break;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
message.openNftDialog = OpenNFTDialogBody.decode(reader, reader.uint32());
|
|
1354
|
-
continue;
|
|
1355
|
-
case 3:
|
|
1356
|
-
if (tag !== 26) {
|
|
1357
|
-
break;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
message.createEntity = CreateEntityBody.decode(reader, reader.uint32());
|
|
1361
|
-
continue;
|
|
1362
|
-
case 4:
|
|
1363
|
-
if (tag !== 34) {
|
|
1364
|
-
break;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
message.removeEntity = RemoveEntityBody.decode(reader, reader.uint32());
|
|
1368
|
-
continue;
|
|
1369
|
-
case 5:
|
|
1370
|
-
if (tag !== 42) {
|
|
1371
|
-
break;
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
message.updateEntityComponent = UpdateEntityComponentBody.decode(reader, reader.uint32());
|
|
1375
|
-
continue;
|
|
1376
|
-
case 6:
|
|
1377
|
-
if (tag !== 50) {
|
|
1378
|
-
break;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
message.attachEntityComponent = AttachEntityComponentBody.decode(reader, reader.uint32());
|
|
1382
|
-
continue;
|
|
1383
|
-
case 7:
|
|
1384
|
-
if (tag !== 58) {
|
|
1385
|
-
break;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
message.componentRemoved = ComponentRemovedBody.decode(reader, reader.uint32());
|
|
1389
|
-
continue;
|
|
1390
|
-
case 8:
|
|
1391
|
-
if (tag !== 66) {
|
|
1392
|
-
break;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
message.setEntityParent = SetEntityParentBody.decode(reader, reader.uint32());
|
|
1396
|
-
continue;
|
|
1397
|
-
case 9:
|
|
1398
|
-
if (tag !== 74) {
|
|
1399
|
-
break;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
message.query = QueryBody.decode(reader, reader.uint32());
|
|
1403
|
-
continue;
|
|
1404
|
-
case 10:
|
|
1405
|
-
if (tag !== 82) {
|
|
1406
|
-
break;
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
message.componentCreated = ComponentCreatedBody.decode(reader, reader.uint32());
|
|
1410
|
-
continue;
|
|
1411
|
-
case 11:
|
|
1412
|
-
if (tag !== 90) {
|
|
1413
|
-
break;
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
message.componentDisposed = ComponentDisposedBody.decode(reader, reader.uint32());
|
|
1417
|
-
continue;
|
|
1418
|
-
case 12:
|
|
1419
|
-
if (tag !== 98) {
|
|
1420
|
-
break;
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
message.componentUpdated = ComponentUpdatedBody.decode(reader, reader.uint32());
|
|
1424
|
-
continue;
|
|
1425
|
-
case 13:
|
|
1426
|
-
if (tag !== 106) {
|
|
1427
|
-
break;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
message.initMessagesFinished = InitMessagesFinishedBody.decode(reader, reader.uint32());
|
|
1431
|
-
continue;
|
|
1432
|
-
}
|
|
1433
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1434
|
-
break;
|
|
1435
|
-
}
|
|
1436
|
-
reader.skipType(tag & 7);
|
|
1437
|
-
}
|
|
1438
|
-
return message;
|
|
1439
|
-
},
|
|
1440
|
-
|
|
1441
|
-
fromJSON(object: any): Payload {
|
|
1442
|
-
return {
|
|
1443
|
-
openExternalUrl: isSet(object.openExternalUrl) ? OpenExternalUrlBody.fromJSON(object.openExternalUrl) : undefined,
|
|
1444
|
-
openNftDialog: isSet(object.openNftDialog) ? OpenNFTDialogBody.fromJSON(object.openNftDialog) : undefined,
|
|
1445
|
-
createEntity: isSet(object.createEntity) ? CreateEntityBody.fromJSON(object.createEntity) : undefined,
|
|
1446
|
-
removeEntity: isSet(object.removeEntity) ? RemoveEntityBody.fromJSON(object.removeEntity) : undefined,
|
|
1447
|
-
updateEntityComponent: isSet(object.updateEntityComponent)
|
|
1448
|
-
? UpdateEntityComponentBody.fromJSON(object.updateEntityComponent)
|
|
1449
|
-
: undefined,
|
|
1450
|
-
attachEntityComponent: isSet(object.attachEntityComponent)
|
|
1451
|
-
? AttachEntityComponentBody.fromJSON(object.attachEntityComponent)
|
|
1452
|
-
: undefined,
|
|
1453
|
-
componentRemoved: isSet(object.componentRemoved)
|
|
1454
|
-
? ComponentRemovedBody.fromJSON(object.componentRemoved)
|
|
1455
|
-
: undefined,
|
|
1456
|
-
setEntityParent: isSet(object.setEntityParent) ? SetEntityParentBody.fromJSON(object.setEntityParent) : undefined,
|
|
1457
|
-
query: isSet(object.query) ? QueryBody.fromJSON(object.query) : undefined,
|
|
1458
|
-
componentCreated: isSet(object.componentCreated)
|
|
1459
|
-
? ComponentCreatedBody.fromJSON(object.componentCreated)
|
|
1460
|
-
: undefined,
|
|
1461
|
-
componentDisposed: isSet(object.componentDisposed)
|
|
1462
|
-
? ComponentDisposedBody.fromJSON(object.componentDisposed)
|
|
1463
|
-
: undefined,
|
|
1464
|
-
componentUpdated: isSet(object.componentUpdated)
|
|
1465
|
-
? ComponentUpdatedBody.fromJSON(object.componentUpdated)
|
|
1466
|
-
: undefined,
|
|
1467
|
-
initMessagesFinished: isSet(object.initMessagesFinished)
|
|
1468
|
-
? InitMessagesFinishedBody.fromJSON(object.initMessagesFinished)
|
|
1469
|
-
: undefined,
|
|
1470
|
-
};
|
|
1471
|
-
},
|
|
1472
|
-
|
|
1473
|
-
toJSON(message: Payload): unknown {
|
|
1474
|
-
const obj: any = {};
|
|
1475
|
-
message.openExternalUrl !== undefined &&
|
|
1476
|
-
(obj.openExternalUrl = message.openExternalUrl ? OpenExternalUrlBody.toJSON(message.openExternalUrl) : undefined);
|
|
1477
|
-
message.openNftDialog !== undefined &&
|
|
1478
|
-
(obj.openNftDialog = message.openNftDialog ? OpenNFTDialogBody.toJSON(message.openNftDialog) : undefined);
|
|
1479
|
-
message.createEntity !== undefined &&
|
|
1480
|
-
(obj.createEntity = message.createEntity ? CreateEntityBody.toJSON(message.createEntity) : undefined);
|
|
1481
|
-
message.removeEntity !== undefined &&
|
|
1482
|
-
(obj.removeEntity = message.removeEntity ? RemoveEntityBody.toJSON(message.removeEntity) : undefined);
|
|
1483
|
-
message.updateEntityComponent !== undefined && (obj.updateEntityComponent = message.updateEntityComponent
|
|
1484
|
-
? UpdateEntityComponentBody.toJSON(message.updateEntityComponent)
|
|
1485
|
-
: undefined);
|
|
1486
|
-
message.attachEntityComponent !== undefined && (obj.attachEntityComponent = message.attachEntityComponent
|
|
1487
|
-
? AttachEntityComponentBody.toJSON(message.attachEntityComponent)
|
|
1488
|
-
: undefined);
|
|
1489
|
-
message.componentRemoved !== undefined && (obj.componentRemoved = message.componentRemoved
|
|
1490
|
-
? ComponentRemovedBody.toJSON(message.componentRemoved)
|
|
1491
|
-
: undefined);
|
|
1492
|
-
message.setEntityParent !== undefined &&
|
|
1493
|
-
(obj.setEntityParent = message.setEntityParent ? SetEntityParentBody.toJSON(message.setEntityParent) : undefined);
|
|
1494
|
-
message.query !== undefined && (obj.query = message.query ? QueryBody.toJSON(message.query) : undefined);
|
|
1495
|
-
message.componentCreated !== undefined && (obj.componentCreated = message.componentCreated
|
|
1496
|
-
? ComponentCreatedBody.toJSON(message.componentCreated)
|
|
1497
|
-
: undefined);
|
|
1498
|
-
message.componentDisposed !== undefined && (obj.componentDisposed = message.componentDisposed
|
|
1499
|
-
? ComponentDisposedBody.toJSON(message.componentDisposed)
|
|
1500
|
-
: undefined);
|
|
1501
|
-
message.componentUpdated !== undefined && (obj.componentUpdated = message.componentUpdated
|
|
1502
|
-
? ComponentUpdatedBody.toJSON(message.componentUpdated)
|
|
1503
|
-
: undefined);
|
|
1504
|
-
message.initMessagesFinished !== undefined && (obj.initMessagesFinished = message.initMessagesFinished
|
|
1505
|
-
? InitMessagesFinishedBody.toJSON(message.initMessagesFinished)
|
|
1506
|
-
: undefined);
|
|
1507
|
-
return obj;
|
|
1508
|
-
},
|
|
1509
|
-
|
|
1510
|
-
create<I extends Exact<DeepPartial<Payload>, I>>(base?: I): Payload {
|
|
1511
|
-
return Payload.fromPartial(base ?? {});
|
|
1512
|
-
},
|
|
1513
|
-
|
|
1514
|
-
fromPartial<I extends Exact<DeepPartial<Payload>, I>>(object: I): Payload {
|
|
1515
|
-
const message = createBasePayload();
|
|
1516
|
-
message.openExternalUrl = (object.openExternalUrl !== undefined && object.openExternalUrl !== null)
|
|
1517
|
-
? OpenExternalUrlBody.fromPartial(object.openExternalUrl)
|
|
1518
|
-
: undefined;
|
|
1519
|
-
message.openNftDialog = (object.openNftDialog !== undefined && object.openNftDialog !== null)
|
|
1520
|
-
? OpenNFTDialogBody.fromPartial(object.openNftDialog)
|
|
1521
|
-
: undefined;
|
|
1522
|
-
message.createEntity = (object.createEntity !== undefined && object.createEntity !== null)
|
|
1523
|
-
? CreateEntityBody.fromPartial(object.createEntity)
|
|
1524
|
-
: undefined;
|
|
1525
|
-
message.removeEntity = (object.removeEntity !== undefined && object.removeEntity !== null)
|
|
1526
|
-
? RemoveEntityBody.fromPartial(object.removeEntity)
|
|
1527
|
-
: undefined;
|
|
1528
|
-
message.updateEntityComponent =
|
|
1529
|
-
(object.updateEntityComponent !== undefined && object.updateEntityComponent !== null)
|
|
1530
|
-
? UpdateEntityComponentBody.fromPartial(object.updateEntityComponent)
|
|
1531
|
-
: undefined;
|
|
1532
|
-
message.attachEntityComponent =
|
|
1533
|
-
(object.attachEntityComponent !== undefined && object.attachEntityComponent !== null)
|
|
1534
|
-
? AttachEntityComponentBody.fromPartial(object.attachEntityComponent)
|
|
1535
|
-
: undefined;
|
|
1536
|
-
message.componentRemoved = (object.componentRemoved !== undefined && object.componentRemoved !== null)
|
|
1537
|
-
? ComponentRemovedBody.fromPartial(object.componentRemoved)
|
|
1538
|
-
: undefined;
|
|
1539
|
-
message.setEntityParent = (object.setEntityParent !== undefined && object.setEntityParent !== null)
|
|
1540
|
-
? SetEntityParentBody.fromPartial(object.setEntityParent)
|
|
1541
|
-
: undefined;
|
|
1542
|
-
message.query = (object.query !== undefined && object.query !== null)
|
|
1543
|
-
? QueryBody.fromPartial(object.query)
|
|
1544
|
-
: undefined;
|
|
1545
|
-
message.componentCreated = (object.componentCreated !== undefined && object.componentCreated !== null)
|
|
1546
|
-
? ComponentCreatedBody.fromPartial(object.componentCreated)
|
|
1547
|
-
: undefined;
|
|
1548
|
-
message.componentDisposed = (object.componentDisposed !== undefined && object.componentDisposed !== null)
|
|
1549
|
-
? ComponentDisposedBody.fromPartial(object.componentDisposed)
|
|
1550
|
-
: undefined;
|
|
1551
|
-
message.componentUpdated = (object.componentUpdated !== undefined && object.componentUpdated !== null)
|
|
1552
|
-
? ComponentUpdatedBody.fromPartial(object.componentUpdated)
|
|
1553
|
-
: undefined;
|
|
1554
|
-
message.initMessagesFinished = (object.initMessagesFinished !== undefined && object.initMessagesFinished !== null)
|
|
1555
|
-
? InitMessagesFinishedBody.fromPartial(object.initMessagesFinished)
|
|
1556
|
-
: undefined;
|
|
1557
|
-
return message;
|
|
1558
|
-
},
|
|
1559
|
-
};
|
|
1560
|
-
|
|
1561
|
-
function createBaseEntityAction(): EntityAction {
|
|
1562
|
-
return { type: 0, tag: undefined, payload: undefined };
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
export const EntityAction = {
|
|
1566
|
-
encode(message: EntityAction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1567
|
-
if (message.type !== 0) {
|
|
1568
|
-
writer.uint32(8).int32(message.type);
|
|
1569
|
-
}
|
|
1570
|
-
if (message.tag !== undefined) {
|
|
1571
|
-
writer.uint32(18).string(message.tag);
|
|
1572
|
-
}
|
|
1573
|
-
if (message.payload !== undefined) {
|
|
1574
|
-
Payload.encode(message.payload, writer.uint32(26).fork()).ldelim();
|
|
1575
|
-
}
|
|
1576
|
-
return writer;
|
|
1577
|
-
},
|
|
1578
|
-
|
|
1579
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EntityAction {
|
|
1580
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1581
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1582
|
-
const message = createBaseEntityAction();
|
|
1583
|
-
while (reader.pos < end) {
|
|
1584
|
-
const tag = reader.uint32();
|
|
1585
|
-
switch (tag >>> 3) {
|
|
1586
|
-
case 1:
|
|
1587
|
-
if (tag !== 8) {
|
|
1588
|
-
break;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
message.type = reader.int32() as any;
|
|
1592
|
-
continue;
|
|
1593
|
-
case 2:
|
|
1594
|
-
if (tag !== 18) {
|
|
1595
|
-
break;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
message.tag = reader.string();
|
|
1599
|
-
continue;
|
|
1600
|
-
case 3:
|
|
1601
|
-
if (tag !== 26) {
|
|
1602
|
-
break;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
message.payload = Payload.decode(reader, reader.uint32());
|
|
1606
|
-
continue;
|
|
1607
|
-
}
|
|
1608
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1609
|
-
break;
|
|
1610
|
-
}
|
|
1611
|
-
reader.skipType(tag & 7);
|
|
1612
|
-
}
|
|
1613
|
-
return message;
|
|
1614
|
-
},
|
|
1615
|
-
|
|
1616
|
-
fromJSON(object: any): EntityAction {
|
|
1617
|
-
return {
|
|
1618
|
-
type: isSet(object.type) ? eATypeFromJSON(object.type) : 0,
|
|
1619
|
-
tag: isSet(object.tag) ? String(object.tag) : undefined,
|
|
1620
|
-
payload: isSet(object.payload) ? Payload.fromJSON(object.payload) : undefined,
|
|
1621
|
-
};
|
|
1622
|
-
},
|
|
1623
|
-
|
|
1624
|
-
toJSON(message: EntityAction): unknown {
|
|
1625
|
-
const obj: any = {};
|
|
1626
|
-
message.type !== undefined && (obj.type = eATypeToJSON(message.type));
|
|
1627
|
-
message.tag !== undefined && (obj.tag = message.tag);
|
|
1628
|
-
message.payload !== undefined && (obj.payload = message.payload ? Payload.toJSON(message.payload) : undefined);
|
|
1629
|
-
return obj;
|
|
1630
|
-
},
|
|
117
|
+
export interface CrdtGetStateResponse {
|
|
118
|
+
/** returns true if the returned state has scene-created entities */
|
|
119
|
+
hasEntities: boolean;
|
|
120
|
+
/** static entities data (root entity, camera, etc) and scene-created entities */
|
|
121
|
+
data: Uint8Array[];
|
|
122
|
+
}
|
|
1631
123
|
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
124
|
+
/** deprecated */
|
|
125
|
+
export interface CrdtMessageFromRendererRequest {
|
|
126
|
+
}
|
|
1635
127
|
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
message.payload = (object.payload !== undefined && object.payload !== null)
|
|
1641
|
-
? Payload.fromPartial(object.payload)
|
|
1642
|
-
: undefined;
|
|
1643
|
-
return message;
|
|
1644
|
-
},
|
|
1645
|
-
};
|
|
128
|
+
/** deprecated */
|
|
129
|
+
export interface CrdtMessageFromRendererResponse {
|
|
130
|
+
data: Uint8Array[];
|
|
131
|
+
}
|
|
1646
132
|
|
|
1647
133
|
function createBaseManyEntityAction(): ManyEntityAction {
|
|
1648
134
|
return { actions: [] };
|
|
1649
135
|
}
|
|
1650
136
|
|
|
1651
|
-
export
|
|
1652
|
-
encode(message: ManyEntityAction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
137
|
+
export namespace ManyEntityAction {
|
|
138
|
+
export function encode(message: ManyEntityAction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1653
139
|
for (const v of message.actions) {
|
|
1654
140
|
EntityAction.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1655
141
|
}
|
|
1656
142
|
return writer;
|
|
1657
|
-
}
|
|
143
|
+
}
|
|
1658
144
|
|
|
1659
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ManyEntityAction {
|
|
145
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ManyEntityAction {
|
|
1660
146
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1661
147
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1662
148
|
const message = createBaseManyEntityAction();
|
|
@@ -1677,13 +163,13 @@ export const ManyEntityAction = {
|
|
|
1677
163
|
reader.skipType(tag & 7);
|
|
1678
164
|
}
|
|
1679
165
|
return message;
|
|
1680
|
-
}
|
|
166
|
+
}
|
|
1681
167
|
|
|
1682
|
-
fromJSON(object: any): ManyEntityAction {
|
|
168
|
+
export function fromJSON(object: any): ManyEntityAction {
|
|
1683
169
|
return { actions: Array.isArray(object?.actions) ? object.actions.map((e: any) => EntityAction.fromJSON(e)) : [] };
|
|
1684
|
-
}
|
|
170
|
+
}
|
|
1685
171
|
|
|
1686
|
-
toJSON(message: ManyEntityAction): unknown {
|
|
172
|
+
export function toJSON(message: ManyEntityAction): unknown {
|
|
1687
173
|
const obj: any = {};
|
|
1688
174
|
if (message.actions) {
|
|
1689
175
|
obj.actions = message.actions.map((e) => e ? EntityAction.toJSON(e) : undefined);
|
|
@@ -1691,32 +177,32 @@ export const ManyEntityAction = {
|
|
|
1691
177
|
obj.actions = [];
|
|
1692
178
|
}
|
|
1693
179
|
return obj;
|
|
1694
|
-
}
|
|
180
|
+
}
|
|
1695
181
|
|
|
1696
|
-
create<I extends Exact<DeepPartial<ManyEntityAction>, I>>(base?: I): ManyEntityAction {
|
|
182
|
+
export function create<I extends Exact<DeepPartial<ManyEntityAction>, I>>(base?: I): ManyEntityAction {
|
|
1697
183
|
return ManyEntityAction.fromPartial(base ?? {});
|
|
1698
|
-
}
|
|
184
|
+
}
|
|
1699
185
|
|
|
1700
|
-
fromPartial<I extends Exact<DeepPartial<ManyEntityAction>, I>>(object: I): ManyEntityAction {
|
|
186
|
+
export function fromPartial<I extends Exact<DeepPartial<ManyEntityAction>, I>>(object: I): ManyEntityAction {
|
|
1701
187
|
const message = createBaseManyEntityAction();
|
|
1702
188
|
message.actions = object.actions?.map((e) => EntityAction.fromPartial(e)) || [];
|
|
1703
189
|
return message;
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
1706
192
|
|
|
1707
193
|
function createBaseSendBatchResponse(): SendBatchResponse {
|
|
1708
194
|
return { events: [] };
|
|
1709
195
|
}
|
|
1710
196
|
|
|
1711
|
-
export
|
|
1712
|
-
encode(message: SendBatchResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
197
|
+
export namespace SendBatchResponse {
|
|
198
|
+
export function encode(message: SendBatchResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1713
199
|
for (const v of message.events) {
|
|
1714
200
|
EventData.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1715
201
|
}
|
|
1716
202
|
return writer;
|
|
1717
|
-
}
|
|
203
|
+
}
|
|
1718
204
|
|
|
1719
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SendBatchResponse {
|
|
205
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SendBatchResponse {
|
|
1720
206
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1721
207
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1722
208
|
const message = createBaseSendBatchResponse();
|
|
@@ -1737,13 +223,13 @@ export const SendBatchResponse = {
|
|
|
1737
223
|
reader.skipType(tag & 7);
|
|
1738
224
|
}
|
|
1739
225
|
return message;
|
|
1740
|
-
}
|
|
226
|
+
}
|
|
1741
227
|
|
|
1742
|
-
fromJSON(object: any): SendBatchResponse {
|
|
228
|
+
export function fromJSON(object: any): SendBatchResponse {
|
|
1743
229
|
return { events: Array.isArray(object?.events) ? object.events.map((e: any) => EventData.fromJSON(e)) : [] };
|
|
1744
|
-
}
|
|
230
|
+
}
|
|
1745
231
|
|
|
1746
|
-
toJSON(message: SendBatchResponse): unknown {
|
|
232
|
+
export function toJSON(message: SendBatchResponse): unknown {
|
|
1747
233
|
const obj: any = {};
|
|
1748
234
|
if (message.events) {
|
|
1749
235
|
obj.events = message.events.map((e) => e ? EventData.toJSON(e) : undefined);
|
|
@@ -1751,32 +237,32 @@ export const SendBatchResponse = {
|
|
|
1751
237
|
obj.events = [];
|
|
1752
238
|
}
|
|
1753
239
|
return obj;
|
|
1754
|
-
}
|
|
240
|
+
}
|
|
1755
241
|
|
|
1756
|
-
create<I extends Exact<DeepPartial<SendBatchResponse>, I>>(base?: I): SendBatchResponse {
|
|
242
|
+
export function create<I extends Exact<DeepPartial<SendBatchResponse>, I>>(base?: I): SendBatchResponse {
|
|
1757
243
|
return SendBatchResponse.fromPartial(base ?? {});
|
|
1758
|
-
}
|
|
244
|
+
}
|
|
1759
245
|
|
|
1760
|
-
fromPartial<I extends Exact<DeepPartial<SendBatchResponse>, I>>(object: I): SendBatchResponse {
|
|
246
|
+
export function fromPartial<I extends Exact<DeepPartial<SendBatchResponse>, I>>(object: I): SendBatchResponse {
|
|
1761
247
|
const message = createBaseSendBatchResponse();
|
|
1762
248
|
message.events = object.events?.map((e) => EventData.fromPartial(e)) || [];
|
|
1763
249
|
return message;
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
1766
252
|
|
|
1767
253
|
function createBaseUnsubscribeRequest(): UnsubscribeRequest {
|
|
1768
254
|
return { eventId: "" };
|
|
1769
255
|
}
|
|
1770
256
|
|
|
1771
|
-
export
|
|
1772
|
-
encode(message: UnsubscribeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
257
|
+
export namespace UnsubscribeRequest {
|
|
258
|
+
export function encode(message: UnsubscribeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1773
259
|
if (message.eventId !== "") {
|
|
1774
260
|
writer.uint32(10).string(message.eventId);
|
|
1775
261
|
}
|
|
1776
262
|
return writer;
|
|
1777
|
-
}
|
|
263
|
+
}
|
|
1778
264
|
|
|
1779
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscribeRequest {
|
|
265
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscribeRequest {
|
|
1780
266
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1781
267
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1782
268
|
const message = createBaseUnsubscribeRequest();
|
|
@@ -1797,42 +283,42 @@ export const UnsubscribeRequest = {
|
|
|
1797
283
|
reader.skipType(tag & 7);
|
|
1798
284
|
}
|
|
1799
285
|
return message;
|
|
1800
|
-
}
|
|
286
|
+
}
|
|
1801
287
|
|
|
1802
|
-
fromJSON(object: any): UnsubscribeRequest {
|
|
288
|
+
export function fromJSON(object: any): UnsubscribeRequest {
|
|
1803
289
|
return { eventId: isSet(object.eventId) ? String(object.eventId) : "" };
|
|
1804
|
-
}
|
|
290
|
+
}
|
|
1805
291
|
|
|
1806
|
-
toJSON(message: UnsubscribeRequest): unknown {
|
|
292
|
+
export function toJSON(message: UnsubscribeRequest): unknown {
|
|
1807
293
|
const obj: any = {};
|
|
1808
294
|
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
1809
295
|
return obj;
|
|
1810
|
-
}
|
|
296
|
+
}
|
|
1811
297
|
|
|
1812
|
-
create<I extends Exact<DeepPartial<UnsubscribeRequest>, I>>(base?: I): UnsubscribeRequest {
|
|
298
|
+
export function create<I extends Exact<DeepPartial<UnsubscribeRequest>, I>>(base?: I): UnsubscribeRequest {
|
|
1813
299
|
return UnsubscribeRequest.fromPartial(base ?? {});
|
|
1814
|
-
}
|
|
300
|
+
}
|
|
1815
301
|
|
|
1816
|
-
fromPartial<I extends Exact<DeepPartial<UnsubscribeRequest>, I>>(object: I): UnsubscribeRequest {
|
|
302
|
+
export function fromPartial<I extends Exact<DeepPartial<UnsubscribeRequest>, I>>(object: I): UnsubscribeRequest {
|
|
1817
303
|
const message = createBaseUnsubscribeRequest();
|
|
1818
304
|
message.eventId = object.eventId ?? "";
|
|
1819
305
|
return message;
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
1822
308
|
|
|
1823
309
|
function createBaseSubscribeRequest(): SubscribeRequest {
|
|
1824
310
|
return { eventId: "" };
|
|
1825
311
|
}
|
|
1826
312
|
|
|
1827
|
-
export
|
|
1828
|
-
encode(message: SubscribeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
313
|
+
export namespace SubscribeRequest {
|
|
314
|
+
export function encode(message: SubscribeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1829
315
|
if (message.eventId !== "") {
|
|
1830
316
|
writer.uint32(10).string(message.eventId);
|
|
1831
317
|
}
|
|
1832
318
|
return writer;
|
|
1833
|
-
}
|
|
319
|
+
}
|
|
1834
320
|
|
|
1835
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeRequest {
|
|
321
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeRequest {
|
|
1836
322
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1837
323
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1838
324
|
const message = createBaseSubscribeRequest();
|
|
@@ -1853,39 +339,39 @@ export const SubscribeRequest = {
|
|
|
1853
339
|
reader.skipType(tag & 7);
|
|
1854
340
|
}
|
|
1855
341
|
return message;
|
|
1856
|
-
}
|
|
342
|
+
}
|
|
1857
343
|
|
|
1858
|
-
fromJSON(object: any): SubscribeRequest {
|
|
344
|
+
export function fromJSON(object: any): SubscribeRequest {
|
|
1859
345
|
return { eventId: isSet(object.eventId) ? String(object.eventId) : "" };
|
|
1860
|
-
}
|
|
346
|
+
}
|
|
1861
347
|
|
|
1862
|
-
toJSON(message: SubscribeRequest): unknown {
|
|
348
|
+
export function toJSON(message: SubscribeRequest): unknown {
|
|
1863
349
|
const obj: any = {};
|
|
1864
350
|
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
1865
351
|
return obj;
|
|
1866
|
-
}
|
|
352
|
+
}
|
|
1867
353
|
|
|
1868
|
-
create<I extends Exact<DeepPartial<SubscribeRequest>, I>>(base?: I): SubscribeRequest {
|
|
354
|
+
export function create<I extends Exact<DeepPartial<SubscribeRequest>, I>>(base?: I): SubscribeRequest {
|
|
1869
355
|
return SubscribeRequest.fromPartial(base ?? {});
|
|
1870
|
-
}
|
|
356
|
+
}
|
|
1871
357
|
|
|
1872
|
-
fromPartial<I extends Exact<DeepPartial<SubscribeRequest>, I>>(object: I): SubscribeRequest {
|
|
358
|
+
export function fromPartial<I extends Exact<DeepPartial<SubscribeRequest>, I>>(object: I): SubscribeRequest {
|
|
1873
359
|
const message = createBaseSubscribeRequest();
|
|
1874
360
|
message.eventId = object.eventId ?? "";
|
|
1875
361
|
return message;
|
|
1876
|
-
}
|
|
1877
|
-
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
1878
364
|
|
|
1879
365
|
function createBaseSubscribeResponse(): SubscribeResponse {
|
|
1880
366
|
return {};
|
|
1881
367
|
}
|
|
1882
368
|
|
|
1883
|
-
export
|
|
1884
|
-
encode(_: SubscribeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
369
|
+
export namespace SubscribeResponse {
|
|
370
|
+
export function encode(_: SubscribeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1885
371
|
return writer;
|
|
1886
|
-
}
|
|
372
|
+
}
|
|
1887
373
|
|
|
1888
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeResponse {
|
|
374
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeResponse {
|
|
1889
375
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1890
376
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1891
377
|
const message = createBaseSubscribeResponse();
|
|
@@ -1899,37 +385,37 @@ export const SubscribeResponse = {
|
|
|
1899
385
|
reader.skipType(tag & 7);
|
|
1900
386
|
}
|
|
1901
387
|
return message;
|
|
1902
|
-
}
|
|
388
|
+
}
|
|
1903
389
|
|
|
1904
|
-
fromJSON(_: any): SubscribeResponse {
|
|
390
|
+
export function fromJSON(_: any): SubscribeResponse {
|
|
1905
391
|
return {};
|
|
1906
|
-
}
|
|
392
|
+
}
|
|
1907
393
|
|
|
1908
|
-
toJSON(_: SubscribeResponse): unknown {
|
|
394
|
+
export function toJSON(_: SubscribeResponse): unknown {
|
|
1909
395
|
const obj: any = {};
|
|
1910
396
|
return obj;
|
|
1911
|
-
}
|
|
397
|
+
}
|
|
1912
398
|
|
|
1913
|
-
create<I extends Exact<DeepPartial<SubscribeResponse>, I>>(base?: I): SubscribeResponse {
|
|
399
|
+
export function create<I extends Exact<DeepPartial<SubscribeResponse>, I>>(base?: I): SubscribeResponse {
|
|
1914
400
|
return SubscribeResponse.fromPartial(base ?? {});
|
|
1915
|
-
}
|
|
401
|
+
}
|
|
1916
402
|
|
|
1917
|
-
fromPartial<I extends Exact<DeepPartial<SubscribeResponse>, I>>(_: I): SubscribeResponse {
|
|
403
|
+
export function fromPartial<I extends Exact<DeepPartial<SubscribeResponse>, I>>(_: I): SubscribeResponse {
|
|
1918
404
|
const message = createBaseSubscribeResponse();
|
|
1919
405
|
return message;
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
1922
408
|
|
|
1923
409
|
function createBaseUnsubscribeResponse(): UnsubscribeResponse {
|
|
1924
410
|
return {};
|
|
1925
411
|
}
|
|
1926
412
|
|
|
1927
|
-
export
|
|
1928
|
-
encode(_: UnsubscribeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
413
|
+
export namespace UnsubscribeResponse {
|
|
414
|
+
export function encode(_: UnsubscribeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1929
415
|
return writer;
|
|
1930
|
-
}
|
|
416
|
+
}
|
|
1931
417
|
|
|
1932
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscribeResponse {
|
|
418
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscribeResponse {
|
|
1933
419
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1934
420
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1935
421
|
const message = createBaseUnsubscribeResponse();
|
|
@@ -1943,33 +429,33 @@ export const UnsubscribeResponse = {
|
|
|
1943
429
|
reader.skipType(tag & 7);
|
|
1944
430
|
}
|
|
1945
431
|
return message;
|
|
1946
|
-
}
|
|
432
|
+
}
|
|
1947
433
|
|
|
1948
|
-
fromJSON(_: any): UnsubscribeResponse {
|
|
434
|
+
export function fromJSON(_: any): UnsubscribeResponse {
|
|
1949
435
|
return {};
|
|
1950
|
-
}
|
|
436
|
+
}
|
|
1951
437
|
|
|
1952
|
-
toJSON(_: UnsubscribeResponse): unknown {
|
|
438
|
+
export function toJSON(_: UnsubscribeResponse): unknown {
|
|
1953
439
|
const obj: any = {};
|
|
1954
440
|
return obj;
|
|
1955
|
-
}
|
|
441
|
+
}
|
|
1956
442
|
|
|
1957
|
-
create<I extends Exact<DeepPartial<UnsubscribeResponse>, I>>(base?: I): UnsubscribeResponse {
|
|
443
|
+
export function create<I extends Exact<DeepPartial<UnsubscribeResponse>, I>>(base?: I): UnsubscribeResponse {
|
|
1958
444
|
return UnsubscribeResponse.fromPartial(base ?? {});
|
|
1959
|
-
}
|
|
445
|
+
}
|
|
1960
446
|
|
|
1961
|
-
fromPartial<I extends Exact<DeepPartial<UnsubscribeResponse>, I>>(_: I): UnsubscribeResponse {
|
|
447
|
+
export function fromPartial<I extends Exact<DeepPartial<UnsubscribeResponse>, I>>(_: I): UnsubscribeResponse {
|
|
1962
448
|
const message = createBaseUnsubscribeResponse();
|
|
1963
449
|
return message;
|
|
1964
|
-
}
|
|
1965
|
-
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
1966
452
|
|
|
1967
453
|
function createBaseGenericPayload(): GenericPayload {
|
|
1968
454
|
return { eventId: "", eventData: "" };
|
|
1969
455
|
}
|
|
1970
456
|
|
|
1971
|
-
export
|
|
1972
|
-
encode(message: GenericPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
457
|
+
export namespace GenericPayload {
|
|
458
|
+
export function encode(message: GenericPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1973
459
|
if (message.eventId !== "") {
|
|
1974
460
|
writer.uint32(26).string(message.eventId);
|
|
1975
461
|
}
|
|
@@ -1977,9 +463,9 @@ export const GenericPayload = {
|
|
|
1977
463
|
writer.uint32(34).string(message.eventData);
|
|
1978
464
|
}
|
|
1979
465
|
return writer;
|
|
1980
|
-
}
|
|
466
|
+
}
|
|
1981
467
|
|
|
1982
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GenericPayload {
|
|
468
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): GenericPayload {
|
|
1983
469
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1984
470
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1985
471
|
const message = createBaseGenericPayload();
|
|
@@ -2007,40 +493,40 @@ export const GenericPayload = {
|
|
|
2007
493
|
reader.skipType(tag & 7);
|
|
2008
494
|
}
|
|
2009
495
|
return message;
|
|
2010
|
-
}
|
|
496
|
+
}
|
|
2011
497
|
|
|
2012
|
-
fromJSON(object: any): GenericPayload {
|
|
498
|
+
export function fromJSON(object: any): GenericPayload {
|
|
2013
499
|
return {
|
|
2014
500
|
eventId: isSet(object.eventId) ? String(object.eventId) : "",
|
|
2015
501
|
eventData: isSet(object.eventData) ? String(object.eventData) : "",
|
|
2016
502
|
};
|
|
2017
|
-
}
|
|
503
|
+
}
|
|
2018
504
|
|
|
2019
|
-
toJSON(message: GenericPayload): unknown {
|
|
505
|
+
export function toJSON(message: GenericPayload): unknown {
|
|
2020
506
|
const obj: any = {};
|
|
2021
507
|
message.eventId !== undefined && (obj.eventId = message.eventId);
|
|
2022
508
|
message.eventData !== undefined && (obj.eventData = message.eventData);
|
|
2023
509
|
return obj;
|
|
2024
|
-
}
|
|
510
|
+
}
|
|
2025
511
|
|
|
2026
|
-
create<I extends Exact<DeepPartial<GenericPayload>, I>>(base?: I): GenericPayload {
|
|
512
|
+
export function create<I extends Exact<DeepPartial<GenericPayload>, I>>(base?: I): GenericPayload {
|
|
2027
513
|
return GenericPayload.fromPartial(base ?? {});
|
|
2028
|
-
}
|
|
514
|
+
}
|
|
2029
515
|
|
|
2030
|
-
fromPartial<I extends Exact<DeepPartial<GenericPayload>, I>>(object: I): GenericPayload {
|
|
516
|
+
export function fromPartial<I extends Exact<DeepPartial<GenericPayload>, I>>(object: I): GenericPayload {
|
|
2031
517
|
const message = createBaseGenericPayload();
|
|
2032
518
|
message.eventId = object.eventId ?? "";
|
|
2033
519
|
message.eventData = object.eventData ?? "";
|
|
2034
520
|
return message;
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
2037
523
|
|
|
2038
524
|
function createBaseReadOnlyVector3(): ReadOnlyVector3 {
|
|
2039
525
|
return { x: 0, y: 0, z: 0 };
|
|
2040
526
|
}
|
|
2041
527
|
|
|
2042
|
-
export
|
|
2043
|
-
encode(message: ReadOnlyVector3, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
528
|
+
export namespace ReadOnlyVector3 {
|
|
529
|
+
export function encode(message: ReadOnlyVector3, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2044
530
|
if (message.x !== 0) {
|
|
2045
531
|
writer.uint32(13).float(message.x);
|
|
2046
532
|
}
|
|
@@ -2051,9 +537,9 @@ export const ReadOnlyVector3 = {
|
|
|
2051
537
|
writer.uint32(29).float(message.z);
|
|
2052
538
|
}
|
|
2053
539
|
return writer;
|
|
2054
|
-
}
|
|
540
|
+
}
|
|
2055
541
|
|
|
2056
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ReadOnlyVector3 {
|
|
542
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ReadOnlyVector3 {
|
|
2057
543
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2058
544
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2059
545
|
const message = createBaseReadOnlyVector3();
|
|
@@ -2088,43 +574,43 @@ export const ReadOnlyVector3 = {
|
|
|
2088
574
|
reader.skipType(tag & 7);
|
|
2089
575
|
}
|
|
2090
576
|
return message;
|
|
2091
|
-
}
|
|
577
|
+
}
|
|
2092
578
|
|
|
2093
|
-
fromJSON(object: any): ReadOnlyVector3 {
|
|
579
|
+
export function fromJSON(object: any): ReadOnlyVector3 {
|
|
2094
580
|
return {
|
|
2095
581
|
x: isSet(object.x) ? Number(object.x) : 0,
|
|
2096
582
|
y: isSet(object.y) ? Number(object.y) : 0,
|
|
2097
583
|
z: isSet(object.z) ? Number(object.z) : 0,
|
|
2098
584
|
};
|
|
2099
|
-
}
|
|
585
|
+
}
|
|
2100
586
|
|
|
2101
|
-
toJSON(message: ReadOnlyVector3): unknown {
|
|
587
|
+
export function toJSON(message: ReadOnlyVector3): unknown {
|
|
2102
588
|
const obj: any = {};
|
|
2103
589
|
message.x !== undefined && (obj.x = message.x);
|
|
2104
590
|
message.y !== undefined && (obj.y = message.y);
|
|
2105
591
|
message.z !== undefined && (obj.z = message.z);
|
|
2106
592
|
return obj;
|
|
2107
|
-
}
|
|
593
|
+
}
|
|
2108
594
|
|
|
2109
|
-
create<I extends Exact<DeepPartial<ReadOnlyVector3>, I>>(base?: I): ReadOnlyVector3 {
|
|
595
|
+
export function create<I extends Exact<DeepPartial<ReadOnlyVector3>, I>>(base?: I): ReadOnlyVector3 {
|
|
2110
596
|
return ReadOnlyVector3.fromPartial(base ?? {});
|
|
2111
|
-
}
|
|
597
|
+
}
|
|
2112
598
|
|
|
2113
|
-
fromPartial<I extends Exact<DeepPartial<ReadOnlyVector3>, I>>(object: I): ReadOnlyVector3 {
|
|
599
|
+
export function fromPartial<I extends Exact<DeepPartial<ReadOnlyVector3>, I>>(object: I): ReadOnlyVector3 {
|
|
2114
600
|
const message = createBaseReadOnlyVector3();
|
|
2115
601
|
message.x = object.x ?? 0;
|
|
2116
602
|
message.y = object.y ?? 0;
|
|
2117
603
|
message.z = object.z ?? 0;
|
|
2118
604
|
return message;
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
2121
607
|
|
|
2122
608
|
function createBaseReadOnlyQuaternion(): ReadOnlyQuaternion {
|
|
2123
609
|
return { x: 0, y: 0, z: 0, w: 0 };
|
|
2124
610
|
}
|
|
2125
611
|
|
|
2126
|
-
export
|
|
2127
|
-
encode(message: ReadOnlyQuaternion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
612
|
+
export namespace ReadOnlyQuaternion {
|
|
613
|
+
export function encode(message: ReadOnlyQuaternion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2128
614
|
if (message.x !== 0) {
|
|
2129
615
|
writer.uint32(13).float(message.x);
|
|
2130
616
|
}
|
|
@@ -2138,9 +624,9 @@ export const ReadOnlyQuaternion = {
|
|
|
2138
624
|
writer.uint32(37).float(message.w);
|
|
2139
625
|
}
|
|
2140
626
|
return writer;
|
|
2141
|
-
}
|
|
627
|
+
}
|
|
2142
628
|
|
|
2143
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ReadOnlyQuaternion {
|
|
629
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ReadOnlyQuaternion {
|
|
2144
630
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2145
631
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2146
632
|
const message = createBaseReadOnlyQuaternion();
|
|
@@ -2182,46 +668,46 @@ export const ReadOnlyQuaternion = {
|
|
|
2182
668
|
reader.skipType(tag & 7);
|
|
2183
669
|
}
|
|
2184
670
|
return message;
|
|
2185
|
-
}
|
|
671
|
+
}
|
|
2186
672
|
|
|
2187
|
-
fromJSON(object: any): ReadOnlyQuaternion {
|
|
673
|
+
export function fromJSON(object: any): ReadOnlyQuaternion {
|
|
2188
674
|
return {
|
|
2189
675
|
x: isSet(object.x) ? Number(object.x) : 0,
|
|
2190
676
|
y: isSet(object.y) ? Number(object.y) : 0,
|
|
2191
677
|
z: isSet(object.z) ? Number(object.z) : 0,
|
|
2192
678
|
w: isSet(object.w) ? Number(object.w) : 0,
|
|
2193
679
|
};
|
|
2194
|
-
}
|
|
680
|
+
}
|
|
2195
681
|
|
|
2196
|
-
toJSON(message: ReadOnlyQuaternion): unknown {
|
|
682
|
+
export function toJSON(message: ReadOnlyQuaternion): unknown {
|
|
2197
683
|
const obj: any = {};
|
|
2198
684
|
message.x !== undefined && (obj.x = message.x);
|
|
2199
685
|
message.y !== undefined && (obj.y = message.y);
|
|
2200
686
|
message.z !== undefined && (obj.z = message.z);
|
|
2201
687
|
message.w !== undefined && (obj.w = message.w);
|
|
2202
688
|
return obj;
|
|
2203
|
-
}
|
|
689
|
+
}
|
|
2204
690
|
|
|
2205
|
-
create<I extends Exact<DeepPartial<ReadOnlyQuaternion>, I>>(base?: I): ReadOnlyQuaternion {
|
|
691
|
+
export function create<I extends Exact<DeepPartial<ReadOnlyQuaternion>, I>>(base?: I): ReadOnlyQuaternion {
|
|
2206
692
|
return ReadOnlyQuaternion.fromPartial(base ?? {});
|
|
2207
|
-
}
|
|
693
|
+
}
|
|
2208
694
|
|
|
2209
|
-
fromPartial<I extends Exact<DeepPartial<ReadOnlyQuaternion>, I>>(object: I): ReadOnlyQuaternion {
|
|
695
|
+
export function fromPartial<I extends Exact<DeepPartial<ReadOnlyQuaternion>, I>>(object: I): ReadOnlyQuaternion {
|
|
2210
696
|
const message = createBaseReadOnlyQuaternion();
|
|
2211
697
|
message.x = object.x ?? 0;
|
|
2212
698
|
message.y = object.y ?? 0;
|
|
2213
699
|
message.z = object.z ?? 0;
|
|
2214
700
|
message.w = object.w ?? 0;
|
|
2215
701
|
return message;
|
|
2216
|
-
}
|
|
2217
|
-
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
2218
704
|
|
|
2219
705
|
function createBasePositionChangedPayload(): PositionChangedPayload {
|
|
2220
706
|
return { position: undefined, cameraPosition: undefined, playerHeight: 0 };
|
|
2221
707
|
}
|
|
2222
708
|
|
|
2223
|
-
export
|
|
2224
|
-
encode(message: PositionChangedPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
709
|
+
export namespace PositionChangedPayload {
|
|
710
|
+
export function encode(message: PositionChangedPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2225
711
|
if (message.position !== undefined) {
|
|
2226
712
|
ReadOnlyVector3.encode(message.position, writer.uint32(10).fork()).ldelim();
|
|
2227
713
|
}
|
|
@@ -2232,9 +718,9 @@ export const PositionChangedPayload = {
|
|
|
2232
718
|
writer.uint32(29).float(message.playerHeight);
|
|
2233
719
|
}
|
|
2234
720
|
return writer;
|
|
2235
|
-
}
|
|
721
|
+
}
|
|
2236
722
|
|
|
2237
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PositionChangedPayload {
|
|
723
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PositionChangedPayload {
|
|
2238
724
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2239
725
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2240
726
|
const message = createBasePositionChangedPayload();
|
|
@@ -2269,17 +755,17 @@ export const PositionChangedPayload = {
|
|
|
2269
755
|
reader.skipType(tag & 7);
|
|
2270
756
|
}
|
|
2271
757
|
return message;
|
|
2272
|
-
}
|
|
758
|
+
}
|
|
2273
759
|
|
|
2274
|
-
fromJSON(object: any): PositionChangedPayload {
|
|
760
|
+
export function fromJSON(object: any): PositionChangedPayload {
|
|
2275
761
|
return {
|
|
2276
762
|
position: isSet(object.position) ? ReadOnlyVector3.fromJSON(object.position) : undefined,
|
|
2277
763
|
cameraPosition: isSet(object.cameraPosition) ? ReadOnlyVector3.fromJSON(object.cameraPosition) : undefined,
|
|
2278
764
|
playerHeight: isSet(object.playerHeight) ? Number(object.playerHeight) : 0,
|
|
2279
765
|
};
|
|
2280
|
-
}
|
|
766
|
+
}
|
|
2281
767
|
|
|
2282
|
-
toJSON(message: PositionChangedPayload): unknown {
|
|
768
|
+
export function toJSON(message: PositionChangedPayload): unknown {
|
|
2283
769
|
const obj: any = {};
|
|
2284
770
|
message.position !== undefined &&
|
|
2285
771
|
(obj.position = message.position ? ReadOnlyVector3.toJSON(message.position) : undefined);
|
|
@@ -2287,13 +773,15 @@ export const PositionChangedPayload = {
|
|
|
2287
773
|
(obj.cameraPosition = message.cameraPosition ? ReadOnlyVector3.toJSON(message.cameraPosition) : undefined);
|
|
2288
774
|
message.playerHeight !== undefined && (obj.playerHeight = message.playerHeight);
|
|
2289
775
|
return obj;
|
|
2290
|
-
}
|
|
776
|
+
}
|
|
2291
777
|
|
|
2292
|
-
create<I extends Exact<DeepPartial<PositionChangedPayload>, I>>(base?: I): PositionChangedPayload {
|
|
778
|
+
export function create<I extends Exact<DeepPartial<PositionChangedPayload>, I>>(base?: I): PositionChangedPayload {
|
|
2293
779
|
return PositionChangedPayload.fromPartial(base ?? {});
|
|
2294
|
-
}
|
|
780
|
+
}
|
|
2295
781
|
|
|
2296
|
-
fromPartial<I extends Exact<DeepPartial<PositionChangedPayload>, I>>(
|
|
782
|
+
export function fromPartial<I extends Exact<DeepPartial<PositionChangedPayload>, I>>(
|
|
783
|
+
object: I,
|
|
784
|
+
): PositionChangedPayload {
|
|
2297
785
|
const message = createBasePositionChangedPayload();
|
|
2298
786
|
message.position = (object.position !== undefined && object.position !== null)
|
|
2299
787
|
? ReadOnlyVector3.fromPartial(object.position)
|
|
@@ -2303,15 +791,15 @@ export const PositionChangedPayload = {
|
|
|
2303
791
|
: undefined;
|
|
2304
792
|
message.playerHeight = object.playerHeight ?? 0;
|
|
2305
793
|
return message;
|
|
2306
|
-
}
|
|
2307
|
-
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
2308
796
|
|
|
2309
797
|
function createBaseRotationChangedPayload(): RotationChangedPayload {
|
|
2310
798
|
return { rotation: undefined, quaternion: undefined };
|
|
2311
799
|
}
|
|
2312
800
|
|
|
2313
|
-
export
|
|
2314
|
-
encode(message: RotationChangedPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
801
|
+
export namespace RotationChangedPayload {
|
|
802
|
+
export function encode(message: RotationChangedPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2315
803
|
if (message.rotation !== undefined) {
|
|
2316
804
|
ReadOnlyVector3.encode(message.rotation, writer.uint32(10).fork()).ldelim();
|
|
2317
805
|
}
|
|
@@ -2319,9 +807,9 @@ export const RotationChangedPayload = {
|
|
|
2319
807
|
ReadOnlyQuaternion.encode(message.quaternion, writer.uint32(18).fork()).ldelim();
|
|
2320
808
|
}
|
|
2321
809
|
return writer;
|
|
2322
|
-
}
|
|
810
|
+
}
|
|
2323
811
|
|
|
2324
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): RotationChangedPayload {
|
|
812
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RotationChangedPayload {
|
|
2325
813
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2326
814
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2327
815
|
const message = createBaseRotationChangedPayload();
|
|
@@ -2349,29 +837,31 @@ export const RotationChangedPayload = {
|
|
|
2349
837
|
reader.skipType(tag & 7);
|
|
2350
838
|
}
|
|
2351
839
|
return message;
|
|
2352
|
-
}
|
|
840
|
+
}
|
|
2353
841
|
|
|
2354
|
-
fromJSON(object: any): RotationChangedPayload {
|
|
842
|
+
export function fromJSON(object: any): RotationChangedPayload {
|
|
2355
843
|
return {
|
|
2356
844
|
rotation: isSet(object.rotation) ? ReadOnlyVector3.fromJSON(object.rotation) : undefined,
|
|
2357
845
|
quaternion: isSet(object.quaternion) ? ReadOnlyQuaternion.fromJSON(object.quaternion) : undefined,
|
|
2358
846
|
};
|
|
2359
|
-
}
|
|
847
|
+
}
|
|
2360
848
|
|
|
2361
|
-
toJSON(message: RotationChangedPayload): unknown {
|
|
849
|
+
export function toJSON(message: RotationChangedPayload): unknown {
|
|
2362
850
|
const obj: any = {};
|
|
2363
851
|
message.rotation !== undefined &&
|
|
2364
852
|
(obj.rotation = message.rotation ? ReadOnlyVector3.toJSON(message.rotation) : undefined);
|
|
2365
853
|
message.quaternion !== undefined &&
|
|
2366
854
|
(obj.quaternion = message.quaternion ? ReadOnlyQuaternion.toJSON(message.quaternion) : undefined);
|
|
2367
855
|
return obj;
|
|
2368
|
-
}
|
|
856
|
+
}
|
|
2369
857
|
|
|
2370
|
-
create<I extends Exact<DeepPartial<RotationChangedPayload>, I>>(base?: I): RotationChangedPayload {
|
|
858
|
+
export function create<I extends Exact<DeepPartial<RotationChangedPayload>, I>>(base?: I): RotationChangedPayload {
|
|
2371
859
|
return RotationChangedPayload.fromPartial(base ?? {});
|
|
2372
|
-
}
|
|
860
|
+
}
|
|
2373
861
|
|
|
2374
|
-
fromPartial<I extends Exact<DeepPartial<RotationChangedPayload>, I>>(
|
|
862
|
+
export function fromPartial<I extends Exact<DeepPartial<RotationChangedPayload>, I>>(
|
|
863
|
+
object: I,
|
|
864
|
+
): RotationChangedPayload {
|
|
2375
865
|
const message = createBaseRotationChangedPayload();
|
|
2376
866
|
message.rotation = (object.rotation !== undefined && object.rotation !== null)
|
|
2377
867
|
? ReadOnlyVector3.fromPartial(object.rotation)
|
|
@@ -2380,15 +870,15 @@ export const RotationChangedPayload = {
|
|
|
2380
870
|
? ReadOnlyQuaternion.fromPartial(object.quaternion)
|
|
2381
871
|
: undefined;
|
|
2382
872
|
return message;
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
2385
875
|
|
|
2386
876
|
function createBaseEventData(): EventData {
|
|
2387
877
|
return { type: 0, generic: undefined, positionChanged: undefined, rotationChanged: undefined };
|
|
2388
878
|
}
|
|
2389
879
|
|
|
2390
|
-
export
|
|
2391
|
-
encode(message: EventData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
880
|
+
export namespace EventData {
|
|
881
|
+
export function encode(message: EventData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2392
882
|
if (message.type !== 0) {
|
|
2393
883
|
writer.uint32(8).int32(message.type);
|
|
2394
884
|
}
|
|
@@ -2402,9 +892,9 @@ export const EventData = {
|
|
|
2402
892
|
RotationChangedPayload.encode(message.rotationChanged, writer.uint32(34).fork()).ldelim();
|
|
2403
893
|
}
|
|
2404
894
|
return writer;
|
|
2405
|
-
}
|
|
895
|
+
}
|
|
2406
896
|
|
|
2407
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventData {
|
|
897
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): EventData {
|
|
2408
898
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2409
899
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2410
900
|
const message = createBaseEventData();
|
|
@@ -2446,9 +936,9 @@ export const EventData = {
|
|
|
2446
936
|
reader.skipType(tag & 7);
|
|
2447
937
|
}
|
|
2448
938
|
return message;
|
|
2449
|
-
}
|
|
939
|
+
}
|
|
2450
940
|
|
|
2451
|
-
fromJSON(object: any): EventData {
|
|
941
|
+
export function fromJSON(object: any): EventData {
|
|
2452
942
|
return {
|
|
2453
943
|
type: isSet(object.type) ? eventDataTypeFromJSON(object.type) : 0,
|
|
2454
944
|
generic: isSet(object.generic) ? GenericPayload.fromJSON(object.generic) : undefined,
|
|
@@ -2459,27 +949,29 @@ export const EventData = {
|
|
|
2459
949
|
? RotationChangedPayload.fromJSON(object.rotationChanged)
|
|
2460
950
|
: undefined,
|
|
2461
951
|
};
|
|
2462
|
-
}
|
|
952
|
+
}
|
|
2463
953
|
|
|
2464
|
-
toJSON(message: EventData): unknown {
|
|
954
|
+
export function toJSON(message: EventData): unknown {
|
|
2465
955
|
const obj: any = {};
|
|
2466
956
|
message.type !== undefined && (obj.type = eventDataTypeToJSON(message.type));
|
|
2467
957
|
message.generic !== undefined &&
|
|
2468
958
|
(obj.generic = message.generic ? GenericPayload.toJSON(message.generic) : undefined);
|
|
2469
|
-
message.positionChanged !== undefined &&
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
959
|
+
message.positionChanged !== undefined &&
|
|
960
|
+
(obj.positionChanged = message.positionChanged
|
|
961
|
+
? PositionChangedPayload.toJSON(message.positionChanged)
|
|
962
|
+
: undefined);
|
|
963
|
+
message.rotationChanged !== undefined &&
|
|
964
|
+
(obj.rotationChanged = message.rotationChanged
|
|
965
|
+
? RotationChangedPayload.toJSON(message.rotationChanged)
|
|
966
|
+
: undefined);
|
|
2475
967
|
return obj;
|
|
2476
|
-
}
|
|
968
|
+
}
|
|
2477
969
|
|
|
2478
|
-
create<I extends Exact<DeepPartial<EventData>, I>>(base?: I): EventData {
|
|
970
|
+
export function create<I extends Exact<DeepPartial<EventData>, I>>(base?: I): EventData {
|
|
2479
971
|
return EventData.fromPartial(base ?? {});
|
|
2480
|
-
}
|
|
972
|
+
}
|
|
2481
973
|
|
|
2482
|
-
fromPartial<I extends Exact<DeepPartial<EventData>, I>>(object: I): EventData {
|
|
974
|
+
export function fromPartial<I extends Exact<DeepPartial<EventData>, I>>(object: I): EventData {
|
|
2483
975
|
const message = createBaseEventData();
|
|
2484
976
|
message.type = object.type ?? 0;
|
|
2485
977
|
message.generic = (object.generic !== undefined && object.generic !== null)
|
|
@@ -2492,22 +984,22 @@ export const EventData = {
|
|
|
2492
984
|
? RotationChangedPayload.fromPartial(object.rotationChanged)
|
|
2493
985
|
: undefined;
|
|
2494
986
|
return message;
|
|
2495
|
-
}
|
|
2496
|
-
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
2497
989
|
|
|
2498
990
|
function createBaseCrdtSendToRendererRequest(): CrdtSendToRendererRequest {
|
|
2499
991
|
return { data: new Uint8Array() };
|
|
2500
992
|
}
|
|
2501
993
|
|
|
2502
|
-
export
|
|
2503
|
-
encode(message: CrdtSendToRendererRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
994
|
+
export namespace CrdtSendToRendererRequest {
|
|
995
|
+
export function encode(message: CrdtSendToRendererRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2504
996
|
if (message.data.length !== 0) {
|
|
2505
997
|
writer.uint32(10).bytes(message.data);
|
|
2506
998
|
}
|
|
2507
999
|
return writer;
|
|
2508
|
-
}
|
|
1000
|
+
}
|
|
2509
1001
|
|
|
2510
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtSendToRendererRequest {
|
|
1002
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtSendToRendererRequest {
|
|
2511
1003
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2512
1004
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2513
1005
|
const message = createBaseCrdtSendToRendererRequest();
|
|
@@ -2528,43 +1020,47 @@ export const CrdtSendToRendererRequest = {
|
|
|
2528
1020
|
reader.skipType(tag & 7);
|
|
2529
1021
|
}
|
|
2530
1022
|
return message;
|
|
2531
|
-
}
|
|
1023
|
+
}
|
|
2532
1024
|
|
|
2533
|
-
fromJSON(object: any): CrdtSendToRendererRequest {
|
|
1025
|
+
export function fromJSON(object: any): CrdtSendToRendererRequest {
|
|
2534
1026
|
return { data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array() };
|
|
2535
|
-
}
|
|
1027
|
+
}
|
|
2536
1028
|
|
|
2537
|
-
toJSON(message: CrdtSendToRendererRequest): unknown {
|
|
1029
|
+
export function toJSON(message: CrdtSendToRendererRequest): unknown {
|
|
2538
1030
|
const obj: any = {};
|
|
2539
1031
|
message.data !== undefined &&
|
|
2540
1032
|
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
2541
1033
|
return obj;
|
|
2542
|
-
}
|
|
1034
|
+
}
|
|
2543
1035
|
|
|
2544
|
-
create<I extends Exact<DeepPartial<CrdtSendToRendererRequest>, I>>(
|
|
1036
|
+
export function create<I extends Exact<DeepPartial<CrdtSendToRendererRequest>, I>>(
|
|
1037
|
+
base?: I,
|
|
1038
|
+
): CrdtSendToRendererRequest {
|
|
2545
1039
|
return CrdtSendToRendererRequest.fromPartial(base ?? {});
|
|
2546
|
-
}
|
|
1040
|
+
}
|
|
2547
1041
|
|
|
2548
|
-
fromPartial<I extends Exact<DeepPartial<CrdtSendToRendererRequest>, I>>(
|
|
1042
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtSendToRendererRequest>, I>>(
|
|
1043
|
+
object: I,
|
|
1044
|
+
): CrdtSendToRendererRequest {
|
|
2549
1045
|
const message = createBaseCrdtSendToRendererRequest();
|
|
2550
1046
|
message.data = object.data ?? new Uint8Array();
|
|
2551
1047
|
return message;
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
2554
1050
|
|
|
2555
1051
|
function createBaseCrdtSendToResponse(): CrdtSendToResponse {
|
|
2556
1052
|
return { data: [] };
|
|
2557
1053
|
}
|
|
2558
1054
|
|
|
2559
|
-
export
|
|
2560
|
-
encode(message: CrdtSendToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1055
|
+
export namespace CrdtSendToResponse {
|
|
1056
|
+
export function encode(message: CrdtSendToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2561
1057
|
for (const v of message.data) {
|
|
2562
1058
|
writer.uint32(10).bytes(v!);
|
|
2563
1059
|
}
|
|
2564
1060
|
return writer;
|
|
2565
|
-
}
|
|
1061
|
+
}
|
|
2566
1062
|
|
|
2567
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtSendToResponse {
|
|
1063
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtSendToResponse {
|
|
2568
1064
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2569
1065
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2570
1066
|
const message = createBaseCrdtSendToResponse();
|
|
@@ -2585,13 +1081,13 @@ export const CrdtSendToResponse = {
|
|
|
2585
1081
|
reader.skipType(tag & 7);
|
|
2586
1082
|
}
|
|
2587
1083
|
return message;
|
|
2588
|
-
}
|
|
1084
|
+
}
|
|
2589
1085
|
|
|
2590
|
-
fromJSON(object: any): CrdtSendToResponse {
|
|
1086
|
+
export function fromJSON(object: any): CrdtSendToResponse {
|
|
2591
1087
|
return { data: Array.isArray(object?.data) ? object.data.map((e: any) => bytesFromBase64(e)) : [] };
|
|
2592
|
-
}
|
|
1088
|
+
}
|
|
2593
1089
|
|
|
2594
|
-
toJSON(message: CrdtSendToResponse): unknown {
|
|
1090
|
+
export function toJSON(message: CrdtSendToResponse): unknown {
|
|
2595
1091
|
const obj: any = {};
|
|
2596
1092
|
if (message.data) {
|
|
2597
1093
|
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
@@ -2599,29 +1095,29 @@ export const CrdtSendToResponse = {
|
|
|
2599
1095
|
obj.data = [];
|
|
2600
1096
|
}
|
|
2601
1097
|
return obj;
|
|
2602
|
-
}
|
|
1098
|
+
}
|
|
2603
1099
|
|
|
2604
|
-
create<I extends Exact<DeepPartial<CrdtSendToResponse>, I>>(base?: I): CrdtSendToResponse {
|
|
1100
|
+
export function create<I extends Exact<DeepPartial<CrdtSendToResponse>, I>>(base?: I): CrdtSendToResponse {
|
|
2605
1101
|
return CrdtSendToResponse.fromPartial(base ?? {});
|
|
2606
|
-
}
|
|
1102
|
+
}
|
|
2607
1103
|
|
|
2608
|
-
fromPartial<I extends Exact<DeepPartial<CrdtSendToResponse>, I>>(object: I): CrdtSendToResponse {
|
|
1104
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtSendToResponse>, I>>(object: I): CrdtSendToResponse {
|
|
2609
1105
|
const message = createBaseCrdtSendToResponse();
|
|
2610
1106
|
message.data = object.data?.map((e) => e) || [];
|
|
2611
1107
|
return message;
|
|
2612
|
-
}
|
|
2613
|
-
}
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
2614
1110
|
|
|
2615
1111
|
function createBaseCrdtGetStateRequest(): CrdtGetStateRequest {
|
|
2616
1112
|
return {};
|
|
2617
1113
|
}
|
|
2618
1114
|
|
|
2619
|
-
export
|
|
2620
|
-
encode(_: CrdtGetStateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1115
|
+
export namespace CrdtGetStateRequest {
|
|
1116
|
+
export function encode(_: CrdtGetStateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2621
1117
|
return writer;
|
|
2622
|
-
}
|
|
1118
|
+
}
|
|
2623
1119
|
|
|
2624
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtGetStateRequest {
|
|
1120
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtGetStateRequest {
|
|
2625
1121
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2626
1122
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2627
1123
|
const message = createBaseCrdtGetStateRequest();
|
|
@@ -2635,33 +1131,33 @@ export const CrdtGetStateRequest = {
|
|
|
2635
1131
|
reader.skipType(tag & 7);
|
|
2636
1132
|
}
|
|
2637
1133
|
return message;
|
|
2638
|
-
}
|
|
1134
|
+
}
|
|
2639
1135
|
|
|
2640
|
-
fromJSON(_: any): CrdtGetStateRequest {
|
|
1136
|
+
export function fromJSON(_: any): CrdtGetStateRequest {
|
|
2641
1137
|
return {};
|
|
2642
|
-
}
|
|
1138
|
+
}
|
|
2643
1139
|
|
|
2644
|
-
toJSON(_: CrdtGetStateRequest): unknown {
|
|
1140
|
+
export function toJSON(_: CrdtGetStateRequest): unknown {
|
|
2645
1141
|
const obj: any = {};
|
|
2646
1142
|
return obj;
|
|
2647
|
-
}
|
|
1143
|
+
}
|
|
2648
1144
|
|
|
2649
|
-
create<I extends Exact<DeepPartial<CrdtGetStateRequest>, I>>(base?: I): CrdtGetStateRequest {
|
|
1145
|
+
export function create<I extends Exact<DeepPartial<CrdtGetStateRequest>, I>>(base?: I): CrdtGetStateRequest {
|
|
2650
1146
|
return CrdtGetStateRequest.fromPartial(base ?? {});
|
|
2651
|
-
}
|
|
1147
|
+
}
|
|
2652
1148
|
|
|
2653
|
-
fromPartial<I extends Exact<DeepPartial<CrdtGetStateRequest>, I>>(_: I): CrdtGetStateRequest {
|
|
1149
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtGetStateRequest>, I>>(_: I): CrdtGetStateRequest {
|
|
2654
1150
|
const message = createBaseCrdtGetStateRequest();
|
|
2655
1151
|
return message;
|
|
2656
|
-
}
|
|
2657
|
-
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
2658
1154
|
|
|
2659
1155
|
function createBaseCrdtGetStateResponse(): CrdtGetStateResponse {
|
|
2660
1156
|
return { hasEntities: false, data: [] };
|
|
2661
1157
|
}
|
|
2662
1158
|
|
|
2663
|
-
export
|
|
2664
|
-
encode(message: CrdtGetStateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1159
|
+
export namespace CrdtGetStateResponse {
|
|
1160
|
+
export function encode(message: CrdtGetStateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2665
1161
|
if (message.hasEntities === true) {
|
|
2666
1162
|
writer.uint32(8).bool(message.hasEntities);
|
|
2667
1163
|
}
|
|
@@ -2669,9 +1165,9 @@ export const CrdtGetStateResponse = {
|
|
|
2669
1165
|
writer.uint32(18).bytes(v!);
|
|
2670
1166
|
}
|
|
2671
1167
|
return writer;
|
|
2672
|
-
}
|
|
1168
|
+
}
|
|
2673
1169
|
|
|
2674
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtGetStateResponse {
|
|
1170
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtGetStateResponse {
|
|
2675
1171
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2676
1172
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2677
1173
|
const message = createBaseCrdtGetStateResponse();
|
|
@@ -2699,16 +1195,16 @@ export const CrdtGetStateResponse = {
|
|
|
2699
1195
|
reader.skipType(tag & 7);
|
|
2700
1196
|
}
|
|
2701
1197
|
return message;
|
|
2702
|
-
}
|
|
1198
|
+
}
|
|
2703
1199
|
|
|
2704
|
-
fromJSON(object: any): CrdtGetStateResponse {
|
|
1200
|
+
export function fromJSON(object: any): CrdtGetStateResponse {
|
|
2705
1201
|
return {
|
|
2706
1202
|
hasEntities: isSet(object.hasEntities) ? Boolean(object.hasEntities) : false,
|
|
2707
1203
|
data: Array.isArray(object?.data) ? object.data.map((e: any) => bytesFromBase64(e)) : [],
|
|
2708
1204
|
};
|
|
2709
|
-
}
|
|
1205
|
+
}
|
|
2710
1206
|
|
|
2711
|
-
toJSON(message: CrdtGetStateResponse): unknown {
|
|
1207
|
+
export function toJSON(message: CrdtGetStateResponse): unknown {
|
|
2712
1208
|
const obj: any = {};
|
|
2713
1209
|
message.hasEntities !== undefined && (obj.hasEntities = message.hasEntities);
|
|
2714
1210
|
if (message.data) {
|
|
@@ -2717,30 +1213,30 @@ export const CrdtGetStateResponse = {
|
|
|
2717
1213
|
obj.data = [];
|
|
2718
1214
|
}
|
|
2719
1215
|
return obj;
|
|
2720
|
-
}
|
|
1216
|
+
}
|
|
2721
1217
|
|
|
2722
|
-
create<I extends Exact<DeepPartial<CrdtGetStateResponse>, I>>(base?: I): CrdtGetStateResponse {
|
|
1218
|
+
export function create<I extends Exact<DeepPartial<CrdtGetStateResponse>, I>>(base?: I): CrdtGetStateResponse {
|
|
2723
1219
|
return CrdtGetStateResponse.fromPartial(base ?? {});
|
|
2724
|
-
}
|
|
1220
|
+
}
|
|
2725
1221
|
|
|
2726
|
-
fromPartial<I extends Exact<DeepPartial<CrdtGetStateResponse>, I>>(object: I): CrdtGetStateResponse {
|
|
1222
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtGetStateResponse>, I>>(object: I): CrdtGetStateResponse {
|
|
2727
1223
|
const message = createBaseCrdtGetStateResponse();
|
|
2728
1224
|
message.hasEntities = object.hasEntities ?? false;
|
|
2729
1225
|
message.data = object.data?.map((e) => e) || [];
|
|
2730
1226
|
return message;
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
2733
1229
|
|
|
2734
1230
|
function createBaseCrdtMessageFromRendererRequest(): CrdtMessageFromRendererRequest {
|
|
2735
1231
|
return {};
|
|
2736
1232
|
}
|
|
2737
1233
|
|
|
2738
|
-
export
|
|
2739
|
-
encode(_: CrdtMessageFromRendererRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1234
|
+
export namespace CrdtMessageFromRendererRequest {
|
|
1235
|
+
export function encode(_: CrdtMessageFromRendererRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2740
1236
|
return writer;
|
|
2741
|
-
}
|
|
1237
|
+
}
|
|
2742
1238
|
|
|
2743
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtMessageFromRendererRequest {
|
|
1239
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtMessageFromRendererRequest {
|
|
2744
1240
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2745
1241
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2746
1242
|
const message = createBaseCrdtMessageFromRendererRequest();
|
|
@@ -2754,40 +1250,47 @@ export const CrdtMessageFromRendererRequest = {
|
|
|
2754
1250
|
reader.skipType(tag & 7);
|
|
2755
1251
|
}
|
|
2756
1252
|
return message;
|
|
2757
|
-
}
|
|
1253
|
+
}
|
|
2758
1254
|
|
|
2759
|
-
fromJSON(_: any): CrdtMessageFromRendererRequest {
|
|
1255
|
+
export function fromJSON(_: any): CrdtMessageFromRendererRequest {
|
|
2760
1256
|
return {};
|
|
2761
|
-
}
|
|
1257
|
+
}
|
|
2762
1258
|
|
|
2763
|
-
toJSON(_: CrdtMessageFromRendererRequest): unknown {
|
|
1259
|
+
export function toJSON(_: CrdtMessageFromRendererRequest): unknown {
|
|
2764
1260
|
const obj: any = {};
|
|
2765
1261
|
return obj;
|
|
2766
|
-
}
|
|
1262
|
+
}
|
|
2767
1263
|
|
|
2768
|
-
create<I extends Exact<DeepPartial<CrdtMessageFromRendererRequest>, I>>(
|
|
1264
|
+
export function create<I extends Exact<DeepPartial<CrdtMessageFromRendererRequest>, I>>(
|
|
1265
|
+
base?: I,
|
|
1266
|
+
): CrdtMessageFromRendererRequest {
|
|
2769
1267
|
return CrdtMessageFromRendererRequest.fromPartial(base ?? {});
|
|
2770
|
-
}
|
|
1268
|
+
}
|
|
2771
1269
|
|
|
2772
|
-
fromPartial<I extends Exact<DeepPartial<CrdtMessageFromRendererRequest>, I>>(
|
|
1270
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtMessageFromRendererRequest>, I>>(
|
|
1271
|
+
_: I,
|
|
1272
|
+
): CrdtMessageFromRendererRequest {
|
|
2773
1273
|
const message = createBaseCrdtMessageFromRendererRequest();
|
|
2774
1274
|
return message;
|
|
2775
|
-
}
|
|
2776
|
-
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
2777
1277
|
|
|
2778
1278
|
function createBaseCrdtMessageFromRendererResponse(): CrdtMessageFromRendererResponse {
|
|
2779
1279
|
return { data: [] };
|
|
2780
1280
|
}
|
|
2781
1281
|
|
|
2782
|
-
export
|
|
2783
|
-
|
|
1282
|
+
export namespace CrdtMessageFromRendererResponse {
|
|
1283
|
+
export function encode(
|
|
1284
|
+
message: CrdtMessageFromRendererResponse,
|
|
1285
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
1286
|
+
): _m0.Writer {
|
|
2784
1287
|
for (const v of message.data) {
|
|
2785
1288
|
writer.uint32(10).bytes(v!);
|
|
2786
1289
|
}
|
|
2787
1290
|
return writer;
|
|
2788
|
-
}
|
|
1291
|
+
}
|
|
2789
1292
|
|
|
2790
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CrdtMessageFromRendererResponse {
|
|
1293
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CrdtMessageFromRendererResponse {
|
|
2791
1294
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2792
1295
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2793
1296
|
const message = createBaseCrdtMessageFromRendererResponse();
|
|
@@ -2808,13 +1311,13 @@ export const CrdtMessageFromRendererResponse = {
|
|
|
2808
1311
|
reader.skipType(tag & 7);
|
|
2809
1312
|
}
|
|
2810
1313
|
return message;
|
|
2811
|
-
}
|
|
1314
|
+
}
|
|
2812
1315
|
|
|
2813
|
-
fromJSON(object: any): CrdtMessageFromRendererResponse {
|
|
1316
|
+
export function fromJSON(object: any): CrdtMessageFromRendererResponse {
|
|
2814
1317
|
return { data: Array.isArray(object?.data) ? object.data.map((e: any) => bytesFromBase64(e)) : [] };
|
|
2815
|
-
}
|
|
1318
|
+
}
|
|
2816
1319
|
|
|
2817
|
-
toJSON(message: CrdtMessageFromRendererResponse): unknown {
|
|
1320
|
+
export function toJSON(message: CrdtMessageFromRendererResponse): unknown {
|
|
2818
1321
|
const obj: any = {};
|
|
2819
1322
|
if (message.data) {
|
|
2820
1323
|
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
@@ -2822,20 +1325,22 @@ export const CrdtMessageFromRendererResponse = {
|
|
|
2822
1325
|
obj.data = [];
|
|
2823
1326
|
}
|
|
2824
1327
|
return obj;
|
|
2825
|
-
}
|
|
1328
|
+
}
|
|
2826
1329
|
|
|
2827
|
-
create<I extends Exact<DeepPartial<CrdtMessageFromRendererResponse>, I>>(
|
|
1330
|
+
export function create<I extends Exact<DeepPartial<CrdtMessageFromRendererResponse>, I>>(
|
|
1331
|
+
base?: I,
|
|
1332
|
+
): CrdtMessageFromRendererResponse {
|
|
2828
1333
|
return CrdtMessageFromRendererResponse.fromPartial(base ?? {});
|
|
2829
|
-
}
|
|
1334
|
+
}
|
|
2830
1335
|
|
|
2831
|
-
fromPartial<I extends Exact<DeepPartial<CrdtMessageFromRendererResponse>, I>>(
|
|
1336
|
+
export function fromPartial<I extends Exact<DeepPartial<CrdtMessageFromRendererResponse>, I>>(
|
|
2832
1337
|
object: I,
|
|
2833
1338
|
): CrdtMessageFromRendererResponse {
|
|
2834
1339
|
const message = createBaseCrdtMessageFromRendererResponse();
|
|
2835
1340
|
message.data = object.data?.map((e) => e) || [];
|
|
2836
1341
|
return message;
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
2839
1344
|
|
|
2840
1345
|
/** support for legacy SDK events. */
|
|
2841
1346
|
export type EngineApiServiceDefinition = typeof EngineApiServiceDefinition;
|