@dcl/protocol 1.0.0-10043247792.commit-428d1eb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (473) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +69 -0
  3. package/out-js/about.gen.d.ts +1 -0
  4. package/out-js/about.gen.js +6 -0
  5. package/out-js/about.gen.js.map +1 -0
  6. package/out-js/comms.gen.d.ts +1 -0
  7. package/out-js/comms.gen.js +6 -0
  8. package/out-js/comms.gen.js.map +1 -0
  9. package/out-js/decentraland/common/border_rect.gen.d.ts +49 -0
  10. package/out-js/decentraland/common/border_rect.gen.js +201 -0
  11. package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
  12. package/out-js/decentraland/common/colors.gen.d.ts +46 -0
  13. package/out-js/decentraland/common/colors.gen.js +189 -0
  14. package/out-js/decentraland/common/colors.gen.js.map +1 -0
  15. package/out-js/decentraland/common/content_mapping.gen.d.ts +31 -0
  16. package/out-js/decentraland/common/content_mapping.gen.js +80 -0
  17. package/out-js/decentraland/common/content_mapping.gen.js.map +1 -0
  18. package/out-js/decentraland/common/sdk/user_data.gen.d.ts +63 -0
  19. package/out-js/decentraland/common/sdk/user_data.gen.js +330 -0
  20. package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -0
  21. package/out-js/decentraland/common/texture.gen.d.ts +100 -0
  22. package/out-js/decentraland/common/texture.gen.js +446 -0
  23. package/out-js/decentraland/common/texture.gen.js.map +1 -0
  24. package/out-js/decentraland/common/vectors.gen.d.ts +71 -0
  25. package/out-js/decentraland/common/vectors.gen.js +338 -0
  26. package/out-js/decentraland/common/vectors.gen.js.map +1 -0
  27. package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +76 -0
  28. package/out-js/decentraland/kernel/apis/comms_api.gen.js +257 -0
  29. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
  30. package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +89 -0
  31. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +301 -0
  32. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -0
  33. package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +58 -0
  34. package/out-js/decentraland/kernel/apis/dev_tools.gen.js +142 -0
  35. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -0
  36. package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +338 -0
  37. package/out-js/decentraland/kernel/apis/engine_api.gen.js +1452 -0
  38. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -0
  39. package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +283 -0
  40. package/out-js/decentraland/kernel/apis/environment_api.gen.js +1122 -0
  41. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -0
  42. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +225 -0
  43. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +878 -0
  44. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -0
  45. package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +146 -0
  46. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +557 -0
  47. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -0
  48. package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +100 -0
  49. package/out-js/decentraland/kernel/apis/permissions.gen.js +360 -0
  50. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -0
  51. package/out-js/decentraland/kernel/apis/players.gen.d.ts +127 -0
  52. package/out-js/decentraland/kernel/apis/players.gen.js +372 -0
  53. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -0
  54. package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +178 -0
  55. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +607 -0
  56. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -0
  57. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +244 -0
  58. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +824 -0
  59. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -0
  60. package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +217 -0
  61. package/out-js/decentraland/kernel/apis/runtime.gen.js +801 -0
  62. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -0
  63. package/out-js/decentraland/kernel/apis/scene.gen.d.ts +59 -0
  64. package/out-js/decentraland/kernel/apis/scene.gen.js +171 -0
  65. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -0
  66. package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +139 -0
  67. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +615 -0
  68. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -0
  69. package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +72 -0
  70. package/out-js/decentraland/kernel/apis/social_controller.gen.js +207 -0
  71. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -0
  72. package/out-js/decentraland/kernel/apis/testing.gen.d.ts +249 -0
  73. package/out-js/decentraland/kernel/apis/testing.gen.js +1073 -0
  74. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
  75. package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +56 -0
  76. package/out-js/decentraland/kernel/apis/user_action_module.gen.js +128 -0
  77. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -0
  78. package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +86 -0
  79. package/out-js/decentraland/kernel/apis/user_identity.gen.js +236 -0
  80. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -0
  81. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +213 -0
  82. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1282 -0
  83. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -0
  84. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +183 -0
  85. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +906 -0
  86. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -0
  87. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +224 -0
  88. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1204 -0
  89. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -0
  90. package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
  91. package/out-js/decentraland/quests/definitions.gen.js +2728 -0
  92. package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
  93. package/out-js/decentraland/realm/about.gen.d.ts +150 -0
  94. package/out-js/decentraland/realm/about.gen.js +914 -0
  95. package/out-js/decentraland/realm/about.gen.js.map +1 -0
  96. package/out-js/decentraland/sdk/components/animator.gen.d.ts +62 -0
  97. package/out-js/decentraland/sdk/components/animator.gen.js +192 -0
  98. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
  99. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +61 -0
  100. package/out-js/decentraland/sdk/components/audio_source.gen.js +151 -0
  101. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
  102. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +40 -0
  103. package/out-js/decentraland/sdk/components/audio_stream.gen.js +95 -0
  104. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
  105. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +76 -0
  106. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +262 -0
  107. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
  108. package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
  109. package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
  110. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
  111. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +37 -0
  112. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +95 -0
  113. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
  114. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
  115. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
  116. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
  117. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +60 -0
  118. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +153 -0
  119. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
  120. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +72 -0
  121. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +251 -0
  122. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
  123. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +54 -0
  124. package/out-js/decentraland/sdk/components/billboard.gen.js +128 -0
  125. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
  126. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +36 -0
  127. package/out-js/decentraland/sdk/components/camera_mode.gen.js +70 -0
  128. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
  129. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +48 -0
  130. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +85 -0
  131. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
  132. package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +10 -0
  133. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +46 -0
  134. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
  135. package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
  136. package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
  137. package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
  138. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +30 -0
  139. package/out-js/decentraland/sdk/components/common/input_action.gen.js +157 -0
  140. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
  141. package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
  142. package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
  143. package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
  144. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
  145. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
  146. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
  147. package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
  148. package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
  149. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
  150. package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +41 -0
  151. package/out-js/decentraland/sdk/components/engine_info.gen.js +95 -0
  152. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
  153. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
  154. package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
  155. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
  156. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
  157. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
  158. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
  159. package/out-js/decentraland/sdk/components/material.gen.d.ts +106 -0
  160. package/out-js/decentraland/sdk/components/material.gen.js +515 -0
  161. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
  162. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +128 -0
  163. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +469 -0
  164. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
  165. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
  166. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
  167. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
  168. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
  169. package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
  170. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
  171. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  172. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  173. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  174. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +79 -0
  175. package/out-js/decentraland/sdk/components/pointer_events.gen.js +247 -0
  176. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
  177. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
  178. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
  179. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
  180. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
  181. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
  182. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
  183. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
  184. package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
  185. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
  186. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
  187. package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
  188. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
  189. package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +35 -0
  190. package/out-js/decentraland/sdk/components/realm_info.gen.js +131 -0
  191. package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
  192. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +81 -0
  193. package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
  194. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
  195. package/out-js/decentraland/sdk/components/tween.gen.d.ts +125 -0
  196. package/out-js/decentraland/sdk/components/tween.gen.js +598 -0
  197. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
  198. package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
  199. package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
  200. package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
  201. package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
  202. package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
  203. package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
  204. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
  205. package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
  206. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
  207. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +45 -0
  208. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -0
  209. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
  210. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
  211. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
  212. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
  213. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +44 -0
  214. package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
  215. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
  216. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
  217. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
  218. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
  219. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +50 -0
  220. package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -0
  221. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
  222. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +204 -0
  223. package/out-js/decentraland/sdk/components/ui_transform.gen.js +1210 -0
  224. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
  225. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +41 -0
  226. package/out-js/decentraland/sdk/components/video_player.gen.js +138 -0
  227. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
  228. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +31 -0
  229. package/out-js/decentraland/sdk/components/visibility_component.gen.js +69 -0
  230. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
  231. package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
  232. package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
  233. package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
  234. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
  235. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
  236. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
  237. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
  238. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
  239. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
  240. package/out-js/decentraland/social/friendships/friendships.gen.d.ts +500 -0
  241. package/out-js/decentraland/social/friendships/friendships.gen.js +2517 -0
  242. package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -0
  243. package/out-js/decentraland/social_service_v2/social_service.gen.d.ts +357 -0
  244. package/out-js/decentraland/social_service_v2/social_service.gen.js +1554 -0
  245. package/out-js/decentraland/social_service_v2/social_service.gen.js.map +1 -0
  246. package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
  247. package/out-js/google/protobuf/descriptor.gen.js +3173 -0
  248. package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
  249. package/out-js/google/protobuf/empty.gen.d.ts +38 -0
  250. package/out-js/google/protobuf/empty.gen.js +54 -0
  251. package/out-js/google/protobuf/empty.gen.js.map +1 -0
  252. package/out-js/quests.gen.d.ts +1 -0
  253. package/out-js/quests.gen.js +6 -0
  254. package/out-js/quests.gen.js.map +1 -0
  255. package/out-js/sdk-apis.gen.d.ts +1 -0
  256. package/out-js/sdk-apis.gen.js +6 -0
  257. package/out-js/sdk-apis.gen.js.map +1 -0
  258. package/out-js/sdk-components.gen.d.ts +1 -0
  259. package/out-js/sdk-components.gen.js +6 -0
  260. package/out-js/sdk-components.gen.js.map +1 -0
  261. package/out-js/sdk-development.gen.d.ts +1 -0
  262. package/out-js/sdk-development.gen.js +6 -0
  263. package/out-js/sdk-development.gen.js.map +1 -0
  264. package/out-js/social.gen.d.ts +1 -0
  265. package/out-js/social.gen.js +6 -0
  266. package/out-js/social.gen.js.map +1 -0
  267. package/out-js/social_service_v2.gen.d.ts +1 -0
  268. package/out-js/social_service_v2.gen.js +6 -0
  269. package/out-js/social_service_v2.gen.js.map +1 -0
  270. package/out-ts/about.gen.ts +3 -0
  271. package/out-ts/comms.gen.ts +3 -0
  272. package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
  273. package/out-ts/decentraland/common/colors.gen.ts +214 -0
  274. package/out-ts/decentraland/common/content_mapping.gen.ts +93 -0
  275. package/out-ts/decentraland/common/sdk/user_data.gen.ts +370 -0
  276. package/out-ts/decentraland/common/texture.gen.ts +500 -0
  277. package/out-ts/decentraland/common/vectors.gen.ts +377 -0
  278. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +295 -0
  279. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +327 -0
  280. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +161 -0
  281. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +1587 -0
  282. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +1264 -0
  283. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +982 -0
  284. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +608 -0
  285. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +397 -0
  286. package/out-ts/decentraland/kernel/apis/players.gen.ts +415 -0
  287. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +668 -0
  288. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +895 -0
  289. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +911 -0
  290. package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
  291. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +691 -0
  292. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +230 -0
  293. package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
  294. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +146 -0
  295. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +264 -0
  296. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +1440 -0
  297. package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +1029 -0
  298. package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1338 -0
  299. package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
  300. package/out-ts/decentraland/realm/about.gen.ts +1062 -0
  301. package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
  302. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
  303. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +122 -0
  304. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
  305. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
  306. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +115 -0
  307. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
  308. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +188 -0
  309. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +333 -0
  310. package/out-ts/decentraland/sdk/components/billboard.gen.ts +148 -0
  311. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +86 -0
  312. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +115 -0
  313. package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
  314. package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
  315. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +154 -0
  316. package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
  317. package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
  318. package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
  319. package/out-ts/decentraland/sdk/components/engine_info.gen.ts +119 -0
  320. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
  321. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
  322. package/out-ts/decentraland/sdk/components/material.gen.ts +629 -0
  323. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +534 -0
  324. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
  325. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
  326. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  327. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +310 -0
  328. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
  329. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
  330. package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
  331. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
  332. package/out-ts/decentraland/sdk/components/realm_info.gen.ts +152 -0
  333. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
  334. package/out-ts/decentraland/sdk/components/tween.gen.ts +648 -0
  335. package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
  336. package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
  337. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
  338. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +231 -0
  339. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
  340. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
  341. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
  342. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -0
  343. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1361 -0
  344. package/out-ts/decentraland/sdk/components/video_player.gen.ts +173 -0
  345. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +83 -0
  346. package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
  347. package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
  348. package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
  349. package/out-ts/decentraland/social/friendships/friendships.gen.ts +2798 -0
  350. package/out-ts/decentraland/social_service_v2/social_service.gen.ts +1709 -0
  351. package/out-ts/google/protobuf/descriptor.gen.ts +3470 -0
  352. package/out-ts/google/protobuf/empty.gen.ts +72 -0
  353. package/out-ts/quests.gen.ts +3 -0
  354. package/out-ts/sdk-apis.gen.ts +3 -0
  355. package/out-ts/sdk-components.gen.ts +3 -0
  356. package/out-ts/sdk-development.gen.ts +3 -0
  357. package/out-ts/social.gen.ts +3 -0
  358. package/out-ts/social_service_v2.gen.ts +3 -0
  359. package/package.json +33 -0
  360. package/proto/buf.yaml +47 -0
  361. package/proto/decentraland/common/border_rect.proto +18 -0
  362. package/proto/decentraland/common/colors.proto +15 -0
  363. package/proto/decentraland/common/content_mapping.proto +7 -0
  364. package/proto/decentraland/common/entity.proto +13 -0
  365. package/proto/decentraland/common/sdk/user_data.proto +25 -0
  366. package/proto/decentraland/common/texture.proto +40 -0
  367. package/proto/decentraland/common/vectors.proto +26 -0
  368. package/proto/decentraland/kernel/apis/comms_api.proto +25 -0
  369. package/proto/decentraland/kernel/apis/communications_controller.proto +23 -0
  370. package/proto/decentraland/kernel/apis/dev_tools.proto +15 -0
  371. package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
  372. package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
  373. package/proto/decentraland/kernel/apis/ethereum_controller.proto +64 -0
  374. package/proto/decentraland/kernel/apis/parcel_identity.proto +43 -0
  375. package/proto/decentraland/kernel/apis/permissions.proto +36 -0
  376. package/proto/decentraland/kernel/apis/players.proto +35 -0
  377. package/proto/decentraland/kernel/apis/portable_experiences.proto +55 -0
  378. package/proto/decentraland/kernel/apis/restricted_actions.proto +78 -0
  379. package/proto/decentraland/kernel/apis/runtime.proto +71 -0
  380. package/proto/decentraland/kernel/apis/scene.proto +16 -0
  381. package/proto/decentraland/kernel/apis/signed_fetch.proto +33 -0
  382. package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
  383. package/proto/decentraland/kernel/apis/testing.proto +100 -0
  384. package/proto/decentraland/kernel/apis/user_action_module.proto +13 -0
  385. package/proto/decentraland/kernel/apis/user_identity.proto +22 -0
  386. package/proto/decentraland/kernel/comms/rfc4/comms.proto +110 -0
  387. package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +104 -0
  388. package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
  389. package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
  390. package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
  391. package/proto/decentraland/kernel/comms/v3/archipelago.proto +86 -0
  392. package/proto/decentraland/kernel/comms/v3/comms.proto +64 -0
  393. package/proto/decentraland/quests/definitions.proto +185 -0
  394. package/proto/decentraland/realm/about.proto +73 -0
  395. package/proto/decentraland/sdk/components/README.md +32 -0
  396. package/proto/decentraland/sdk/components/Transform.md +25 -0
  397. package/proto/decentraland/sdk/components/animator.proto +31 -0
  398. package/proto/decentraland/sdk/components/audio_event.proto +12 -0
  399. package/proto/decentraland/sdk/components/audio_source.proto +31 -0
  400. package/proto/decentraland/sdk/components/audio_stream.proto +14 -0
  401. package/proto/decentraland/sdk/components/avatar_attach.proto +51 -0
  402. package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
  403. package/proto/decentraland/sdk/components/avatar_emote_command.proto +13 -0
  404. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
  405. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +32 -0
  406. package/proto/decentraland/sdk/components/avatar_shape.proto +42 -0
  407. package/proto/decentraland/sdk/components/billboard.proto +29 -0
  408. package/proto/decentraland/sdk/components/camera_mode.proto +12 -0
  409. package/proto/decentraland/sdk/components/camera_mode_area.proto +25 -0
  410. package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
  411. package/proto/decentraland/sdk/components/common/id.md +2 -0
  412. package/proto/decentraland/sdk/components/common/id.proto +8 -0
  413. package/proto/decentraland/sdk/components/common/input_action.proto +28 -0
  414. package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
  415. package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
  416. package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
  417. package/proto/decentraland/sdk/components/common/texts.proto +21 -0
  418. package/proto/decentraland/sdk/components/engine_info.proto +15 -0
  419. package/proto/decentraland/sdk/components/gltf_container.proto +19 -0
  420. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  421. package/proto/decentraland/sdk/components/material.proto +57 -0
  422. package/proto/decentraland/sdk/components/mesh_collider.proto +62 -0
  423. package/proto/decentraland/sdk/components/mesh_renderer.proto +43 -0
  424. package/proto/decentraland/sdk/components/nft_shape.proto +48 -0
  425. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  426. package/proto/decentraland/sdk/components/pointer_events.proto +37 -0
  427. package/proto/decentraland/sdk/components/pointer_events_result.proto +19 -0
  428. package/proto/decentraland/sdk/components/pointer_lock.proto +11 -0
  429. package/proto/decentraland/sdk/components/raycast.proto +58 -0
  430. package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
  431. package/proto/decentraland/sdk/components/realm_info.proto +14 -0
  432. package/proto/decentraland/sdk/components/text_shape.proto +45 -0
  433. package/proto/decentraland/sdk/components/tween.proto +74 -0
  434. package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
  435. package/proto/decentraland/sdk/components/tween_state.proto +18 -0
  436. package/proto/decentraland/sdk/components/ui_background.proto +34 -0
  437. package/proto/decentraland/sdk/components/ui_canvas_information.proto +24 -0
  438. package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
  439. package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
  440. package/proto/decentraland/sdk/components/ui_input.proto +20 -0
  441. package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
  442. package/proto/decentraland/sdk/components/ui_text.proto +26 -0
  443. package/proto/decentraland/sdk/components/ui_transform.proto +148 -0
  444. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  445. package/proto/decentraland/sdk/components/video_player.proto +16 -0
  446. package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
  447. package/proto/decentraland/sdk/development/local_development.proto +29 -0
  448. package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
  449. package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
  450. package/proto/decentraland/social/friendships/friendships.proto +162 -0
  451. package/proto/decentraland/social_service_v2/social_service.proto +111 -0
  452. package/proto/google/LICENSE +27 -0
  453. package/proto/google/README.md +1 -0
  454. package/proto/google/api/annotations.json +83 -0
  455. package/proto/google/api/annotations.proto +11 -0
  456. package/proto/google/api/http.json +86 -0
  457. package/proto/google/api/http.proto +31 -0
  458. package/proto/google/protobuf/api.json +118 -0
  459. package/proto/google/protobuf/api.proto +34 -0
  460. package/proto/google/protobuf/descriptor.json +739 -0
  461. package/proto/google/protobuf/descriptor.proto +286 -0
  462. package/proto/google/protobuf/source_context.json +20 -0
  463. package/proto/google/protobuf/source_context.proto +7 -0
  464. package/proto/google/protobuf/type.json +202 -0
  465. package/proto/google/protobuf/type.proto +89 -0
  466. package/public/about.proto +5 -0
  467. package/public/comms.proto +5 -0
  468. package/public/quests.proto +5 -0
  469. package/public/sdk-apis.proto +25 -0
  470. package/public/sdk-components.proto +42 -0
  471. package/public/sdk-development.proto +5 -0
  472. package/public/social.proto +4 -0
  473. package/public/social_service_v2.proto +4 -0
