@dcl/protocol 1.0.0-2731649607.commit-890a990 → 1.0.0-27358757907.commit-3c70e8a

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.
Files changed (528) hide show
  1. package/README.md +266 -0
  2. package/out-js/about.gen.d.ts +1 -0
  3. package/out-js/about.gen.js +6 -0
  4. package/out-js/about.gen.js.map +1 -0
  5. package/out-js/comms.gen.d.ts +1 -0
  6. package/out-js/comms.gen.js +6 -0
  7. package/out-js/comms.gen.js.map +1 -0
  8. package/out-js/decentraland/common/border_rect.gen.d.ts +49 -0
  9. package/out-js/decentraland/common/border_rect.gen.js +201 -0
  10. package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
  11. package/out-js/decentraland/common/colors.gen.d.ts +59 -0
  12. package/out-js/decentraland/common/colors.gen.js +260 -0
  13. package/out-js/decentraland/common/colors.gen.js.map +1 -0
  14. package/out-js/decentraland/common/content_mapping.gen.d.ts +31 -0
  15. package/out-js/decentraland/common/content_mapping.gen.js +80 -0
  16. package/out-js/decentraland/common/content_mapping.gen.js.map +1 -0
  17. package/out-js/decentraland/common/sdk/user_data.gen.d.ts +63 -0
  18. package/out-js/decentraland/common/sdk/user_data.gen.js +330 -0
  19. package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -0
  20. package/out-js/decentraland/common/texture.gen.d.ts +105 -0
  21. package/out-js/decentraland/common/texture.gen.js +475 -0
  22. package/out-js/decentraland/common/texture.gen.js.map +1 -0
  23. package/out-js/decentraland/common/vectors.gen.d.ts +71 -0
  24. package/out-js/decentraland/common/vectors.gen.js +338 -0
  25. package/out-js/decentraland/common/vectors.gen.js.map +1 -0
  26. package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +206 -0
  27. package/out-js/decentraland/kernel/apis/comms_api.gen.js +792 -0
  28. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
  29. package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +105 -0
  30. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +400 -0
  31. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -0
  32. package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +58 -0
  33. package/out-js/decentraland/kernel/apis/dev_tools.gen.js +142 -0
  34. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -0
  35. package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +338 -0
  36. package/out-js/decentraland/kernel/apis/engine_api.gen.js +1452 -0
  37. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -0
  38. package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +283 -0
  39. package/out-js/decentraland/kernel/apis/environment_api.gen.js +1122 -0
  40. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -0
  41. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +225 -0
  42. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +878 -0
  43. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -0
  44. package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +146 -0
  45. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +557 -0
  46. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -0
  47. package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +100 -0
  48. package/out-js/decentraland/kernel/apis/permissions.gen.js +360 -0
  49. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -0
  50. package/out-js/decentraland/kernel/apis/players.gen.d.ts +127 -0
  51. package/out-js/decentraland/kernel/apis/players.gen.js +372 -0
  52. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -0
  53. package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +178 -0
  54. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +607 -0
  55. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -0
  56. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +303 -0
  57. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1056 -0
  58. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -0
  59. package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +217 -0
  60. package/out-js/decentraland/kernel/apis/runtime.gen.js +801 -0
  61. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -0
  62. package/out-js/decentraland/kernel/apis/scene.gen.d.ts +59 -0
  63. package/out-js/decentraland/kernel/apis/scene.gen.js +171 -0
  64. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -0
  65. package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +139 -0
  66. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +615 -0
  67. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -0
  68. package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +72 -0
  69. package/out-js/decentraland/kernel/apis/social_controller.gen.js +207 -0
  70. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -0
  71. package/out-js/decentraland/kernel/apis/testing.gen.d.ts +249 -0
  72. package/out-js/decentraland/kernel/apis/testing.gen.js +1073 -0
  73. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
  74. package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +56 -0
  75. package/out-js/decentraland/kernel/apis/user_action_module.gen.js +128 -0
  76. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -0
  77. package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +86 -0
  78. package/out-js/decentraland/kernel/apis/user_identity.gen.js +236 -0
  79. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -0
  80. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +334 -0
  81. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +2093 -0
  82. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -0
  83. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +183 -0
  84. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +906 -0
  85. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -0
  86. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +224 -0
  87. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1204 -0
  88. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -0
  89. package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
  90. package/out-js/decentraland/quests/definitions.gen.js +2728 -0
  91. package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
  92. package/out-js/decentraland/realm/about.gen.d.ts +229 -0
  93. package/out-js/decentraland/realm/about.gen.js +1185 -0
  94. package/out-js/decentraland/realm/about.gen.js.map +1 -0
  95. package/out-js/decentraland/sdk/components/animator.gen.d.ts +62 -0
  96. package/out-js/decentraland/sdk/components/animator.gen.js +192 -0
  97. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
  98. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +61 -0
  99. package/out-js/decentraland/sdk/components/audio_source.gen.js +151 -0
  100. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
  101. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +50 -0
  102. package/out-js/decentraland/sdk/components/audio_stream.gen.js +138 -0
  103. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
  104. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +76 -0
  105. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +262 -0
  106. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
  107. package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
  108. package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
  109. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
  110. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +37 -0
  111. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +95 -0
  112. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
  113. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
  114. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
  115. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
  116. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +60 -0
  117. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +153 -0
  118. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
  119. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +82 -0
  120. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +298 -0
  121. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
  122. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +54 -0
  123. package/out-js/decentraland/sdk/components/billboard.gen.js +128 -0
  124. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
  125. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +36 -0
  126. package/out-js/decentraland/sdk/components/camera_mode.gen.js +70 -0
  127. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
  128. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +48 -0
  129. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +85 -0
  130. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
  131. package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +10 -0
  132. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +46 -0
  133. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
  134. package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
  135. package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
  136. package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
  137. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +41 -0
  138. package/out-js/decentraland/sdk/components/common/input_action.gen.js +209 -0
  139. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
  140. package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
  141. package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
  142. package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
  143. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
  144. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
  145. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
  146. package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
  147. package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
  148. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
  149. package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +41 -0
  150. package/out-js/decentraland/sdk/components/engine_info.gen.js +95 -0
  151. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
  152. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
  153. package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
  154. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
  155. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
  156. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
  157. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
  158. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
  159. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +164 -0
  160. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
  161. package/out-js/decentraland/sdk/components/material.gen.d.ts +108 -0
  162. package/out-js/decentraland/sdk/components/material.gen.js +536 -0
  163. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
  164. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +130 -0
  165. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +471 -0
  166. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
  167. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
  168. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
  169. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
  170. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
  171. package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
  172. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
  173. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  174. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  175. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  176. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +110 -0
  177. package/out-js/decentraland/sdk/components/pointer_events.gen.js +306 -0
  178. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
  179. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
  180. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
  181. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
  182. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
  183. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
  184. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
  185. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
  186. package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
  187. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
  188. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
  189. package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
  190. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
  191. package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
  192. package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
  193. package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
  194. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +81 -0
  195. package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
  196. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
  197. package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
  198. package/out-js/decentraland/sdk/components/tween.gen.js +1213 -0
  199. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
  200. package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
  201. package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
  202. package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
  203. package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
  204. package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
  205. package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
  206. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
  207. package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
  208. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
  209. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +45 -0
  210. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -0
  211. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
  212. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
  213. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
  214. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
  215. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +44 -0
  216. package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
  217. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
  218. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
  219. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
  220. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
  221. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +50 -0
  222. package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -0
  223. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
  224. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +238 -0
  225. package/out-js/decentraland/sdk/components/ui_transform.gen.js +1547 -0
  226. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
  227. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +51 -0
  228. package/out-js/decentraland/sdk/components/video_player.gen.js +177 -0
  229. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
  230. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
  231. package/out-js/decentraland/sdk/components/visibility_component.gen.js +83 -0
  232. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
  233. package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
  234. package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
  235. package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
  236. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
  237. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
  238. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
  239. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
  240. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
  241. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
  242. package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
  243. package/out-js/decentraland/social_service/errors.gen.js +405 -0
  244. package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
  245. package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
  246. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2517 -0
  247. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
  248. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1827 -0
  249. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9308 -0
  250. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
  251. package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
  252. package/out-js/google/protobuf/descriptor.gen.js +3173 -0
  253. package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
  254. package/out-js/google/protobuf/empty.gen.d.ts +38 -0
  255. package/out-js/google/protobuf/empty.gen.js +54 -0
  256. package/out-js/google/protobuf/empty.gen.js.map +1 -0
  257. package/out-js/quests.gen.d.ts +1 -0
  258. package/out-js/quests.gen.js +6 -0
  259. package/out-js/quests.gen.js.map +1 -0
  260. package/out-js/sdk-apis.gen.d.ts +1 -0
  261. package/out-js/sdk-apis.gen.js +6 -0
  262. package/out-js/sdk-apis.gen.js.map +1 -0
  263. package/out-js/sdk-components.gen.d.ts +1 -0
  264. package/out-js/sdk-components.gen.js +6 -0
  265. package/out-js/sdk-components.gen.js.map +1 -0
  266. package/out-js/sdk-development.gen.d.ts +1 -0
  267. package/out-js/sdk-development.gen.js +6 -0
  268. package/out-js/sdk-development.gen.js.map +1 -0
  269. package/out-js/social.gen.d.ts +1 -0
  270. package/out-js/social.gen.js +6 -0
  271. package/out-js/social.gen.js.map +1 -0
  272. package/out-ts/about.gen.ts +3 -0
  273. package/out-ts/comms.gen.ts +3 -0
  274. package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
  275. package/out-ts/decentraland/common/colors.gen.ts +293 -0
  276. package/out-ts/decentraland/common/content_mapping.gen.ts +93 -0
  277. package/out-ts/decentraland/common/sdk/user_data.gen.ts +370 -0
  278. package/out-ts/decentraland/common/texture.gen.ts +539 -0
  279. package/out-ts/decentraland/common/vectors.gen.ts +377 -0
  280. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
  281. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +434 -0
  282. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +161 -0
  283. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +1587 -0
  284. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +1264 -0
  285. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +982 -0
  286. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +608 -0
  287. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +397 -0
  288. package/out-ts/decentraland/kernel/apis/players.gen.ts +415 -0
  289. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +668 -0
  290. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1150 -0
  291. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +911 -0
  292. package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
  293. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +691 -0
  294. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +230 -0
  295. package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
  296. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +146 -0
  297. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +264 -0
  298. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2389 -0
  299. package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +1029 -0
  300. package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1338 -0
  301. package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
  302. package/out-ts/decentraland/realm/about.gen.ts +1415 -0
  303. package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
  304. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
  305. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +182 -0
  306. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
  307. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
  308. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +115 -0
  309. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
  310. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +188 -0
  311. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +383 -0
  312. package/out-ts/decentraland/sdk/components/billboard.gen.ts +148 -0
  313. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +86 -0
  314. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +115 -0
  315. package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
  316. package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
  317. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +206 -0
  318. package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
  319. package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
  320. package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
  321. package/out-ts/decentraland/sdk/components/engine_info.gen.ts +119 -0
  322. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
  323. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
  324. package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
  325. package/out-ts/decentraland/sdk/components/material.gen.ts +655 -0
  326. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +536 -0
  327. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
  328. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
  329. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  330. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +415 -0
  331. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
  332. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
  333. package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
  334. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
  335. package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
  336. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
  337. package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
  338. package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
  339. package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
  340. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
  341. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +231 -0
  342. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
  343. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
  344. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
  345. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -0
  346. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1775 -0
  347. package/out-ts/decentraland/sdk/components/video_player.gen.ts +231 -0
  348. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +108 -0
  349. package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
  350. package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
  351. package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
  352. package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
  353. package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
  354. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10674 -0
  355. package/out-ts/google/protobuf/descriptor.gen.ts +3470 -0
  356. package/out-ts/google/protobuf/empty.gen.ts +72 -0
  357. package/out-ts/quests.gen.ts +3 -0
  358. package/out-ts/sdk-apis.gen.ts +3 -0
  359. package/out-ts/sdk-components.gen.ts +3 -0
  360. package/out-ts/sdk-development.gen.ts +3 -0
  361. package/out-ts/social.gen.ts +3 -0
  362. package/package.json +27 -10
  363. package/proto/decentraland/common/border_rect.proto +18 -0
  364. package/proto/decentraland/common/colors.proto +21 -0
  365. package/proto/decentraland/common/content_mapping.proto +7 -0
  366. package/proto/decentraland/common/entity.proto +13 -0
  367. package/proto/decentraland/common/floats.proto +8 -0
  368. package/proto/decentraland/common/options.proto +30 -0
  369. package/proto/decentraland/common/quantization_example.proto +132 -0
  370. package/{kernel/apis/UserIdentity.proto → proto/decentraland/common/sdk/user_data.proto} +1 -17
  371. package/proto/decentraland/common/texture.proto +45 -0
  372. package/proto/decentraland/common/vectors.proto +26 -0
  373. package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
  374. package/proto/decentraland/kernel/apis/communications_controller.proto +29 -0
  375. package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +3 -0
  376. package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
  377. package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
  378. package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +12 -1
  379. package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +6 -5
  380. package/proto/decentraland/kernel/apis/permissions.proto +36 -0
  381. package/proto/decentraland/kernel/apis/players.proto +35 -0
  382. package/proto/decentraland/kernel/apis/portable_experiences.proto +55 -0
  383. package/proto/decentraland/kernel/apis/restricted_actions.proto +100 -0
  384. package/proto/decentraland/kernel/apis/runtime.proto +71 -0
  385. package/proto/decentraland/kernel/apis/scene.proto +16 -0
  386. package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +9 -0
  387. package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
  388. package/proto/decentraland/kernel/apis/testing.proto +100 -0
  389. package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +2 -0
  390. package/proto/decentraland/kernel/apis/user_identity.proto +22 -0
  391. package/proto/decentraland/kernel/comms/rfc4/comms.proto +176 -0
  392. package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +104 -0
  393. package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
  394. package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
  395. package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
  396. package/proto/decentraland/kernel/comms/v3/archipelago.proto +86 -0
  397. package/proto/decentraland/kernel/comms/v3/comms.proto +64 -0
  398. package/proto/decentraland/pulse/pulse_client.proto +77 -0
  399. package/proto/decentraland/pulse/pulse_server.proto +138 -0
  400. package/proto/decentraland/pulse/pulse_shared.proto +48 -0
  401. package/proto/decentraland/quests/definitions.proto +185 -0
  402. package/proto/decentraland/realm/about.proto +138 -0
  403. package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
  404. package/proto/decentraland/sdk/components/animator.proto +31 -0
  405. package/proto/decentraland/sdk/components/asset_load.proto +10 -0
  406. package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
  407. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  408. package/proto/decentraland/sdk/components/audio_event.proto +12 -0
  409. package/proto/decentraland/sdk/components/audio_source.proto +31 -0
  410. package/proto/decentraland/sdk/components/audio_stream.proto +22 -0
  411. package/proto/decentraland/sdk/components/avatar_attach.proto +51 -0
  412. package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
  413. package/proto/decentraland/sdk/components/avatar_emote_command.proto +13 -0
  414. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
  415. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
  416. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +32 -0
  417. package/proto/decentraland/sdk/components/avatar_shape.proto +49 -0
  418. package/proto/decentraland/sdk/components/billboard.proto +29 -0
  419. package/proto/decentraland/sdk/components/camera_mode.proto +12 -0
  420. package/proto/decentraland/sdk/components/camera_mode_area.proto +25 -0
  421. package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
  422. package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
  423. package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
  424. package/proto/decentraland/sdk/components/common/input_action.proto +37 -0
  425. package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
  426. package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
  427. package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
  428. package/proto/decentraland/sdk/components/common/texts.proto +21 -0
  429. package/proto/decentraland/sdk/components/engine_info.proto +15 -0
  430. package/proto/decentraland/sdk/components/gltf_container.proto +19 -0
  431. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  432. package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
  433. package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
  434. package/proto/decentraland/sdk/components/light_source.proto +28 -0
  435. package/proto/decentraland/sdk/components/main_camera.proto +11 -0
  436. package/proto/decentraland/sdk/components/map_pin.proto +16 -0
  437. package/proto/decentraland/sdk/components/material.proto +57 -0
  438. package/proto/decentraland/sdk/components/mesh_collider.proto +62 -0
  439. package/proto/decentraland/sdk/components/mesh_renderer.proto +43 -0
  440. package/proto/decentraland/sdk/components/nft_shape.proto +48 -0
  441. package/proto/decentraland/sdk/components/particle_system.proto +133 -0
  442. package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
  443. package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
  444. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  445. package/proto/decentraland/sdk/components/pointer_events.proto +64 -0
  446. package/proto/decentraland/sdk/components/pointer_events_result.proto +19 -0
  447. package/proto/decentraland/sdk/components/pointer_lock.proto +11 -0
  448. package/proto/decentraland/sdk/components/primary_pointer_info.proto +39 -0
  449. package/proto/decentraland/sdk/components/raycast.proto +58 -0
  450. package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
  451. package/proto/decentraland/sdk/components/realm_info.proto +15 -0
  452. package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
  453. package/proto/decentraland/sdk/components/text_shape.proto +45 -0
  454. package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
  455. package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
  456. package/proto/decentraland/sdk/components/tween.proto +117 -0
  457. package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
  458. package/proto/decentraland/sdk/components/tween_state.proto +18 -0
  459. package/proto/decentraland/sdk/components/ui_background.proto +34 -0
  460. package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
  461. package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
  462. package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
  463. package/proto/decentraland/sdk/components/ui_input.proto +20 -0
  464. package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
  465. package/proto/decentraland/sdk/components/ui_text.proto +26 -0
  466. package/proto/decentraland/sdk/components/ui_transform.proto +178 -0
  467. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  468. package/proto/decentraland/sdk/components/video_player.proto +24 -0
  469. package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
  470. package/proto/decentraland/sdk/components/visibility_component.proto +16 -0
  471. package/proto/decentraland/sdk/development/local_development.proto +29 -0
  472. package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
  473. package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
  474. package/proto/decentraland/social_service/errors.proto +30 -0
  475. package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
  476. package/proto/decentraland/social_service/v2/social_service_v2.proto +721 -0
  477. package/protoc-gen-bitwise/generator_csharp.py +176 -0
  478. package/protoc-gen-bitwise/options_pb2.py +171 -0
  479. package/protoc-gen-bitwise/plugin.py +92 -0
  480. package/protoc-gen-bitwise/runtime/cs/BitReader.cs +112 -0
  481. package/protoc-gen-bitwise/runtime/cs/BitWriter.cs +117 -0
  482. package/protoc-gen-bitwise/runtime/cs/Quantize.cs +35 -0
  483. package/public/about.proto +5 -0
  484. package/public/comms.proto +5 -0
  485. package/public/quests.proto +5 -0
  486. package/public/sdk-apis.proto +25 -0
  487. package/public/sdk-components.proto +43 -0
  488. package/public/sdk-development.proto +5 -0
  489. package/public/social.proto +6 -0
  490. package/ecs/components/Animator.proto +0 -18
  491. package/ecs/components/AudioSource.proto +0 -12
  492. package/ecs/components/AudioStream.proto +0 -10
  493. package/ecs/components/AvatarAttach.proto +0 -16
  494. package/ecs/components/AvatarModifierArea.proto +0 -16
  495. package/ecs/components/AvatarShape.proto +0 -20
  496. package/ecs/components/Billboard.proto +0 -10
  497. package/ecs/components/BoxShape.proto +0 -11
  498. package/ecs/components/CameraModeArea.proto +0 -15
  499. package/ecs/components/CylinderShape.proto +0 -12
  500. package/ecs/components/GLTFShape.proto +0 -11
  501. package/ecs/components/NFTShape.proto +0 -16
  502. package/ecs/components/OnPointerDown.proto +0 -12
  503. package/ecs/components/OnPointerDownResult.proto +0 -17
  504. package/ecs/components/OnPointerUp.proto +0 -12
  505. package/ecs/components/OnPointerUpResult.proto +0 -17
  506. package/ecs/components/PlaneShape.proto +0 -11
  507. package/ecs/components/SphereShape.proto +0 -10
  508. package/ecs/components/TextShape.proto +0 -33
  509. package/ecs/components/UiTransform.proto +0 -159
  510. package/ecs/components/common/ActionButton.proto +0 -18
  511. package/ecs/components/common/Color3.proto +0 -8
  512. package/ecs/components/common/Vector3.proto +0 -7
  513. package/kernel/apis/CommunicationsController.proto +0 -11
  514. package/kernel/apis/EngineAPI.proto +0 -180
  515. package/kernel/apis/EnvironmentAPI.proto +0 -70
  516. package/kernel/apis/ExperimentalAPI.proto +0 -16
  517. package/kernel/apis/Permissions.proto +0 -30
  518. package/kernel/apis/Players.proto +0 -28
  519. package/kernel/apis/PortableExperiences.proto +0 -40
  520. package/kernel/apis/RestrictedActions.proto +0 -25
  521. package/kernel/apis/SceneStateStorageController.proto +0 -114
  522. package/kernel/apis/SocialController.proto +0 -15
  523. package/kernel/comms/v1/broker.proto +0 -114
  524. package/kernel/comms/v1/comms.proto +0 -68
  525. package/kernel/comms/v2/comms.proto +0 -59
  526. package/renderer-protocol/RendererProtocol.proto +0 -24
  527. /package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
  528. /package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
package/README.md CHANGED
@@ -1 +1,267 @@
1
1
  # Protocol definitions
2
+
3
+ This module is intended to be installed as a node_module via `npm install @dcl/protocol`.
4
+
5
+ It is recommended that every project compiles the needed files only as part of its build process. Some imports are required:
6
+
7
+ - `-I=$(pwd)/node_modules/@dcl/protocol/public`
8
+ - `-I=$(pwd)/node_modules/@dcl/protocol/proto`
9
+
10
+ An example compilation looks like this:
11
+
12
+ ```bash
13
+ protoc \
14
+ --plugin=./node_modules/.bin/protoc-gen-dcl_ts_proto \
15
+ --dcl_ts_proto_opt=esModuleInterop=true,returnObservable=false,outputServices=generic-definitions,fileSuffix=.gen \
16
+ --dcl_ts_proto_out="$(pwd)/out-ts" \
17
+ -I="$(pwd)/node_modules/@dcl/protocol/public" \
18
+ -I="$(pwd)/node_modules/@dcl/protocol/proto" \
19
+ "$(pwd)/node_modules/@dcl/protocol/public/sdk-components.proto"
20
+ ```
21
+
22
+ # Style Guidelines
23
+
24
+ 1. All .proto files are snake_case.proto.
25
+ 2. For pascal or camel case usage, please make a deterministic one from the snake case. Example: nft_shape will transform to NftShape.
26
+ 3. See https://docs.buf.build/best-practices/style-guide. The most of other styles are taken from there, the Buf configuration is in proto/buf.yml.
27
+ 4. Use public/ folder only for .proto with protocol exposing, that is only for files with `import public`. This folder is not processed by the linter.
28
+
29
+ # Dev with Decentraland Repositories
30
+
31
+ Many repositories depend on this protocol definition and that sometimes implies some merge order. We don't have to worry much about compatibility because the checks are running with each PR, if you break something, the CI will warn you. But, in some cases, it's desirable to merge the implementation in a specific order to avoid unexpected behavior in the corner cases (multiple repositories are waiting for the build at the same time).
32
+
33
+ > **Important Note: Avoid Merging Protocol PR Without Completed Unity Implementation**
34
+ >
35
+ > Please don't merge a protocol PR into the main branch unless the corresponding implementation in Unity has been completed. This is important to avoid any potential issues or build failures in Unity.
36
+ >
37
+ > The ideal order for introducing breaking changes in the protocol is as follows:
38
+ >
39
+ > 1. Create a PR in the Protocol repository.
40
+ > 2. Use the npm test link from the CI of the protocol PR in the protocol-dependent application for development.
41
+ > 3. Once both the protocol PR and the protocol-dependent application (e.g. unity-renderer) PR are ready for merging, synchronize their merging as follows:
42
+ > 1. Merge the protocol PR.
43
+ > 2. Modify protocol-dependent application PR to use the `@dcl/protocol@next` package to stop using the PR npm test link.
44
+ > 3. Merge the protocol-dependent application PR.
45
+
46
+ Some dev-cases are described here:
47
+
48
+ ## SDK: New component or component modification
49
+
50
+ Repositories: [unity-renderer](https://github.com/decentraland/unity-renderer/) and [js-sdk-toolchain](https://github.com/decentraland/js-sdk-toolchain/)
51
+
52
+ At the protocol level both operations shouldn't be a problem, but `js-sdk-toolchain` CI will fail if the component is not tested. This can happen if the PR **`A`** from the protocol is merged, and you update your PR **`B`** from `js-sdk-toolchain` with the changes before the PR **`A`** from `js-sdk-toolchain` is merged.
53
+
54
+ Some guidelines and testing before merge:
55
+
56
+ - The protocol package is uploaded to S3 while developing in a PR. This can be used in the target repositories
57
+ - Testing in the playground: Playground allows us to test by adding query parameters: `https://playground.decentraland.org/?&renderer-branch=**feat/my-new-component**&sdk-branch=**feat/new-component-approach**`
58
+ - Testing locally: you can write an example scene and install the package `@dcl/sdk` uploaded to S3 commented in the PR comments.
59
+ - Testing in the Unity Editor: if you need to test with the editor opened, write the `ws` query parameter in your local or playground test.
60
+ - Start merging when the three PRs are already to merge: first merge the Protocol one, then update the other two with the version @next and merge them at the same time.
61
+
62
+ ## SDK: New APIs or APIs modifications
63
+
64
+ Repositories: [kernel](https://github.com/decentraland/kernel/), [js-sdk-toolchain](https://github.com/decentraland/js-sdk-toolchain/) and [scene-runtime](https://github.com/decentraland/scene-runtime/)
65
+ In this case, there is no problem with when each PR is merged. It's recommendable to merge first the rpc server-side (in this case, Kernel), second the `scene-runtime` (and this would require a second update from `kernel`) and last the `js-sdk-toolchain`.
66
+
67
+ ## Comms
68
+
69
+ TODO
70
+
71
+ ---
72
+
73
+ # Bitwise Serialization Plugin (`protoc-gen-bitwise`)
74
+
75
+ A custom protoc plugin that generates C# partial classes with typed float
76
+ accessors for quantized `uint32` fields in high-frequency MMO networking
77
+ messages (position deltas, player input, etc.). It runs alongside
78
+ `--csharp_out` in the same protoc invocation; the two output files coexist
79
+ via C# `partial class`.
80
+
81
+ ## How it works
82
+
83
+ Protobuf encodes `uint32` values as varints, which are already compact for
84
+ small values: a value up to 2¹⁴−1 costs 2 bytes, up to 2²¹−1 costs 3 bytes.
85
+ Rather than a separate binary packing layer, the plugin leverages this:
86
+
87
+ 1. Declare quantized fields as `uint32` in the `.proto` schema and annotate
88
+ them with `[(decentraland.common.quantized)]` to specify the float range
89
+ and bit resolution.
90
+ 2. `--csharp_out` generates the standard protobuf class with the raw `uint32`
91
+ property (e.g. `PositionX`).
92
+ 3. `--bitwise_out` (this plugin) generates a `partial class` extension with a
93
+ cached float accessor (e.g. `PositionXQuantized`) that encodes/decodes
94
+ transparently via `Quantize.Encode` / `Quantize.Decode`.
95
+
96
+ The wire representation is a standard protobuf message — any protobuf-capable
97
+ client can read it without knowledge of the plugin.
98
+
99
+ ## Prerequisites
100
+
101
+ | Requirement | Version |
102
+ |---|---|
103
+ | Python | 3.10+ |
104
+ | `protobuf` Python package | 4.x or 3.20+ |
105
+ | `protoc` | 3.19+ |
106
+
107
+ ```bash
108
+ pip install protobuf
109
+ ```
110
+
111
+ ## Step 1 — Annotate your `.proto` file
112
+
113
+ Declare quantized fields as `uint32` and import `options.proto`:
114
+
115
+ ```protobuf
116
+ syntax = "proto3";
117
+
118
+ import "decentraland/common/options.proto";
119
+
120
+ package decentraland.kernel.comms.v3;
121
+
122
+ message PositionDelta {
123
+ // Float range [-100, 100] quantized to 16 bits ≈ 0.003-unit precision.
124
+ // Stored as uint32 on the wire; protobuf encodes it as a 3-byte varint.
125
+ uint32 dx = 1 [(decentraland.common.quantized) = { min: -100.0, max: 100.0, bits: 16 }];
126
+ uint32 dy = 2 [(decentraland.common.quantized) = { min: -100.0, max: 100.0, bits: 16 }];
127
+ uint32 dz = 3 [(decentraland.common.quantized) = { min: -100.0, max: 100.0, bits: 16 }];
128
+
129
+ // Unannotated uint32: protobuf varint encodes small values compactly by default.
130
+ uint32 entity_id = 4 [(decentraland.common.bit_packed) = { bits: 20 }];
131
+ }
132
+ ```
133
+
134
+ ### Annotation reference
135
+
136
+ | Annotation | Target type | Parameters | Effect |
137
+ |---|---|---|---|
138
+ | `[(decentraland.common.quantized)]` | `uint32` | `min`, `max`, `bits` | Plugin emits a cached `float {Name}Quantized` accessor |
139
+ | `[(decentraland.common.bit_packed)]` | `uint32` | `bits` | Documents the value range; protobuf handles varint compaction automatically |
140
+
141
+ ### Wire cost at worst-case (all bits set)
142
+
143
+ | Quantization bits | Max value | Varint bytes | Tag (field ≤ 15) | Total per field |
144
+ |---|---|---|---|---|
145
+ | 8 | 255 | 2 | 1 | 3 B |
146
+ | 12 | 4 095 | 2 | 1 | 3 B |
147
+ | 14 | 16 383 | 2 | 1 | 3 B |
148
+ | 16 | 65 535 | 3 | 1 | 4 B |
149
+ | 20 | 1 048 575 | 3 | 1 | 4 B |
150
+
151
+ Proto3 omits fields equal to their default value (0), so average cost is lower.
152
+
153
+ ## Step 2 — Run protoc
154
+
155
+ ```bash
156
+ protoc \
157
+ --proto_path=proto \
158
+ --proto_path=/path/to/google/protobuf/include \
159
+ --csharp_out=generated/cs \
160
+ --plugin=protoc-gen-bitwise=protoc-gen-bitwise/plugin.py \
161
+ --bitwise_out=generated/cs \
162
+ proto/decentraland/kernel/comms/v3/comms.proto
163
+ ```
164
+
165
+ The plugin emits one `*.Bitwise.cs` file (PascalCase, flat in the output
166
+ directory) for each `.proto` file that contains at least one `[(quantized)]`
167
+ field.
168
+
169
+ ## Step 3 — Copy the runtime
170
+
171
+ Copy `Quantize.cs` into your project:
172
+
173
+ ```
174
+ Assets/
175
+ └── Scripts/
176
+ └── Networking/
177
+ └── Bitwise/
178
+ └── Quantize.cs ← protoc-gen-bitwise/runtime/cs/Quantize.cs
179
+ ```
180
+
181
+ `Quantize.cs` lives in the `Decentraland.Networking.Bitwise` namespace and
182
+ provides two static methods used by the generated accessors:
183
+
184
+ ```csharp
185
+ public static class Quantize
186
+ {
187
+ public static uint Encode(float value, float min, float max, int bits);
188
+ public static float Decode(uint encoded, float min, float max, int bits);
189
+ }
190
+ ```
191
+
192
+ ## Step 4 — Use the generated code
193
+
194
+ The plugin emits a `partial class` that adds float accessors on top of the
195
+ standard protobuf-generated `uint32` properties:
196
+
197
+ ```csharp
198
+ using Decentraland.Kernel.Comms.V3;
199
+
200
+ // --- Build and send ---
201
+ var delta = new PositionDelta();
202
+ delta.DxQuantized = 3.14f; // encodes to uint32, stored in delta.Dx
203
+ delta.DyQuantized = 0f;
204
+ delta.DzQuantized = -7.5f;
205
+ delta.EntityId = 42u;
206
+
207
+ byte[] bytes = delta.ToByteArray(); // standard protobuf serialization
208
+ SendOnChannel1(bytes);
209
+
210
+ // --- Receive and read ---
211
+ var received = PositionDelta.Parser.ParseFrom(receivedBytes);
212
+ float x = received.DxQuantized; // decoded on first access, cached thereafter
213
+ float y = received.DyQuantized;
214
+ float z = received.DzQuantized;
215
+
216
+ // If raw uint32 fields are mutated directly after construction, invalidate the cache:
217
+ received.ResetDecodedCache();
218
+ ```
219
+
220
+ ## Generated file example
221
+
222
+ For the `PositionDelta` message above the plugin emits `PositionDelta.Bitwise.cs`:
223
+
224
+ ```csharp
225
+ // <auto-generated>
226
+ // Generated by protoc-gen-bitwise. DO NOT EDIT.
227
+ // Source: decentraland/kernel/comms/v3/comms.proto
228
+ // </auto-generated>
229
+
230
+ using Decentraland.Networking.Bitwise;
231
+
232
+ namespace Decentraland.Kernel.Comms.V3
233
+ {
234
+ public partial class PositionDelta
235
+ {
236
+ private float? _dx;
237
+ public float DxQuantized
238
+ {
239
+ get => _dx ??= Quantize.Decode(Dx, -100.0f, 100.0f, 16);
240
+ set { _dx = value; Dx = Quantize.Encode(value, -100.0f, 100.0f, 16); }
241
+ }
242
+
243
+ private float? _dy;
244
+ public float DyQuantized
245
+ {
246
+ get => _dy ??= Quantize.Decode(Dy, -100.0f, 100.0f, 16);
247
+ set { _dy = value; Dy = Quantize.Encode(value, -100.0f, 100.0f, 16); }
248
+ }
249
+
250
+ private float? _dz;
251
+ public float DzQuantized
252
+ {
253
+ get => _dz ??= Quantize.Decode(Dz, -100.0f, 100.0f, 16);
254
+ set { _dz = value; Dz = Quantize.Encode(value, -100.0f, 100.0f, 16); }
255
+ }
256
+
257
+ /// <summary>Clears all cached decoded values. Call after mutating raw uint32 fields directly.</summary>
258
+ public void ResetDecodedCache()
259
+ {
260
+ _dx = null;
261
+ _dy = null;
262
+ _dz = null;
263
+ }
264
+ }
265
+
266
+ } // namespace Decentraland.Kernel.Comms.V3
267
+ ```
@@ -0,0 +1 @@
1
+ export declare const protobufPackage = "decentraland.realm";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.protobufPackage = void 0;
5
+ exports.protobufPackage = "decentraland.realm";
6
+ //# sourceMappingURL=about.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"about.gen.js","sourceRoot":"","sources":["../out-ts/about.gen.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAEP,QAAA,eAAe,GAAG,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const protobufPackage = "";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.protobufPackage = void 0;
5
+ exports.protobufPackage = "";
6
+ //# sourceMappingURL=comms.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comms.gen.js","sourceRoot":"","sources":["../out-ts/comms.gen.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAEP,QAAA,eAAe,GAAG,EAAE,CAAC"}
@@ -0,0 +1,49 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.common";
3
+ /** Defines indents from respective edges */
4
+ export interface BorderRect {
5
+ top: number;
6
+ left: number;
7
+ right: number;
8
+ bottom: number;
9
+ }
10
+ /** Defines a rect with x, y, width and height */
11
+ export interface Rect {
12
+ x: number;
13
+ y: number;
14
+ width: number;
15
+ height: number;
16
+ }
17
+ export declare namespace BorderRect {
18
+ function encode(message: BorderRect, writer?: _m0.Writer): _m0.Writer;
19
+ function decode(input: _m0.Reader | Uint8Array, length?: number): BorderRect;
20
+ function fromJSON(object: any): BorderRect;
21
+ function toJSON(message: BorderRect): unknown;
22
+ function create<I extends Exact<DeepPartial<BorderRect>, I>>(base?: I): BorderRect;
23
+ function fromPartial<I extends Exact<DeepPartial<BorderRect>, I>>(object: I): BorderRect;
24
+ }
25
+ export declare namespace Rect {
26
+ function encode(message: Rect, writer?: _m0.Writer): _m0.Writer;
27
+ function decode(input: _m0.Reader | Uint8Array, length?: number): Rect;
28
+ function fromJSON(object: any): Rect;
29
+ function toJSON(message: Rect): unknown;
30
+ function create<I extends Exact<DeepPartial<Rect>, I>>(base?: I): Rect;
31
+ function fromPartial<I extends Exact<DeepPartial<Rect>, I>>(object: I): Rect;
32
+ }
33
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
34
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
35
+ $case: string;
36
+ } ? {
37
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
38
+ } & {
39
+ $case: T["$case"];
40
+ } : T extends {} ? {
41
+ [K in keyof T]?: DeepPartial<T[K]>;
42
+ } : Partial<T>;
43
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
44
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
45
+ [K in keyof P]: Exact<P[K], I[K]>;
46
+ } & {
47
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
48
+ };
49
+ export {};
@@ -0,0 +1,201 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Rect = exports.BorderRect = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.common";
10
+ function createBaseBorderRect() {
11
+ return { top: 0, left: 0, right: 0, bottom: 0 };
12
+ }
13
+ var BorderRect;
14
+ (function (BorderRect) {
15
+ function encode(message, writer = minimal_1.default.Writer.create()) {
16
+ if (message.top !== 0) {
17
+ writer.uint32(13).float(message.top);
18
+ }
19
+ if (message.left !== 0) {
20
+ writer.uint32(21).float(message.left);
21
+ }
22
+ if (message.right !== 0) {
23
+ writer.uint32(29).float(message.right);
24
+ }
25
+ if (message.bottom !== 0) {
26
+ writer.uint32(37).float(message.bottom);
27
+ }
28
+ return writer;
29
+ }
30
+ BorderRect.encode = encode;
31
+ function decode(input, length) {
32
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
33
+ let end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBaseBorderRect();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ case 1:
39
+ if (tag !== 13) {
40
+ break;
41
+ }
42
+ message.top = reader.float();
43
+ continue;
44
+ case 2:
45
+ if (tag !== 21) {
46
+ break;
47
+ }
48
+ message.left = reader.float();
49
+ continue;
50
+ case 3:
51
+ if (tag !== 29) {
52
+ break;
53
+ }
54
+ message.right = reader.float();
55
+ continue;
56
+ case 4:
57
+ if (tag !== 37) {
58
+ break;
59
+ }
60
+ message.bottom = reader.float();
61
+ continue;
62
+ }
63
+ if ((tag & 7) === 4 || tag === 0) {
64
+ break;
65
+ }
66
+ reader.skipType(tag & 7);
67
+ }
68
+ return message;
69
+ }
70
+ BorderRect.decode = decode;
71
+ function fromJSON(object) {
72
+ return {
73
+ top: isSet(object.top) ? Number(object.top) : 0,
74
+ left: isSet(object.left) ? Number(object.left) : 0,
75
+ right: isSet(object.right) ? Number(object.right) : 0,
76
+ bottom: isSet(object.bottom) ? Number(object.bottom) : 0,
77
+ };
78
+ }
79
+ BorderRect.fromJSON = fromJSON;
80
+ function toJSON(message) {
81
+ const obj = {};
82
+ message.top !== undefined && (obj.top = message.top);
83
+ message.left !== undefined && (obj.left = message.left);
84
+ message.right !== undefined && (obj.right = message.right);
85
+ message.bottom !== undefined && (obj.bottom = message.bottom);
86
+ return obj;
87
+ }
88
+ BorderRect.toJSON = toJSON;
89
+ function create(base) {
90
+ return BorderRect.fromPartial(base !== null && base !== void 0 ? base : {});
91
+ }
92
+ BorderRect.create = create;
93
+ function fromPartial(object) {
94
+ var _a, _b, _c, _d;
95
+ const message = createBaseBorderRect();
96
+ message.top = (_a = object.top) !== null && _a !== void 0 ? _a : 0;
97
+ message.left = (_b = object.left) !== null && _b !== void 0 ? _b : 0;
98
+ message.right = (_c = object.right) !== null && _c !== void 0 ? _c : 0;
99
+ message.bottom = (_d = object.bottom) !== null && _d !== void 0 ? _d : 0;
100
+ return message;
101
+ }
102
+ BorderRect.fromPartial = fromPartial;
103
+ })(BorderRect || (exports.BorderRect = BorderRect = {}));
104
+ function createBaseRect() {
105
+ return { x: 0, y: 0, width: 0, height: 0 };
106
+ }
107
+ var Rect;
108
+ (function (Rect) {
109
+ function encode(message, writer = minimal_1.default.Writer.create()) {
110
+ if (message.x !== 0) {
111
+ writer.uint32(13).float(message.x);
112
+ }
113
+ if (message.y !== 0) {
114
+ writer.uint32(21).float(message.y);
115
+ }
116
+ if (message.width !== 0) {
117
+ writer.uint32(29).float(message.width);
118
+ }
119
+ if (message.height !== 0) {
120
+ writer.uint32(37).float(message.height);
121
+ }
122
+ return writer;
123
+ }
124
+ Rect.encode = encode;
125
+ function decode(input, length) {
126
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
127
+ let end = length === undefined ? reader.len : reader.pos + length;
128
+ const message = createBaseRect();
129
+ while (reader.pos < end) {
130
+ const tag = reader.uint32();
131
+ switch (tag >>> 3) {
132
+ case 1:
133
+ if (tag !== 13) {
134
+ break;
135
+ }
136
+ message.x = reader.float();
137
+ continue;
138
+ case 2:
139
+ if (tag !== 21) {
140
+ break;
141
+ }
142
+ message.y = reader.float();
143
+ continue;
144
+ case 3:
145
+ if (tag !== 29) {
146
+ break;
147
+ }
148
+ message.width = reader.float();
149
+ continue;
150
+ case 4:
151
+ if (tag !== 37) {
152
+ break;
153
+ }
154
+ message.height = reader.float();
155
+ continue;
156
+ }
157
+ if ((tag & 7) === 4 || tag === 0) {
158
+ break;
159
+ }
160
+ reader.skipType(tag & 7);
161
+ }
162
+ return message;
163
+ }
164
+ Rect.decode = decode;
165
+ function fromJSON(object) {
166
+ return {
167
+ x: isSet(object.x) ? Number(object.x) : 0,
168
+ y: isSet(object.y) ? Number(object.y) : 0,
169
+ width: isSet(object.width) ? Number(object.width) : 0,
170
+ height: isSet(object.height) ? Number(object.height) : 0,
171
+ };
172
+ }
173
+ Rect.fromJSON = fromJSON;
174
+ function toJSON(message) {
175
+ const obj = {};
176
+ message.x !== undefined && (obj.x = message.x);
177
+ message.y !== undefined && (obj.y = message.y);
178
+ message.width !== undefined && (obj.width = message.width);
179
+ message.height !== undefined && (obj.height = message.height);
180
+ return obj;
181
+ }
182
+ Rect.toJSON = toJSON;
183
+ function create(base) {
184
+ return Rect.fromPartial(base !== null && base !== void 0 ? base : {});
185
+ }
186
+ Rect.create = create;
187
+ function fromPartial(object) {
188
+ var _a, _b, _c, _d;
189
+ const message = createBaseRect();
190
+ message.x = (_a = object.x) !== null && _a !== void 0 ? _a : 0;
191
+ message.y = (_b = object.y) !== null && _b !== void 0 ? _b : 0;
192
+ message.width = (_c = object.width) !== null && _c !== void 0 ? _c : 0;
193
+ message.height = (_d = object.height) !== null && _d !== void 0 ? _d : 0;
194
+ return message;
195
+ }
196
+ Rect.fromPartial = fromPartial;
197
+ })(Rect || (exports.Rect = Rect = {}));
198
+ function isSet(value) {
199
+ return value !== null && value !== undefined;
200
+ }
201
+ //# sourceMappingURL=border_rect.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"border_rect.gen.js","sourceRoot":"","sources":["../../../out-ts/decentraland/common/border_rect.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,qBAAqB,CAAC;AAkBrD,SAAS,oBAAoB;IAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAClD,CAAC;AAED,IAAiB,UAAU,CA2F1B;AA3FD,WAAiB,UAAU;IACzB,SAAgB,MAAM,CAAC,OAAmB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAClF,IAAI,OAAO,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC;YACtB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACvC,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACvB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,CAAC,MAAM,CAAC,EAAE,C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OAAO,CAAC,CAAC,GAAG,MAAA,MAAM,CAAC,CAAC,mCAAI,CAAC,CAAC;QAC1B,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,CAAC,CAAC;QAClC,OAAO,CAAC,MAAM,GAAG,MAAA,MAAM,CAAC,MAAM,mCAAI,CAAC,CAAC;QACpC,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,gBAAW,cAO1B,CAAA;AACH,CAAC,EA3FgB,IAAI,oBAAJ,IAAI,QA2FpB;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,59 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.common";
3
+ export interface Color3 {
4
+ r: number;
5
+ g: number;
6
+ b: number;
7
+ }
8
+ export interface Color4 {
9
+ r: number;
10
+ g: number;
11
+ b: number;
12
+ a: number;
13
+ }
14
+ /** A range of Color4 values. Randomized or lerped between start and end. */
15
+ export interface ColorRange {
16
+ start: Color4 | undefined;
17
+ end: Color4 | undefined;
18
+ }
19
+ export declare namespace Color3 {
20
+ function encode(message: Color3, writer?: _m0.Writer): _m0.Writer;
21
+ function decode(input: _m0.Reader | Uint8Array, length?: number): Color3;
22
+ function fromJSON(object: any): Color3;
23
+ function toJSON(message: Color3): unknown;
24
+ function create<I extends Exact<DeepPartial<Color3>, I>>(base?: I): Color3;
25
+ function fromPartial<I extends Exact<DeepPartial<Color3>, I>>(object: I): Color3;
26
+ }
27
+ export declare namespace Color4 {
28
+ function encode(message: Color4, writer?: _m0.Writer): _m0.Writer;
29
+ function decode(input: _m0.Reader | Uint8Array, length?: number): Color4;
30
+ function fromJSON(object: any): Color4;
31
+ function toJSON(message: Color4): unknown;
32
+ function create<I extends Exact<DeepPartial<Color4>, I>>(base?: I): Color4;
33
+ function fromPartial<I extends Exact<DeepPartial<Color4>, I>>(object: I): Color4;
34
+ }
35
+ export declare namespace ColorRange {
36
+ function encode(message: ColorRange, writer?: _m0.Writer): _m0.Writer;
37
+ function decode(input: _m0.Reader | Uint8Array, length?: number): ColorRange;
38
+ function fromJSON(object: any): ColorRange;
39
+ function toJSON(message: ColorRange): unknown;
40
+ function create<I extends Exact<DeepPartial<ColorRange>, I>>(base?: I): ColorRange;
41
+ function fromPartial<I extends Exact<DeepPartial<ColorRange>, I>>(object: I): ColorRange;
42
+ }
43
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
44
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
45
+ $case: string;
46
+ } ? {
47
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
48
+ } & {
49
+ $case: T["$case"];
50
+ } : T extends {} ? {
51
+ [K in keyof T]?: DeepPartial<T[K]>;
52
+ } : Partial<T>;
53
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
54
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
55
+ [K in keyof P]: Exact<P[K], I[K]>;
56
+ } & {
57
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
58
+ };
59
+ export {};