@@ -0,0 +1,39 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { PBTween } from "./tween.gen";
3
+ export declare const protobufPackage = "decentraland.sdk.components";
4
+ export declare enum TweenLoop {
5
+ TL_RESTART = 0,
6
+ TL_YOYO = 1,
7
+ UNRECOGNIZED = -1
8
+ }
9
+ export declare function tweenLoopFromJSON(object: any): TweenLoop;
10
+ export declare function tweenLoopToJSON(object: TweenLoop): string;
11
+ export interface PBTweenSequence {
12
+ sequence: PBTween[];
13
+ loop?: TweenLoop | undefined;
14
+ }
15
+ export declare namespace PBTweenSequence {
16
+ function encode(message: PBTweenSequence, writer?: _m0.Writer): _m0.Writer;
17
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBTweenSequence;
18
+ function fromJSON(object: any): PBTweenSequence;
19
+ function toJSON(message: PBTweenSequence): unknown;
20
+ function create<I extends Exact<DeepPartial<PBTweenSequence>, I>>(base?: I): PBTweenSequence;
21
+ function fromPartial<I extends Exact<DeepPartial<PBTweenSequence>, I>>(object: I): PBTweenSequence;
22
+ }
23
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
24
+ 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 {
25
+ $case: string;
26
+ } ? {
27
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
28
+ } & {
29
+ $case: T["$case"];
30
+ } : T extends {} ? {
31
+ [K in keyof T]?: DeepPartial<T[K]>;
32
+ } : Partial<T>;
33
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
34
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
35
+ [K in keyof P]: Exact<P[K], I[K]>;
36
+ } & {
37
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
38
+ };
39
+ export {};
@@ -0,0 +1,122 @@
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.PBTweenSequence = exports.TweenLoop = exports.protobufPackage = void 0;
7
+ exports.tweenLoopFromJSON = tweenLoopFromJSON;
8
+ exports.tweenLoopToJSON = tweenLoopToJSON;
9
+ /* eslint-disable */
10
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
+ const tween_gen_1 = require("./tween.gen");
12
+ exports.protobufPackage = "decentraland.sdk.components";
13
+ var TweenLoop;
14
+ (function (TweenLoop) {
15
+ TweenLoop[TweenLoop["TL_RESTART"] = 0] = "TL_RESTART";
16
+ TweenLoop[TweenLoop["TL_YOYO"] = 1] = "TL_YOYO";
17
+ TweenLoop[TweenLoop["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
18
+ })(TweenLoop || (exports.TweenLoop = TweenLoop = {}));
19
+ function tweenLoopFromJSON(object) {
20
+ switch (object) {
21
+ case 0:
22
+ case "TL_RESTART":
23
+ return TweenLoop.TL_RESTART;
24
+ case 1:
25
+ case "TL_YOYO":
26
+ return TweenLoop.TL_YOYO;
27
+ case -1:
28
+ case "UNRECOGNIZED":
29
+ default:
30
+ return TweenLoop.UNRECOGNIZED;
31
+ }
32
+ }
33
+ function tweenLoopToJSON(object) {
34
+ switch (object) {
35
+ case TweenLoop.TL_RESTART:
36
+ return "TL_RESTART";
37
+ case TweenLoop.TL_YOYO:
38
+ return "TL_YOYO";
39
+ case TweenLoop.UNRECOGNIZED:
40
+ default:
41
+ return "UNRECOGNIZED";
42
+ }
43
+ }
44
+ function createBasePBTweenSequence() {
45
+ return { sequence: [], loop: undefined };
46
+ }
47
+ var PBTweenSequence;
48
+ (function (PBTweenSequence) {
49
+ function encode(message, writer = minimal_1.default.Writer.create()) {
50
+ for (const v of message.sequence) {
51
+ tween_gen_1.PBTween.encode(v, writer.uint32(10).fork()).ldelim();
52
+ }
53
+ if (message.loop !== undefined) {
54
+ writer.uint32(16).int32(message.loop);
55
+ }
56
+ return writer;
57
+ }
58
+ PBTweenSequence.encode = encode;
59
+ function decode(input, length) {
60
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
61
+ let end = length === undefined ? reader.len : reader.pos + length;
62
+ const message = createBasePBTweenSequence();
63
+ while (reader.pos < end) {
64
+ const tag = reader.uint32();
65
+ switch (tag >>> 3) {
66
+ case 1:
67
+ if (tag !== 10) {
68
+ break;
69
+ }
70
+ message.sequence.push(tween_gen_1.PBTween.decode(reader, reader.uint32()));
71
+ continue;
72
+ case 2:
73
+ if (tag !== 16) {
74
+ break;
75
+ }
76
+ message.loop = reader.int32();
77
+ continue;
78
+ }
79
+ if ((tag & 7) === 4 || tag === 0) {
80
+ break;
81
+ }
82
+ reader.skipType(tag & 7);
83
+ }
84
+ return message;
85
+ }
86
+ PBTweenSequence.decode = decode;
87
+ function fromJSON(object) {
88
+ return {
89
+ sequence: Array.isArray(object === null || object === void 0 ? void 0 : object.sequence) ? object.sequence.map((e) => tween_gen_1.PBTween.fromJSON(e)) : [],
90
+ loop: isSet(object.loop) ? tweenLoopFromJSON(object.loop) : undefined,
91
+ };
92
+ }
93
+ PBTweenSequence.fromJSON = fromJSON;
94
+ function toJSON(message) {
95
+ const obj = {};
96
+ if (message.sequence) {
97
+ obj.sequence = message.sequence.map((e) => e ? tween_gen_1.PBTween.toJSON(e) : undefined);
98
+ }
99
+ else {
100
+ obj.sequence = [];
101
+ }
102
+ message.loop !== undefined && (obj.loop = message.loop !== undefined ? tweenLoopToJSON(message.loop) : undefined);
103
+ return obj;
104
+ }
105
+ PBTweenSequence.toJSON = toJSON;
106
+ function create(base) {
107
+ return PBTweenSequence.fromPartial(base !== null && base !== void 0 ? base : {});
108
+ }
109
+ PBTweenSequence.create = create;
110
+ function fromPartial(object) {
111
+ var _a, _b;
112
+ const message = createBasePBTweenSequence();
113
+ message.sequence = ((_a = object.sequence) === null || _a === void 0 ? void 0 : _a.map((e) => tween_gen_1.PBTween.fromPartial(e))) || [];
114
+ message.loop = (_b = object.loop) !== null && _b !== void 0 ? _b : undefined;
115
+ return message;
116
+ }
117
+ PBTweenSequence.fromPartial = fromPartial;
118
+ })(PBTweenSequence || (exports.PBTweenSequence = PBTweenSequence = {}));
119
+ function isSet(value) {
120
+ return value !== null && value !== undefined;
121
+ }
122
+ //# sourceMappingURL=tween_sequence.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tween_sequence.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/tween_sequence.gen.ts"],"names":[],"mappings":";;;;;;AAYA,8CAaC;AAED,0CAUC;AArCD,oBAAoB;AACpB,iEAAqC;AACrC,2CAAsC;AAEzB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,qDAAc,CAAA;IACd,+CAAW,CAAA;IACX,0DAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,SAAgB,iBAAiB,CAAC,MAAW;IAC3C,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,CAAC,CAAC;QACP,KAAK,YAAY;YACf,OAAO,SAAS,CAAC,UAAU,CAAC;QAC9B,KAAK,CAAC,CAAC;QACP,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC,OAAO,CAAC;QAC3B,KAAK,CAAC,CAAC,CAAC;QACR,KAAK,cAAc,CAAC;QACpB;YACE,OAAO,SAAS,CAAC,YAAY,CAAC;IAClC,CAAC;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AC;QACxC,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,2BAAW,cAK1B,CAAA;AACH,CAAC,EArEgB,eAAe,+BAAf,eAAe,QAqE/B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,40 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ export declare enum TweenStateStatus {
4
+ TS_ACTIVE = 0,
5
+ TS_COMPLETED = 1,
6
+ TS_PAUSED = 2,
7
+ UNRECOGNIZED = -1
8
+ }
9
+ export declare function tweenStateStatusFromJSON(object: any): TweenStateStatus;
10
+ export declare function tweenStateStatusToJSON(object: TweenStateStatus): string;
11
+ export interface PBTweenState {
12
+ state: TweenStateStatus;
13
+ /** between 0 and 1 */
14
+ currentTime: number;
15
+ }
16
+ export declare namespace PBTweenState {
17
+ function encode(message: PBTweenState, writer?: _m0.Writer): _m0.Writer;
18
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBTweenState;
19
+ function fromJSON(object: any): PBTweenState;
20
+ function toJSON(message: PBTweenState): unknown;
21
+ function create<I extends Exact<DeepPartial<PBTweenState>, I>>(base?: I): PBTweenState;
22
+ function fromPartial<I extends Exact<DeepPartial<PBTweenState>, I>>(object: I): PBTweenState;
23
+ }
24
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
25
+ 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 {
26
+ $case: string;
27
+ } ? {
28
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
29
+ } & {
30
+ $case: T["$case"];
31
+ } : T extends {} ? {
32
+ [K in keyof T]?: DeepPartial<T[K]>;
33
+ } : Partial<T>;
34
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
35
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
36
+ [K in keyof P]: Exact<P[K], I[K]>;
37
+ } & {
38
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
39
+ };
40
+ export {};
@@ -0,0 +1,122 @@
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.PBTweenState = exports.TweenStateStatus = exports.protobufPackage = void 0;
7
+ exports.tweenStateStatusFromJSON = tweenStateStatusFromJSON;
8
+ exports.tweenStateStatusToJSON = tweenStateStatusToJSON;
9
+ /* eslint-disable */
10
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
+ exports.protobufPackage = "decentraland.sdk.components";
12
+ var TweenStateStatus;
13
+ (function (TweenStateStatus) {
14
+ TweenStateStatus[TweenStateStatus["TS_ACTIVE"] = 0] = "TS_ACTIVE";
15
+ TweenStateStatus[TweenStateStatus["TS_COMPLETED"] = 1] = "TS_COMPLETED";
16
+ TweenStateStatus[TweenStateStatus["TS_PAUSED"] = 2] = "TS_PAUSED";
17
+ TweenStateStatus[TweenStateStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
18
+ })(TweenStateStatus || (exports.TweenStateStatus = TweenStateStatus = {}));
19
+ function tweenStateStatusFromJSON(object) {
20
+ switch (object) {
21
+ case 0:
22
+ case "TS_ACTIVE":
23
+ return TweenStateStatus.TS_ACTIVE;
24
+ case 1:
25
+ case "TS_COMPLETED":
26
+ return TweenStateStatus.TS_COMPLETED;
27
+ case 2:
28
+ case "TS_PAUSED":
29
+ return TweenStateStatus.TS_PAUSED;
30
+ case -1:
31
+ case "UNRECOGNIZED":
32
+ default:
33
+ return TweenStateStatus.UNRECOGNIZED;
34
+ }
35
+ }
36
+ function tweenStateStatusToJSON(object) {
37
+ switch (object) {
38
+ case TweenStateStatus.TS_ACTIVE:
39
+ return "TS_ACTIVE";
40
+ case TweenStateStatus.TS_COMPLETED:
41
+ return "TS_COMPLETED";
42
+ case TweenStateStatus.TS_PAUSED:
43
+ return "TS_PAUSED";
44
+ case TweenStateStatus.UNRECOGNIZED:
45
+ default:
46
+ return "UNRECOGNIZED";
47
+ }
48
+ }
49
+ function createBasePBTweenState() {
50
+ return { state: 0, currentTime: 0 };
51
+ }
52
+ var PBTweenState;
53
+ (function (PBTweenState) {
54
+ function encode(message, writer = minimal_1.default.Writer.create()) {
55
+ if (message.state !== 0) {
56
+ writer.uint32(8).int32(message.state);
57
+ }
58
+ if (message.currentTime !== 0) {
59
+ writer.uint32(21).float(message.currentTime);
60
+ }
61
+ return writer;
62
+ }
63
+ PBTweenState.encode = encode;
64
+ function decode(input, length) {
65
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
66
+ let end = length === undefined ? reader.len : reader.pos + length;
67
+ const message = createBasePBTweenState();
68
+ while (reader.pos < end) {
69
+ const tag = reader.uint32();
70
+ switch (tag >>> 3) {
71
+ case 1:
72
+ if (tag !== 8) {
73
+ break;
74
+ }
75
+ message.state = reader.int32();
76
+ continue;
77
+ case 2:
78
+ if (tag !== 21) {
79
+ break;
80
+ }
81
+ message.currentTime = reader.float();
82
+ continue;
83
+ }
84
+ if ((tag & 7) === 4 || tag === 0) {
85
+ break;
86
+ }
87
+ reader.skipType(tag & 7);
88
+ }
89
+ return message;
90
+ }
91
+ PBTweenState.decode = decode;
92
+ function fromJSON(object) {
93
+ return {
94
+ state: isSet(object.state) ? tweenStateStatusFromJSON(object.state) : 0,
95
+ currentTime: isSet(object.currentTime) ? Number(object.currentTime) : 0,
96
+ };
97
+ }
98
+ PBTweenState.fromJSON = fromJSON;
99
+ function toJSON(message) {
100
+ const obj = {};
101
+ message.state !== undefined && (obj.state = tweenStateStatusToJSON(message.state));
102
+ message.currentTime !== undefined && (obj.currentTime = message.currentTime);
103
+ return obj;
104
+ }
105
+ PBTweenState.toJSON = toJSON;
106
+ function create(base) {
107
+ return PBTweenState.fromPartial(base !== null && base !== void 0 ? base : {});
108
+ }
109
+ PBTweenState.create = create;
110
+ function fromPartial(object) {
111
+ var _a, _b;
112
+ const message = createBasePBTweenState();
113
+ message.state = (_a = object.state) !== null && _a !== void 0 ? _a : 0;
114
+ message.currentTime = (_b = object.currentTime) !== null && _b !== void 0 ? _b : 0;
115
+ return message;
116
+ }
117
+ PBTweenState.fromPartial = fromPartial;
118
+ })(PBTweenState || (exports.PBTweenState = PBTweenState = {}));
119
+ function isSet(value) {
120
+ return value !== null && value !== undefined;
121
+ }
122
+ //# sourceMappingURL=tween_state.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tween_state.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/tween_state.gen.ts"],"names":[],"mappings":";;;;;;AAYA,4DAgBC;AAED,wDAYC;AA1CD,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,iEAAa,CAAA;IACb,uEAAgB,CAAA;IAChB,iEAAa,CAAA;IACb,wEAAiB,CAAA;AACnB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,SAAgB,wBAAwB,CAAC,MAAW;IAClD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,CAAC,CAAC;QACP,KAAK,WAAW;YACd,OAAO,gBAAgB,CAAC,SAAS,CAAC;QACpC,KAAK,CAAC,CAAC;QACP,KAAK,cAAc;YACjB,OAAO,gBAAgB,CAAC,YAAY,CAAC;QACvC,KAAK,CAAC,CAAC;QACP,KAAK,WAAW;YACd,OAAO,gBAAgB,CAAC,SAAS,CAAC;QACpC,KAAK,CAAC,CAAC,CAAC;QACR,KAAK,cAAc,CAAC;QACpB;YACE,OAAO,gBAAgB,CAAC,YAAY,CAAC;IACzC,CAAC;AACH,CAAC;AAED,SAAgB,sBAAsB,CAAC,MAAwB;IAC7D,QAAQ,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AAI,CAAC,GAAG,CAAC,KAAK,GAAG,sBAAsB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QACnF,OAAO,CAAC,WAAW,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;QAC7E,OAAO,GAAG,CAAC;IACb,CAAC;IALe,mBAAM,SAKrB,CAAA;IAED,SAAgB,MAAM,CAAgD,IAAQ;QAC5E,OAAO,YAAY,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IAFe,mBAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAgD,MAAS;;QAClF,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;QACzC,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,CAAC,CAAC;QAClC,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,CAAC,CAAC;QAC9C,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,wBAAW,cAK1B,CAAA;AACH,CAAC,EAjEgB,YAAY,4BAAZ,YAAY,QAiE5B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,63 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { BorderRect } from "../../common/border_rect.gen";
3
+ import { Color4 } from "../../common/colors.gen";
4
+ import { TextureUnion } from "../../common/texture.gen";
5
+ export declare const protobufPackage = "decentraland.sdk.components";
6
+ export declare enum BackgroundTextureMode {
7
+ /**
8
+ * NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
9
+ * https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
10
+ * https://docs.unity3d.com/Manual/9SliceSprites.html
11
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
12
+ */
13
+ NINE_SLICES = 0,
14
+ /**
15
+ * CENTER - CENTER enables the texture to be rendered centered in relation to the
16
+ * element. If the element is smaller than the texture then the background
17
+ * should use the element as stencil to cut off the out-of-bounds area
18
+ */
19
+ CENTER = 1,
20
+ /**
21
+ * STRETCH - STRETCH enables the texture to cover all the area of the container,
22
+ * adopting its aspect ratio.
23
+ */
24
+ STRETCH = 2,
25
+ UNRECOGNIZED = -1
26
+ }
27
+ export declare function backgroundTextureModeFromJSON(object: any): BackgroundTextureMode;
28
+ export declare function backgroundTextureModeToJSON(object: BackgroundTextureMode): string;
29
+ export interface PBUiBackground {
30
+ /** default=(1.0, 1.0, 1.0, 1.0), pixel = color * sample2D(texture, uv) */
31
+ color?: Color4 | undefined;
32
+ texture?: TextureUnion | undefined;
33
+ textureMode: BackgroundTextureMode;
34
+ /** default=(1/3, 1/3, 1/3, 1/3) */
35
+ textureSlices?: BorderRect | undefined;
36
+ /** default=[0,0,0,1,1,0,1,0]: starting from bottom-left vertex clock-wise */
37
+ uvs: number[];
38
+ }
39
+ export declare namespace PBUiBackground {
40
+ function encode(message: PBUiBackground, writer?: _m0.Writer): _m0.Writer;
41
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
42
+ function fromJSON(object: any): PBUiBackground;
43
+ function toJSON(message: PBUiBackground): unknown;
44
+ function create<I extends Exact<DeepPartial<PBUiBackground>, I>>(base?: I): PBUiBackground;
45
+ function fromPartial<I extends Exact<DeepPartial<PBUiBackground>, I>>(object: I): PBUiBackground;
46
+ }
47
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
48
+ 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 {
49
+ $case: string;
50
+ } ? {
51
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
52
+ } & {
53
+ $case: T["$case"];
54
+ } : T extends {} ? {
55
+ [K in keyof T]?: DeepPartial<T[K]>;
56
+ } : Partial<T>;
57
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
58
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
59
+ [K in keyof P]: Exact<P[K], I[K]>;
60
+ } & {
61
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
62
+ };
63
+ export {};
@@ -0,0 +1,197 @@
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.PBUiBackground = exports.BackgroundTextureMode = exports.protobufPackage = void 0;
7
+ exports.backgroundTextureModeFromJSON = backgroundTextureModeFromJSON;
8
+ exports.backgroundTextureModeToJSON = backgroundTextureModeToJSON;
9
+ /* eslint-disable */
10
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
+ const border_rect_gen_1 = require("../../common/border_rect.gen");
12
+ const colors_gen_1 = require("../../common/colors.gen");
13
+ const texture_gen_1 = require("../../common/texture.gen");
14
+ exports.protobufPackage = "decentraland.sdk.components";
15
+ var BackgroundTextureMode;
16
+ (function (BackgroundTextureMode) {
17
+ /**
18
+ * NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
19
+ * https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
20
+ * https://docs.unity3d.com/Manual/9SliceSprites.html
21
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
22
+ */
23
+ BackgroundTextureMode[BackgroundTextureMode["NINE_SLICES"] = 0] = "NINE_SLICES";
24
+ /**
25
+ * CENTER - CENTER enables the texture to be rendered centered in relation to the
26
+ * element. If the element is smaller than the texture then the background
27
+ * should use the element as stencil to cut off the out-of-bounds area
28
+ */
29
+ BackgroundTextureMode[BackgroundTextureMode["CENTER"] = 1] = "CENTER";
30
+ /**
31
+ * STRETCH - STRETCH enables the texture to cover all the area of the container,
32
+ * adopting its aspect ratio.
33
+ */
34
+ BackgroundTextureMode[BackgroundTextureMode["STRETCH"] = 2] = "STRETCH";
35
+ BackgroundTextureMode[BackgroundTextureMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
36
+ })(BackgroundTextureMode || (exports.BackgroundTextureMode = BackgroundTextureMode = {}));
37
+ function backgroundTextureModeFromJSON(object) {
38
+ switch (object) {
39
+ case 0:
40
+ case "NINE_SLICES":
41
+ return BackgroundTextureMode.NINE_SLICES;
42
+ case 1:
43
+ case "CENTER":
44
+ return BackgroundTextureMode.CENTER;
45
+ case 2:
46
+ case "STRETCH":
47
+ return BackgroundTextureMode.STRETCH;
48
+ case -1:
49
+ case "UNRECOGNIZED":
50
+ default:
51
+ return BackgroundTextureMode.UNRECOGNIZED;
52
+ }
53
+ }
54
+ function backgroundTextureModeToJSON(object) {
55
+ switch (object) {
56
+ case BackgroundTextureMode.NINE_SLICES:
57
+ return "NINE_SLICES";
58
+ case BackgroundTextureMode.CENTER:
59
+ return "CENTER";
60
+ case BackgroundTextureMode.STRETCH:
61
+ return "STRETCH";
62
+ case BackgroundTextureMode.UNRECOGNIZED:
63
+ default:
64
+ return "UNRECOGNIZED";
65
+ }
66
+ }
67
+ function createBasePBUiBackground() {
68
+ return { color: undefined, texture: undefined, textureMode: 0, textureSlices: undefined, uvs: [] };
69
+ }
70
+ var PBUiBackground;
71
+ (function (PBUiBackground) {
72
+ function encode(message, writer = minimal_1.default.Writer.create()) {
73
+ if (message.color !== undefined) {
74
+ colors_gen_1.Color4.encode(message.color, writer.uint32(10).fork()).ldelim();
75
+ }
76
+ if (message.texture !== undefined) {
77
+ texture_gen_1.TextureUnion.encode(message.texture, writer.uint32(18).fork()).ldelim();
78
+ }
79
+ if (message.textureMode !== 0) {
80
+ writer.uint32(24).int32(message.textureMode);
81
+ }
82
+ if (message.textureSlices !== undefined) {
83
+ border_rect_gen_1.BorderRect.encode(message.textureSlices, writer.uint32(34).fork()).ldelim();
84
+ }
85
+ writer.uint32(42).fork();
86
+ for (const v of message.uvs) {
87
+ writer.float(v);
88
+ }
89
+ writer.ldelim();
90
+ return writer;
91
+ }
92
+ PBUiBackground.encode = encode;
93
+ function decode(input, length) {
94
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
95
+ let end = length === undefined ? reader.len : reader.pos + length;
96
+ const message = createBasePBUiBackground();
97
+ while (reader.pos < end) {
98
+ const tag = reader.uint32();
99
+ switch (tag >>> 3) {
100
+ case 1:
101
+ if (tag !== 10) {
102
+ break;
103
+ }
104
+ message.color = colors_gen_1.Color4.decode(reader, reader.uint32());
105
+ continue;
106
+ case 2:
107
+ if (tag !== 18) {
108
+ break;
109
+ }
110
+ message.texture = texture_gen_1.TextureUnion.decode(reader, reader.uint32());
111
+ continue;
112
+ case 3:
113
+ if (tag !== 24) {
114
+ break;
115
+ }
116
+ message.textureMode = reader.int32();
117
+ continue;
118
+ case 4:
119
+ if (tag !== 34) {
120
+ break;
121
+ }
122
+ message.textureSlices = border_rect_gen_1.BorderRect.decode(reader, reader.uint32());
123
+ continue;
124
+ case 5:
125
+ if (tag === 45) {
126
+ message.uvs.push(reader.float());
127
+ continue;
128
+ }
129
+ if (tag === 42) {
130
+ const end2 = reader.uint32() + reader.pos;
131
+ while (reader.pos < end2) {
132
+ message.uvs.push(reader.float());
133
+ }
134
+ continue;
135
+ }
136
+ break;
137
+ }
138
+ if ((tag & 7) === 4 || tag === 0) {
139
+ break;
140
+ }
141
+ reader.skipType(tag & 7);
142
+ }
143
+ return message;
144
+ }
145
+ PBUiBackground.decode = decode;
146
+ function fromJSON(object) {
147
+ return {
148
+ color: isSet(object.color) ? colors_gen_1.Color4.fromJSON(object.color) : undefined,
149
+ texture: isSet(object.texture) ? texture_gen_1.TextureUnion.fromJSON(object.texture) : undefined,
150
+ textureMode: isSet(object.textureMode) ? backgroundTextureModeFromJSON(object.textureMode) : 0,
151
+ textureSlices: isSet(object.textureSlices) ? border_rect_gen_1.BorderRect.fromJSON(object.textureSlices) : undefined,
152
+ uvs: Array.isArray(object === null || object === void 0 ? void 0 : object.uvs) ? object.uvs.map((e) => Number(e)) : [],
153
+ };
154
+ }
155
+ PBUiBackground.fromJSON = fromJSON;
156
+ function toJSON(message) {
157
+ const obj = {};
158
+ message.color !== undefined && (obj.color = message.color ? colors_gen_1.Color4.toJSON(message.color) : undefined);
159
+ message.texture !== undefined && (obj.texture = message.texture ? texture_gen_1.TextureUnion.toJSON(message.texture) : undefined);
160
+ message.textureMode !== undefined && (obj.textureMode = backgroundTextureModeToJSON(message.textureMode));
161
+ message.textureSlices !== undefined &&
162
+ (obj.textureSlices = message.textureSlices ? border_rect_gen_1.BorderRect.toJSON(message.textureSlices) : undefined);
163
+ if (message.uvs) {
164
+ obj.uvs = message.uvs.map((e) => e);
165
+ }
166
+ else {
167
+ obj.uvs = [];
168
+ }
169
+ return obj;
170
+ }
171
+ PBUiBackground.toJSON = toJSON;
172
+ function create(base) {
173
+ return PBUiBackground.fromPartial(base !== null && base !== void 0 ? base : {});
174
+ }
175
+ PBUiBackground.create = create;
176
+ function fromPartial(object) {
177
+ var _a, _b;
178
+ const message = createBasePBUiBackground();
179
+ message.color = (object.color !== undefined && object.color !== null)
180
+ ? colors_gen_1.Color4.fromPartial(object.color)
181
+ : undefined;
182
+ message.texture = (object.texture !== undefined && object.texture !== null)
183
+ ? texture_gen_1.TextureUnion.fromPartial(object.texture)
184
+ : undefined;
185
+ message.textureMode = (_a = object.textureMode) !== null && _a !== void 0 ? _a : 0;
186
+ message.textureSlices = (object.textureSlices !== undefined && object.textureSlices !== null)
187
+ ? border_rect_gen_1.BorderRect.fromPartial(object.textureSlices)
188
+ : undefined;
189
+ message.uvs = ((_b = object.uvs) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
190
+ return message;
191
+ }
192
+ PBUiBackground.fromPartial = fromPartial;
193
+ })(PBUiBackground || (exports.PBUiBackground = PBUiBackground = {}));
194
+ function isSet(value) {
195
+ return value !== null && value !== undefined;
196
+ }
197
+ //# sourceMappingURL=ui_background.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui_background.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_background.gen.ts"],"names":[],"mappings":";;;;;;AA8BA,sEAgBC;AAED,kEAYC;AA5DD,oBAAoB;AACpB,iEAAqC;AACrC,kEAA0D;AAC1D,wDAAiD;AACjD,0DAAwD;AAE3C,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,IAAY,qBAoBX;AApBD,WAAY,qBAAqB;IAC/B;;;;;OAKG;IACH,+EAAe,CAAA;IACf;;;;OAIG;IACH,qEAAU,CAAA;IACV;;;OAGG;IACH,uEAAW,CAAA;IACX,kFAAiB,CAAA;AACnB,CAAC,EApBW,qBAAqB,qCAArB,qBAAqB,QAoBhC;AAED,SAAgB,6BAA6B,CAAC,MAAW;IACvD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,CAAC,CAAC;QACP,KAAK,aAAa;YAChB,OAAO,qBAAqB,CAAC,WAAW,CAAC;QAC3C,KAAK,CAAC,CAAC;QACP,KAAK,QAAQ;YACX,OAAO,qBAAqB,CAAC,MAAM,CAAC;QACtC,KAAK,CAAC,CAAC;QACP,KAAK,SAAS;YACZ,OAAO,qBAAqB,CAAC,OAAO,CAAC;QACvC,KAAK,CAAC,CAAC,CAAC;QACR,KAAK,cAAc,CAAC;QACpB;YACE,OAAO,qBAAqB,CAAC,YAAY,CAAC;IAC9C,CAAC;AACH,CAAC;AAED,SAAgB,2BAA2B,CAAC,MAA6B;IACvE,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,qBAAqB,CAAC,WAAW;YACpC,OAAO,aAAa,CAAC;QACvB,KAAK,qBAAqB,CAAC,MAAM;YAC/B,OAAO,QAAQ,CAAC;QAClB,KAAK,qBAAqB,CAAC,OAAO;YAChC,OAAO,SAAS,CAAC;QACnB,KAAK,qBAAqB,CA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AC9C,OAAO,CAAC,aAAa,GAAG,CAAC,MAAM,CAAC,aAAa,KAAK,SAAS,IAAI,MAAM,CAAC,aAAa,KAAK,IAAI,CAAC;YAC3F,CAAC,CAAC,4BAAU,CAAC,WAAW,CAAC,MAAM,CAAC,aAAa,CAAC;YAC9C,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,GAAG,GAAG,CAAA,MAAA,MAAM,CAAC,GAAG,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAC9C,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,0BAAW,cAc1B,CAAA;AACH,CAAC,EA/HgB,cAAc,8BAAd,cAAc,QA+H9B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,45 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Color4 } from "../../common/colors.gen";
3
+ import { Font, TextAlignMode } from "./common/texts.gen";
4
+ export declare const protobufPackage = "decentraland.sdk.components";
5
+ export interface PBUiDropdown {
6
+ acceptEmpty: boolean;
7
+ emptyLabel?: string | undefined;
8
+ options: string[];
9
+ /** default=null when accept_empty==true; default=0 when accept_empty==false */
10
+ selectedIndex?: number | undefined;
11
+ disabled: boolean;
12
+ /** default=(0.0,0.0,0.0,1.0) */
13
+ color?: Color4 | undefined;
14
+ /** default='center' */
15
+ textAlign?: TextAlignMode | undefined;
16
+ /** default=0 */
17
+ font?: Font | undefined;
18
+ /** default=10 */
19
+ fontSize?: number | undefined;
20
+ }
21
+ export declare namespace PBUiDropdown {
22
+ function encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
23
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
24
+ function fromJSON(object: any): PBUiDropdown;
25
+ function toJSON(message: PBUiDropdown): unknown;
26
+ function create<I extends Exact<DeepPartial<PBUiDropdown>, I>>(base?: I): PBUiDropdown;
27
+ function fromPartial<I extends Exact<DeepPartial<PBUiDropdown>, I>>(object: I): PBUiDropdown;
28
+ }
29
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
30
+ 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 {
31
+ $case: string;
32
+ } ? {
33
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
34
+ } & {
35
+ $case: T["$case"];
36
+ } : T extends {} ? {
37
+ [K in keyof T]?: DeepPartial<T[K]>;
38
+ } : Partial<T>;
39
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
40
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
41
+ [K in keyof P]: Exact<P[K], I[K]>;
42
+ } & {
43
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
44
+ };
45
+ export {};