@dcl/protocol 1.0.0-2611981047.commit-6f422a3 → 1.0.0-26120507017.commit-56ef588

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 (526) hide show
  1. package/README.md +68 -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 +282 -0
  57. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +977 -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 +313 -0
  81. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1973 -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 +74 -0
  120. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +264 -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 +129 -0
  165. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +470 -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 +1064 -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 +2225 -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 +349 -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 +535 -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 +23 -10
  363. package/proto/buf.yaml +47 -0
  364. package/proto/decentraland/common/border_rect.proto +18 -0
  365. package/proto/decentraland/common/colors.proto +21 -0
  366. package/proto/decentraland/common/content_mapping.proto +7 -0
  367. package/proto/decentraland/common/entity.proto +13 -0
  368. package/proto/decentraland/common/floats.proto +8 -0
  369. package/{kernel/apis/UserIdentity.proto → proto/decentraland/common/sdk/user_data.proto} +1 -17
  370. package/proto/decentraland/common/texture.proto +45 -0
  371. package/proto/decentraland/common/vectors.proto +26 -0
  372. package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
  373. package/proto/decentraland/kernel/apis/communications_controller.proto +29 -0
  374. package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +3 -0
  375. package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
  376. package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
  377. package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +12 -1
  378. package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +6 -5
  379. package/proto/decentraland/kernel/apis/permissions.proto +36 -0
  380. package/proto/decentraland/kernel/apis/players.proto +35 -0
  381. package/proto/decentraland/kernel/apis/portable_experiences.proto +55 -0
  382. package/proto/decentraland/kernel/apis/restricted_actions.proto +93 -0
  383. package/proto/decentraland/kernel/apis/runtime.proto +71 -0
  384. package/proto/decentraland/kernel/apis/scene.proto +16 -0
  385. package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +9 -0
  386. package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
  387. package/proto/decentraland/kernel/apis/testing.proto +100 -0
  388. package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +2 -0
  389. package/proto/decentraland/kernel/apis/user_identity.proto +22 -0
  390. package/proto/decentraland/kernel/comms/rfc4/comms.proto +165 -0
  391. package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +104 -0
  392. package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
  393. package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
  394. package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
  395. package/proto/decentraland/kernel/comms/v3/archipelago.proto +86 -0
  396. package/proto/decentraland/kernel/comms/v3/comms.proto +64 -0
  397. package/proto/decentraland/quests/definitions.proto +185 -0
  398. package/proto/decentraland/realm/about.proto +138 -0
  399. package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
  400. package/proto/decentraland/sdk/components/animator.proto +31 -0
  401. package/proto/decentraland/sdk/components/asset_load.proto +10 -0
  402. package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
  403. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  404. package/proto/decentraland/sdk/components/audio_event.proto +12 -0
  405. package/proto/decentraland/sdk/components/audio_source.proto +31 -0
  406. package/proto/decentraland/sdk/components/audio_stream.proto +22 -0
  407. package/proto/decentraland/sdk/components/avatar_attach.proto +51 -0
  408. package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
  409. package/proto/decentraland/sdk/components/avatar_emote_command.proto +13 -0
  410. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
  411. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +18 -0
  412. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +32 -0
  413. package/proto/decentraland/sdk/components/avatar_shape.proto +44 -0
  414. package/proto/decentraland/sdk/components/billboard.proto +29 -0
  415. package/proto/decentraland/sdk/components/camera_mode.proto +12 -0
  416. package/proto/decentraland/sdk/components/camera_mode_area.proto +25 -0
  417. package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
  418. package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
  419. package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
  420. package/proto/decentraland/sdk/components/common/input_action.proto +37 -0
  421. package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
  422. package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
  423. package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
  424. package/proto/decentraland/sdk/components/common/texts.proto +21 -0
  425. package/proto/decentraland/sdk/components/engine_info.proto +15 -0
  426. package/proto/decentraland/sdk/components/gltf_container.proto +19 -0
  427. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  428. package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
  429. package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
  430. package/proto/decentraland/sdk/components/light_source.proto +28 -0
  431. package/proto/decentraland/sdk/components/main_camera.proto +11 -0
  432. package/proto/decentraland/sdk/components/map_pin.proto +16 -0
  433. package/proto/decentraland/sdk/components/material.proto +57 -0
  434. package/proto/decentraland/sdk/components/mesh_collider.proto +62 -0
  435. package/proto/decentraland/sdk/components/mesh_renderer.proto +43 -0
  436. package/proto/decentraland/sdk/components/nft_shape.proto +48 -0
  437. package/proto/decentraland/sdk/components/particle_system.proto +133 -0
  438. package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
  439. package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
  440. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  441. package/proto/decentraland/sdk/components/pointer_events.proto +64 -0
  442. package/proto/decentraland/sdk/components/pointer_events_result.proto +19 -0
  443. package/proto/decentraland/sdk/components/pointer_lock.proto +11 -0
  444. package/proto/decentraland/sdk/components/primary_pointer_info.proto +39 -0
  445. package/proto/decentraland/sdk/components/raycast.proto +58 -0
  446. package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
  447. package/proto/decentraland/sdk/components/realm_info.proto +15 -0
  448. package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
  449. package/proto/decentraland/sdk/components/text_shape.proto +45 -0
  450. package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
  451. package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
  452. package/proto/decentraland/sdk/components/tween.proto +117 -0
  453. package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
  454. package/proto/decentraland/sdk/components/tween_state.proto +18 -0
  455. package/proto/decentraland/sdk/components/ui_background.proto +34 -0
  456. package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
  457. package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
  458. package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
  459. package/proto/decentraland/sdk/components/ui_input.proto +20 -0
  460. package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
  461. package/proto/decentraland/sdk/components/ui_text.proto +26 -0
  462. package/proto/decentraland/sdk/components/ui_transform.proto +178 -0
  463. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  464. package/proto/decentraland/sdk/components/video_player.proto +24 -0
  465. package/proto/decentraland/sdk/components/virtual_camera.proto +16 -0
  466. package/proto/decentraland/sdk/components/visibility_component.proto +16 -0
  467. package/proto/decentraland/sdk/development/local_development.proto +29 -0
  468. package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
  469. package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
  470. package/proto/decentraland/social_service/errors.proto +30 -0
  471. package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
  472. package/proto/decentraland/social_service/v2/social_service_v2.proto +721 -0
  473. package/proto/google/LICENSE +27 -0
  474. package/proto/google/README.md +1 -0
  475. package/proto/google/api/annotations.json +83 -0
  476. package/proto/google/api/annotations.proto +11 -0
  477. package/proto/google/api/http.json +86 -0
  478. package/proto/google/api/http.proto +31 -0
  479. package/proto/google/protobuf/api.json +118 -0
  480. package/proto/google/protobuf/api.proto +34 -0
  481. package/proto/google/protobuf/descriptor.json +739 -0
  482. package/proto/google/protobuf/descriptor.proto +286 -0
  483. package/proto/google/protobuf/source_context.json +20 -0
  484. package/proto/google/protobuf/source_context.proto +7 -0
  485. package/proto/google/protobuf/type.json +202 -0
  486. package/proto/google/protobuf/type.proto +89 -0
  487. package/public/about.proto +5 -0
  488. package/public/comms.proto +5 -0
  489. package/public/quests.proto +5 -0
  490. package/public/sdk-apis.proto +25 -0
  491. package/public/sdk-components.proto +43 -0
  492. package/public/sdk-development.proto +5 -0
  493. package/public/social.proto +6 -0
  494. package/ecs/components/Animator.proto +0 -18
  495. package/ecs/components/AudioSource.proto +0 -13
  496. package/ecs/components/AudioStream.proto +0 -10
  497. package/ecs/components/BoxShape.proto +0 -11
  498. package/ecs/components/CylinderShape.proto +0 -12
  499. package/ecs/components/GLTFShape.proto +0 -11
  500. package/ecs/components/NFTShape.proto +0 -16
  501. package/ecs/components/OnPointerDown.proto +0 -11
  502. package/ecs/components/OnPointerDownResult.proto +0 -16
  503. package/ecs/components/OnPointerUp.proto +0 -11
  504. package/ecs/components/OnPointerUpResult.proto +0 -16
  505. package/ecs/components/PlaneShape.proto +0 -11
  506. package/ecs/components/SphereShape.proto +0 -10
  507. package/ecs/components/TextShape.proto +0 -33
  508. package/ecs/components/UiTransform.proto +0 -159
  509. package/ecs/components/common/Color3.proto +0 -8
  510. package/ecs/components/common/Vector3.proto +0 -7
  511. package/kernel/apis/CommunicationsController.proto +0 -11
  512. package/kernel/apis/EngineAPI.proto +0 -184
  513. package/kernel/apis/EnvironmentAPI.proto +0 -68
  514. package/kernel/apis/ExperimentalAPI.proto +0 -16
  515. package/kernel/apis/Permissions.proto +0 -30
  516. package/kernel/apis/Players.proto +0 -28
  517. package/kernel/apis/PortableExperiences.proto +0 -40
  518. package/kernel/apis/RestrictedActions.proto +0 -25
  519. package/kernel/apis/SceneStateStorageController.proto +0 -114
  520. package/kernel/apis/SocialController.proto +0 -15
  521. package/kernel/comms/v1/broker.proto +0 -114
  522. package/kernel/comms/v1/comms.proto +0 -68
  523. package/kernel/comms/v2/comms.proto +0 -59
  524. package/renderer-protocol/RendererProtocol.proto +0 -15
  525. /package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
  526. /package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
@@ -0,0 +1,1213 @@
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.TextureMoveContinuous = exports.MoveContinuous = exports.RotateContinuous = exports.TextureMove = exports.MoveRotateScale = exports.Scale = exports.Rotate = exports.Move = exports.PBTween = exports.EasingFunction = exports.TextureMovementType = exports.protobufPackage = void 0;
7
+ exports.textureMovementTypeFromJSON = textureMovementTypeFromJSON;
8
+ exports.textureMovementTypeToJSON = textureMovementTypeToJSON;
9
+ exports.easingFunctionFromJSON = easingFunctionFromJSON;
10
+ exports.easingFunctionToJSON = easingFunctionToJSON;
11
+ /* eslint-disable */
12
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
13
+ const vectors_gen_1 = require("../../common/vectors.gen");
14
+ exports.protobufPackage = "decentraland.sdk.components";
15
+ var TextureMovementType;
16
+ (function (TextureMovementType) {
17
+ /** TMT_OFFSET - default = TextureMovementType.TMT_OFFSET */
18
+ TextureMovementType[TextureMovementType["TMT_OFFSET"] = 0] = "TMT_OFFSET";
19
+ TextureMovementType[TextureMovementType["TMT_TILING"] = 1] = "TMT_TILING";
20
+ TextureMovementType[TextureMovementType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
+ })(TextureMovementType || (exports.TextureMovementType = TextureMovementType = {}));
22
+ function textureMovementTypeFromJSON(object) {
23
+ switch (object) {
24
+ case 0:
25
+ case "TMT_OFFSET":
26
+ return TextureMovementType.TMT_OFFSET;
27
+ case 1:
28
+ case "TMT_TILING":
29
+ return TextureMovementType.TMT_TILING;
30
+ case -1:
31
+ case "UNRECOGNIZED":
32
+ default:
33
+ return TextureMovementType.UNRECOGNIZED;
34
+ }
35
+ }
36
+ function textureMovementTypeToJSON(object) {
37
+ switch (object) {
38
+ case TextureMovementType.TMT_OFFSET:
39
+ return "TMT_OFFSET";
40
+ case TextureMovementType.TMT_TILING:
41
+ return "TMT_TILING";
42
+ case TextureMovementType.UNRECOGNIZED:
43
+ default:
44
+ return "UNRECOGNIZED";
45
+ }
46
+ }
47
+ /**
48
+ * Implementation guidelines for these easing functions can be found
49
+ * at https://github.com/ai/easings.net/blob/6fcd5f852a470bf1a7890e8178afa0f471d5f2ec/src/easings/easingsFunctions.ts
50
+ */
51
+ var EasingFunction;
52
+ (function (EasingFunction) {
53
+ /** EF_LINEAR - default */
54
+ EasingFunction[EasingFunction["EF_LINEAR"] = 0] = "EF_LINEAR";
55
+ EasingFunction[EasingFunction["EF_EASEINQUAD"] = 1] = "EF_EASEINQUAD";
56
+ EasingFunction[EasingFunction["EF_EASEOUTQUAD"] = 2] = "EF_EASEOUTQUAD";
57
+ EasingFunction[EasingFunction["EF_EASEQUAD"] = 3] = "EF_EASEQUAD";
58
+ EasingFunction[EasingFunction["EF_EASEINSINE"] = 4] = "EF_EASEINSINE";
59
+ EasingFunction[EasingFunction["EF_EASEOUTSINE"] = 5] = "EF_EASEOUTSINE";
60
+ EasingFunction[EasingFunction["EF_EASESINE"] = 6] = "EF_EASESINE";
61
+ EasingFunction[EasingFunction["EF_EASEINEXPO"] = 7] = "EF_EASEINEXPO";
62
+ EasingFunction[EasingFunction["EF_EASEOUTEXPO"] = 8] = "EF_EASEOUTEXPO";
63
+ EasingFunction[EasingFunction["EF_EASEEXPO"] = 9] = "EF_EASEEXPO";
64
+ EasingFunction[EasingFunction["EF_EASEINELASTIC"] = 10] = "EF_EASEINELASTIC";
65
+ EasingFunction[EasingFunction["EF_EASEOUTELASTIC"] = 11] = "EF_EASEOUTELASTIC";
66
+ EasingFunction[EasingFunction["EF_EASEELASTIC"] = 12] = "EF_EASEELASTIC";
67
+ EasingFunction[EasingFunction["EF_EASEINBOUNCE"] = 13] = "EF_EASEINBOUNCE";
68
+ EasingFunction[EasingFunction["EF_EASEOUTBOUNCE"] = 14] = "EF_EASEOUTBOUNCE";
69
+ EasingFunction[EasingFunction["EF_EASEBOUNCE"] = 15] = "EF_EASEBOUNCE";
70
+ EasingFunction[EasingFunction["EF_EASEINCUBIC"] = 16] = "EF_EASEINCUBIC";
71
+ EasingFunction[EasingFunction["EF_EASEOUTCUBIC"] = 17] = "EF_EASEOUTCUBIC";
72
+ EasingFunction[EasingFunction["EF_EASECUBIC"] = 18] = "EF_EASECUBIC";
73
+ EasingFunction[EasingFunction["EF_EASEINQUART"] = 19] = "EF_EASEINQUART";
74
+ EasingFunction[EasingFunction["EF_EASEOUTQUART"] = 20] = "EF_EASEOUTQUART";
75
+ EasingFunction[EasingFunction["EF_EASEQUART"] = 21] = "EF_EASEQUART";
76
+ EasingFunction[EasingFunction["EF_EASEINQUINT"] = 22] = "EF_EASEINQUINT";
77
+ EasingFunction[EasingFunction["EF_EASEOUTQUINT"] = 23] = "EF_EASEOUTQUINT";
78
+ EasingFunction[EasingFunction["EF_EASEQUINT"] = 24] = "EF_EASEQUINT";
79
+ EasingFunction[EasingFunction["EF_EASEINCIRC"] = 25] = "EF_EASEINCIRC";
80
+ EasingFunction[EasingFunction["EF_EASEOUTCIRC"] = 26] = "EF_EASEOUTCIRC";
81
+ EasingFunction[EasingFunction["EF_EASECIRC"] = 27] = "EF_EASECIRC";
82
+ EasingFunction[EasingFunction["EF_EASEINBACK"] = 28] = "EF_EASEINBACK";
83
+ EasingFunction[EasingFunction["EF_EASEOUTBACK"] = 29] = "EF_EASEOUTBACK";
84
+ EasingFunction[EasingFunction["EF_EASEBACK"] = 30] = "EF_EASEBACK";
85
+ EasingFunction[EasingFunction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
86
+ })(EasingFunction || (exports.EasingFunction = EasingFunction = {}));
87
+ function easingFunctionFromJSON(object) {
88
+ switch (object) {
89
+ case 0:
90
+ case "EF_LINEAR":
91
+ return EasingFunction.EF_LINEAR;
92
+ case 1:
93
+ case "EF_EASEINQUAD":
94
+ return EasingFunction.EF_EASEINQUAD;
95
+ case 2:
96
+ case "EF_EASEOUTQUAD":
97
+ return EasingFunction.EF_EASEOUTQUAD;
98
+ case 3:
99
+ case "EF_EASEQUAD":
100
+ return EasingFunction.EF_EASEQUAD;
101
+ case 4:
102
+ case "EF_EASEINSINE":
103
+ return EasingFunction.EF_EASEINSINE;
104
+ case 5:
105
+ case "EF_EASEOUTSINE":
106
+ return EasingFunction.EF_EASEOUTSINE;
107
+ case 6:
108
+ case "EF_EASESINE":
109
+ return EasingFunction.EF_EASESINE;
110
+ case 7:
111
+ case "EF_EASEINEXPO":
112
+ return EasingFunction.EF_EASEINEXPO;
113
+ case 8:
114
+ case "EF_EASEOUTEXPO":
115
+ return EasingFunction.EF_EASEOUTEXPO;
116
+ case 9:
117
+ case "EF_EASEEXPO":
118
+ return EasingFunction.EF_EASEEXPO;
119
+ case 10:
120
+ case "EF_EASEINELASTIC":
121
+ return EasingFunction.EF_EASEINELASTIC;
122
+ case 11:
123
+ case "EF_EASEOUTELASTIC":
124
+ return EasingFunction.EF_EASEOUTELASTIC;
125
+ case 12:
126
+ case "EF_EASEELASTIC":
127
+ return EasingFunction.EF_EASEELASTIC;
128
+ case 13:
129
+ case "EF_EASEINBOUNCE":
130
+ return EasingFunction.EF_EASEINBOUNCE;
131
+ case 14:
132
+ case "EF_EASEOUTBOUNCE":
133
+ return EasingFunction.EF_EASEOUTBOUNCE;
134
+ case 15:
135
+ case "EF_EASEBOUNCE":
136
+ return EasingFunction.EF_EASEBOUNCE;
137
+ case 16:
138
+ case "EF_EASEINCUBIC":
139
+ return EasingFunction.EF_EASEINCUBIC;
140
+ case 17:
141
+ case "EF_EASEOUTCUBIC":
142
+ return EasingFunction.EF_EASEOUTCUBIC;
143
+ case 18:
144
+ case "EF_EASECUBIC":
145
+ return EasingFunction.EF_EASECUBIC;
146
+ case 19:
147
+ case "EF_EASEINQUART":
148
+ return EasingFunction.EF_EASEINQUART;
149
+ case 20:
150
+ case "EF_EASEOUTQUART":
151
+ return EasingFunction.EF_EASEOUTQUART;
152
+ case 21:
153
+ case "EF_EASEQUART":
154
+ return EasingFunction.EF_EASEQUART;
155
+ case 22:
156
+ case "EF_EASEINQUINT":
157
+ return EasingFunction.EF_EASEINQUINT;
158
+ case 23:
159
+ case "EF_EASEOUTQUINT":
160
+ return EasingFunction.EF_EASEOUTQUINT;
161
+ case 24:
162
+ case "EF_EASEQUINT":
163
+ return EasingFunction.EF_EASEQUINT;
164
+ case 25:
165
+ case "EF_EASEINCIRC":
166
+ return EasingFunction.EF_EASEINCIRC;
167
+ case 26:
168
+ case "EF_EASEOUTCIRC":
169
+ return EasingFunction.EF_EASEOUTCIRC;
170
+ case 27:
171
+ case "EF_EASECIRC":
172
+ return EasingFunction.EF_EASECIRC;
173
+ case 28:
174
+ case "EF_EASEINBACK":
175
+ return EasingFunction.EF_EASEINBACK;
176
+ case 29:
177
+ case "EF_EASEOUTBACK":
178
+ return EasingFunction.EF_EASEOUTBACK;
179
+ case 30:
180
+ case "EF_EASEBACK":
181
+ return EasingFunction.EF_EASEBACK;
182
+ case -1:
183
+ case "UNRECOGNIZED":
184
+ default:
185
+ return EasingFunction.UNRECOGNIZED;
186
+ }
187
+ }
188
+ function easingFunctionToJSON(object) {
189
+ switch (object) {
190
+ case EasingFunction.EF_LINEAR:
191
+ return "EF_LINEAR";
192
+ case EasingFunction.EF_EASEINQUAD:
193
+ return "EF_EASEINQUAD";
194
+ case EasingFunction.EF_EASEOUTQUAD:
195
+ return "EF_EASEOUTQUAD";
196
+ case EasingFunction.EF_EASEQUAD:
197
+ return "EF_EASEQUAD";
198
+ case EasingFunction.EF_EASEINSINE:
199
+ return "EF_EASEINSINE";
200
+ case EasingFunction.EF_EASEOUTSINE:
201
+ return "EF_EASEOUTSINE";
202
+ case EasingFunction.EF_EASESINE:
203
+ return "EF_EASESINE";
204
+ case EasingFunction.EF_EASEINEXPO:
205
+ return "EF_EASEINEXPO";
206
+ case EasingFunction.EF_EASEOUTEXPO:
207
+ return "EF_EASEOUTEXPO";
208
+ case EasingFunction.EF_EASEEXPO:
209
+ return "EF_EASEEXPO";
210
+ case EasingFunction.EF_EASEINELASTIC:
211
+ return "EF_EASEINELASTIC";
212
+ case EasingFunction.EF_EASEOUTELASTIC:
213
+ return "EF_EASEOUTELASTIC";
214
+ case EasingFunction.EF_EASEELASTIC:
215
+ return "EF_EASEELASTIC";
216
+ case EasingFunction.EF_EASEINBOUNCE:
217
+ return "EF_EASEINBOUNCE";
218
+ case EasingFunction.EF_EASEOUTBOUNCE:
219
+ return "EF_EASEOUTBOUNCE";
220
+ case EasingFunction.EF_EASEBOUNCE:
221
+ return "EF_EASEBOUNCE";
222
+ case EasingFunction.EF_EASEINCUBIC:
223
+ return "EF_EASEINCUBIC";
224
+ case EasingFunction.EF_EASEOUTCUBIC:
225
+ return "EF_EASEOUTCUBIC";
226
+ case EasingFunction.EF_EASECUBIC:
227
+ return "EF_EASECUBIC";
228
+ case EasingFunction.EF_EASEINQUART:
229
+ return "EF_EASEINQUART";
230
+ case EasingFunction.EF_EASEOUTQUART:
231
+ return "EF_EASEOUTQUART";
232
+ case EasingFunction.EF_EASEQUART:
233
+ return "EF_EASEQUART";
234
+ case EasingFunction.EF_EASEINQUINT:
235
+ return "EF_EASEINQUINT";
236
+ case EasingFunction.EF_EASEOUTQUINT:
237
+ return "EF_EASEOUTQUINT";
238
+ case EasingFunction.EF_EASEQUINT:
239
+ return "EF_EASEQUINT";
240
+ case EasingFunction.EF_EASEINCIRC:
241
+ return "EF_EASEINCIRC";
242
+ case EasingFunction.EF_EASEOUTCIRC:
243
+ return "EF_EASEOUTCIRC";
244
+ case EasingFunction.EF_EASECIRC:
245
+ return "EF_EASECIRC";
246
+ case EasingFunction.EF_EASEINBACK:
247
+ return "EF_EASEINBACK";
248
+ case EasingFunction.EF_EASEOUTBACK:
249
+ return "EF_EASEOUTBACK";
250
+ case EasingFunction.EF_EASEBACK:
251
+ return "EF_EASEBACK";
252
+ case EasingFunction.UNRECOGNIZED:
253
+ default:
254
+ return "UNRECOGNIZED";
255
+ }
256
+ }
257
+ function createBasePBTween() {
258
+ return { duration: 0, easingFunction: 0, mode: undefined, playing: undefined, currentTime: undefined };
259
+ }
260
+ var PBTween;
261
+ (function (PBTween) {
262
+ function encode(message, writer = minimal_1.default.Writer.create()) {
263
+ var _a;
264
+ if (message.duration !== 0) {
265
+ writer.uint32(13).float(message.duration);
266
+ }
267
+ if (message.easingFunction !== 0) {
268
+ writer.uint32(16).int32(message.easingFunction);
269
+ }
270
+ switch ((_a = message.mode) === null || _a === void 0 ? void 0 : _a.$case) {
271
+ case "move":
272
+ Move.encode(message.mode.move, writer.uint32(26).fork()).ldelim();
273
+ break;
274
+ case "rotate":
275
+ Rotate.encode(message.mode.rotate, writer.uint32(34).fork()).ldelim();
276
+ break;
277
+ case "scale":
278
+ Scale.encode(message.mode.scale, writer.uint32(42).fork()).ldelim();
279
+ break;
280
+ case "textureMove":
281
+ TextureMove.encode(message.mode.textureMove, writer.uint32(66).fork()).ldelim();
282
+ break;
283
+ case "rotateContinuous":
284
+ RotateContinuous.encode(message.mode.rotateContinuous, writer.uint32(74).fork()).ldelim();
285
+ break;
286
+ case "moveContinuous":
287
+ MoveContinuous.encode(message.mode.moveContinuous, writer.uint32(82).fork()).ldelim();
288
+ break;
289
+ case "textureMoveContinuous":
290
+ TextureMoveContinuous.encode(message.mode.textureMoveContinuous, writer.uint32(90).fork()).ldelim();
291
+ break;
292
+ case "moveRotateScale":
293
+ MoveRotateScale.encode(message.mode.moveRotateScale, writer.uint32(98).fork()).ldelim();
294
+ break;
295
+ }
296
+ if (message.playing !== undefined) {
297
+ writer.uint32(48).bool(message.playing);
298
+ }
299
+ if (message.currentTime !== undefined) {
300
+ writer.uint32(61).float(message.currentTime);
301
+ }
302
+ return writer;
303
+ }
304
+ PBTween.encode = encode;
305
+ function decode(input, length) {
306
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
307
+ let end = length === undefined ? reader.len : reader.pos + length;
308
+ const message = createBasePBTween();
309
+ while (reader.pos < end) {
310
+ const tag = reader.uint32();
311
+ switch (tag >>> 3) {
312
+ case 1:
313
+ if (tag !== 13) {
314
+ break;
315
+ }
316
+ message.duration = reader.float();
317
+ continue;
318
+ case 2:
319
+ if (tag !== 16) {
320
+ break;
321
+ }
322
+ message.easingFunction = reader.int32();
323
+ continue;
324
+ case 3:
325
+ if (tag !== 26) {
326
+ break;
327
+ }
328
+ message.mode = { $case: "move", move: Move.decode(reader, reader.uint32()) };
329
+ continue;
330
+ case 4:
331
+ if (tag !== 34) {
332
+ break;
333
+ }
334
+ message.mode = { $case: "rotate", rotate: Rotate.decode(reader, reader.uint32()) };
335
+ continue;
336
+ case 5:
337
+ if (tag !== 42) {
338
+ break;
339
+ }
340
+ message.mode = { $case: "scale", scale: Scale.decode(reader, reader.uint32()) };
341
+ continue;
342
+ case 8:
343
+ if (tag !== 66) {
344
+ break;
345
+ }
346
+ message.mode = { $case: "textureMove", textureMove: TextureMove.decode(reader, reader.uint32()) };
347
+ continue;
348
+ case 9:
349
+ if (tag !== 74) {
350
+ break;
351
+ }
352
+ message.mode = {
353
+ $case: "rotateContinuous",
354
+ rotateContinuous: RotateContinuous.decode(reader, reader.uint32()),
355
+ };
356
+ continue;
357
+ case 10:
358
+ if (tag !== 82) {
359
+ break;
360
+ }
361
+ message.mode = { $case: "moveContinuous", moveContinuous: MoveContinuous.decode(reader, reader.uint32()) };
362
+ continue;
363
+ case 11:
364
+ if (tag !== 90) {
365
+ break;
366
+ }
367
+ message.mode = {
368
+ $case: "textureMoveContinuous",
369
+ textureMoveContinuous: TextureMoveContinuous.decode(reader, reader.uint32()),
370
+ };
371
+ continue;
372
+ case 12:
373
+ if (tag !== 98) {
374
+ break;
375
+ }
376
+ message.mode = { $case: "moveRotateScale", moveRotateScale: MoveRotateScale.decode(reader, reader.uint32()) };
377
+ continue;
378
+ case 6:
379
+ if (tag !== 48) {
380
+ break;
381
+ }
382
+ message.playing = reader.bool();
383
+ continue;
384
+ case 7:
385
+ if (tag !== 61) {
386
+ break;
387
+ }
388
+ message.currentTime = reader.float();
389
+ continue;
390
+ }
391
+ if ((tag & 7) === 4 || tag === 0) {
392
+ break;
393
+ }
394
+ reader.skipType(tag & 7);
395
+ }
396
+ return message;
397
+ }
398
+ PBTween.decode = decode;
399
+ function fromJSON(object) {
400
+ return {
401
+ duration: isSet(object.duration) ? Number(object.duration) : 0,
402
+ easingFunction: isSet(object.easingFunction) ? easingFunctionFromJSON(object.easingFunction) : 0,
403
+ mode: isSet(object.move)
404
+ ? { $case: "move", move: Move.fromJSON(object.move) }
405
+ : isSet(object.rotate)
406
+ ? { $case: "rotate", rotate: Rotate.fromJSON(object.rotate) }
407
+ : isSet(object.scale)
408
+ ? { $case: "scale", scale: Scale.fromJSON(object.scale) }
409
+ : isSet(object.textureMove)
410
+ ? { $case: "textureMove", textureMove: TextureMove.fromJSON(object.textureMove) }
411
+ : isSet(object.rotateContinuous)
412
+ ? { $case: "rotateContinuous", rotateContinuous: RotateContinuous.fromJSON(object.rotateContinuous) }
413
+ : isSet(object.moveContinuous)
414
+ ? { $case: "moveContinuous", moveContinuous: MoveContinuous.fromJSON(object.moveContinuous) }
415
+ : isSet(object.textureMoveContinuous)
416
+ ? {
417
+ $case: "textureMoveContinuous",
418
+ textureMoveContinuous: TextureMoveContinuous.fromJSON(object.textureMoveContinuous),
419
+ }
420
+ : isSet(object.moveRotateScale)
421
+ ? { $case: "moveRotateScale", moveRotateScale: MoveRotateScale.fromJSON(object.moveRotateScale) }
422
+ : undefined,
423
+ playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
424
+ currentTime: isSet(object.currentTime) ? Number(object.currentTime) : undefined,
425
+ };
426
+ }
427
+ PBTween.fromJSON = fromJSON;
428
+ function toJSON(message) {
429
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
430
+ const obj = {};
431
+ message.duration !== undefined && (obj.duration = message.duration);
432
+ message.easingFunction !== undefined && (obj.easingFunction = easingFunctionToJSON(message.easingFunction));
433
+ ((_a = message.mode) === null || _a === void 0 ? void 0 : _a.$case) === "move" && (obj.move = ((_b = message.mode) === null || _b === void 0 ? void 0 : _b.move) ? Move.toJSON((_c = message.mode) === null || _c === void 0 ? void 0 : _c.move) : undefined);
434
+ ((_d = message.mode) === null || _d === void 0 ? void 0 : _d.$case) === "rotate" &&
435
+ (obj.rotate = ((_e = message.mode) === null || _e === void 0 ? void 0 : _e.rotate) ? Rotate.toJSON((_f = message.mode) === null || _f === void 0 ? void 0 : _f.rotate) : undefined);
436
+ ((_g = message.mode) === null || _g === void 0 ? void 0 : _g.$case) === "scale" &&
437
+ (obj.scale = ((_h = message.mode) === null || _h === void 0 ? void 0 : _h.scale) ? Scale.toJSON((_j = message.mode) === null || _j === void 0 ? void 0 : _j.scale) : undefined);
438
+ ((_k = message.mode) === null || _k === void 0 ? void 0 : _k.$case) === "textureMove" &&
439
+ (obj.textureMove = ((_l = message.mode) === null || _l === void 0 ? void 0 : _l.textureMove) ? TextureMove.toJSON((_m = message.mode) === null || _m === void 0 ? void 0 : _m.textureMove) : undefined);
440
+ ((_o = message.mode) === null || _o === void 0 ? void 0 : _o.$case) === "rotateContinuous" &&
441
+ (obj.rotateContinuous = ((_p = message.mode) === null || _p === void 0 ? void 0 : _p.rotateContinuous)
442
+ ? RotateContinuous.toJSON((_q = message.mode) === null || _q === void 0 ? void 0 : _q.rotateContinuous)
443
+ : undefined);
444
+ ((_r = message.mode) === null || _r === void 0 ? void 0 : _r.$case) === "moveContinuous" &&
445
+ (obj.moveContinuous = ((_s = message.mode) === null || _s === void 0 ? void 0 : _s.moveContinuous)
446
+ ? MoveContinuous.toJSON((_t = message.mode) === null || _t === void 0 ? void 0 : _t.moveContinuous)
447
+ : undefined);
448
+ ((_u = message.mode) === null || _u === void 0 ? void 0 : _u.$case) === "textureMoveContinuous" &&
449
+ (obj.textureMoveContinuous = ((_v = message.mode) === null || _v === void 0 ? void 0 : _v.textureMoveContinuous)
450
+ ? TextureMoveContinuous.toJSON((_w = message.mode) === null || _w === void 0 ? void 0 : _w.textureMoveContinuous)
451
+ : undefined);
452
+ ((_x = message.mode) === null || _x === void 0 ? void 0 : _x.$case) === "moveRotateScale" &&
453
+ (obj.moveRotateScale = ((_y = message.mode) === null || _y === void 0 ? void 0 : _y.moveRotateScale)
454
+ ? MoveRotateScale.toJSON((_z = message.mode) === null || _z === void 0 ? void 0 : _z.moveRotateScale)
455
+ : undefined);
456
+ message.playing !== undefined && (obj.playing = message.playing);
457
+ message.currentTime !== undefined && (obj.currentTime = message.currentTime);
458
+ return obj;
459
+ }
460
+ PBTween.toJSON = toJSON;
461
+ function create(base) {
462
+ return PBTween.fromPartial(base !== null && base !== void 0 ? base : {});
463
+ }
464
+ PBTween.create = create;
465
+ function fromPartial(object) {
466
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
467
+ const message = createBasePBTween();
468
+ message.duration = (_a = object.duration) !== null && _a !== void 0 ? _a : 0;
469
+ message.easingFunction = (_b = object.easingFunction) !== null && _b !== void 0 ? _b : 0;
470
+ if (((_c = object.mode) === null || _c === void 0 ? void 0 : _c.$case) === "move" && ((_d = object.mode) === null || _d === void 0 ? void 0 : _d.move) !== undefined && ((_e = object.mode) === null || _e === void 0 ? void 0 : _e.move) !== null) {
471
+ message.mode = { $case: "move", move: Move.fromPartial(object.mode.move) };
472
+ }
473
+ if (((_f = object.mode) === null || _f === void 0 ? void 0 : _f.$case) === "rotate" && ((_g = object.mode) === null || _g === void 0 ? void 0 : _g.rotate) !== undefined && ((_h = object.mode) === null || _h === void 0 ? void 0 : _h.rotate) !== null) {
474
+ message.mode = { $case: "rotate", rotate: Rotate.fromPartial(object.mode.rotate) };
475
+ }
476
+ if (((_j = object.mode) === null || _j === void 0 ? void 0 : _j.$case) === "scale" && ((_k = object.mode) === null || _k === void 0 ? void 0 : _k.scale) !== undefined && ((_l = object.mode) === null || _l === void 0 ? void 0 : _l.scale) !== null) {
477
+ message.mode = { $case: "scale", scale: Scale.fromPartial(object.mode.scale) };
478
+ }
479
+ if (((_m = object.mode) === null || _m === void 0 ? void 0 : _m.$case) === "textureMove" &&
480
+ ((_o = object.mode) === null || _o === void 0 ? void 0 : _o.textureMove) !== undefined &&
481
+ ((_p = object.mode) === null || _p === void 0 ? void 0 : _p.textureMove) !== null) {
482
+ message.mode = { $case: "textureMove", textureMove: TextureMove.fromPartial(object.mode.textureMove) };
483
+ }
484
+ if (((_q = object.mode) === null || _q === void 0 ? void 0 : _q.$case) === "rotateContinuous" &&
485
+ ((_r = object.mode) === null || _r === void 0 ? void 0 : _r.rotateContinuous) !== undefined &&
486
+ ((_s = object.mode) === null || _s === void 0 ? void 0 : _s.rotateContinuous) !== null) {
487
+ message.mode = {
488
+ $case: "rotateContinuous",
489
+ rotateContinuous: RotateContinuous.fromPartial(object.mode.rotateContinuous),
490
+ };
491
+ }
492
+ if (((_t = object.mode) === null || _t === void 0 ? void 0 : _t.$case) === "moveContinuous" &&
493
+ ((_u = object.mode) === null || _u === void 0 ? void 0 : _u.moveContinuous) !== undefined &&
494
+ ((_v = object.mode) === null || _v === void 0 ? void 0 : _v.moveContinuous) !== null) {
495
+ message.mode = {
496
+ $case: "moveContinuous",
497
+ moveContinuous: MoveContinuous.fromPartial(object.mode.moveContinuous),
498
+ };
499
+ }
500
+ if (((_w = object.mode) === null || _w === void 0 ? void 0 : _w.$case) === "textureMoveContinuous" &&
501
+ ((_x = object.mode) === null || _x === void 0 ? void 0 : _x.textureMoveContinuous) !== undefined &&
502
+ ((_y = object.mode) === null || _y === void 0 ? void 0 : _y.textureMoveContinuous) !== null) {
503
+ message.mode = {
504
+ $case: "textureMoveContinuous",
505
+ textureMoveContinuous: TextureMoveContinuous.fromPartial(object.mode.textureMoveContinuous),
506
+ };
507
+ }
508
+ if (((_z = object.mode) === null || _z === void 0 ? void 0 : _z.$case) === "moveRotateScale" &&
509
+ ((_0 = object.mode) === null || _0 === void 0 ? void 0 : _0.moveRotateScale) !== undefined &&
510
+ ((_1 = object.mode) === null || _1 === void 0 ? void 0 : _1.moveRotateScale) !== null) {
511
+ message.mode = {
512
+ $case: "moveRotateScale",
513
+ moveRotateScale: MoveRotateScale.fromPartial(object.mode.moveRotateScale),
514
+ };
515
+ }
516
+ message.playing = (_2 = object.playing) !== null && _2 !== void 0 ? _2 : undefined;
517
+ message.currentTime = (_3 = object.currentTime) !== null && _3 !== void 0 ? _3 : undefined;
518
+ return message;
519
+ }
520
+ PBTween.fromPartial = fromPartial;
521
+ })(PBTween || (exports.PBTween = PBTween = {}));
522
+ function createBaseMove() {
523
+ return { start: undefined, end: undefined, faceDirection: undefined };
524
+ }
525
+ var Move;
526
+ (function (Move) {
527
+ function encode(message, writer = minimal_1.default.Writer.create()) {
528
+ if (message.start !== undefined) {
529
+ vectors_gen_1.Vector3.encode(message.start, writer.uint32(10).fork()).ldelim();
530
+ }
531
+ if (message.end !== undefined) {
532
+ vectors_gen_1.Vector3.encode(message.end, writer.uint32(18).fork()).ldelim();
533
+ }
534
+ if (message.faceDirection !== undefined) {
535
+ writer.uint32(24).bool(message.faceDirection);
536
+ }
537
+ return writer;
538
+ }
539
+ Move.encode = encode;
540
+ function decode(input, length) {
541
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
542
+ let end = length === undefined ? reader.len : reader.pos + length;
543
+ const message = createBaseMove();
544
+ while (reader.pos < end) {
545
+ const tag = reader.uint32();
546
+ switch (tag >>> 3) {
547
+ case 1:
548
+ if (tag !== 10) {
549
+ break;
550
+ }
551
+ message.start = vectors_gen_1.Vector3.decode(reader, reader.uint32());
552
+ continue;
553
+ case 2:
554
+ if (tag !== 18) {
555
+ break;
556
+ }
557
+ message.end = vectors_gen_1.Vector3.decode(reader, reader.uint32());
558
+ continue;
559
+ case 3:
560
+ if (tag !== 24) {
561
+ break;
562
+ }
563
+ message.faceDirection = reader.bool();
564
+ continue;
565
+ }
566
+ if ((tag & 7) === 4 || tag === 0) {
567
+ break;
568
+ }
569
+ reader.skipType(tag & 7);
570
+ }
571
+ return message;
572
+ }
573
+ Move.decode = decode;
574
+ function fromJSON(object) {
575
+ return {
576
+ start: isSet(object.start) ? vectors_gen_1.Vector3.fromJSON(object.start) : undefined,
577
+ end: isSet(object.end) ? vectors_gen_1.Vector3.fromJSON(object.end) : undefined,
578
+ faceDirection: isSet(object.faceDirection) ? Boolean(object.faceDirection) : undefined,
579
+ };
580
+ }
581
+ Move.fromJSON = fromJSON;
582
+ function toJSON(message) {
583
+ const obj = {};
584
+ message.start !== undefined && (obj.start = message.start ? vectors_gen_1.Vector3.toJSON(message.start) : undefined);
585
+ message.end !== undefined && (obj.end = message.end ? vectors_gen_1.Vector3.toJSON(message.end) : undefined);
586
+ message.faceDirection !== undefined && (obj.faceDirection = message.faceDirection);
587
+ return obj;
588
+ }
589
+ Move.toJSON = toJSON;
590
+ function create(base) {
591
+ return Move.fromPartial(base !== null && base !== void 0 ? base : {});
592
+ }
593
+ Move.create = create;
594
+ function fromPartial(object) {
595
+ var _a;
596
+ const message = createBaseMove();
597
+ message.start = (object.start !== undefined && object.start !== null)
598
+ ? vectors_gen_1.Vector3.fromPartial(object.start)
599
+ : undefined;
600
+ message.end = (object.end !== undefined && object.end !== null) ? vectors_gen_1.Vector3.fromPartial(object.end) : undefined;
601
+ message.faceDirection = (_a = object.faceDirection) !== null && _a !== void 0 ? _a : undefined;
602
+ return message;
603
+ }
604
+ Move.fromPartial = fromPartial;
605
+ })(Move || (exports.Move = Move = {}));
606
+ function createBaseRotate() {
607
+ return { start: undefined, end: undefined };
608
+ }
609
+ var Rotate;
610
+ (function (Rotate) {
611
+ function encode(message, writer = minimal_1.default.Writer.create()) {
612
+ if (message.start !== undefined) {
613
+ vectors_gen_1.Quaternion.encode(message.start, writer.uint32(10).fork()).ldelim();
614
+ }
615
+ if (message.end !== undefined) {
616
+ vectors_gen_1.Quaternion.encode(message.end, writer.uint32(18).fork()).ldelim();
617
+ }
618
+ return writer;
619
+ }
620
+ Rotate.encode = encode;
621
+ function decode(input, length) {
622
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
623
+ let end = length === undefined ? reader.len : reader.pos + length;
624
+ const message = createBaseRotate();
625
+ while (reader.pos < end) {
626
+ const tag = reader.uint32();
627
+ switch (tag >>> 3) {
628
+ case 1:
629
+ if (tag !== 10) {
630
+ break;
631
+ }
632
+ message.start = vectors_gen_1.Quaternion.decode(reader, reader.uint32());
633
+ continue;
634
+ case 2:
635
+ if (tag !== 18) {
636
+ break;
637
+ }
638
+ message.end = vectors_gen_1.Quaternion.decode(reader, reader.uint32());
639
+ continue;
640
+ }
641
+ if ((tag & 7) === 4 || tag === 0) {
642
+ break;
643
+ }
644
+ reader.skipType(tag & 7);
645
+ }
646
+ return message;
647
+ }
648
+ Rotate.decode = decode;
649
+ function fromJSON(object) {
650
+ return {
651
+ start: isSet(object.start) ? vectors_gen_1.Quaternion.fromJSON(object.start) : undefined,
652
+ end: isSet(object.end) ? vectors_gen_1.Quaternion.fromJSON(object.end) : undefined,
653
+ };
654
+ }
655
+ Rotate.fromJSON = fromJSON;
656
+ function toJSON(message) {
657
+ const obj = {};
658
+ message.start !== undefined && (obj.start = message.start ? vectors_gen_1.Quaternion.toJSON(message.start) : undefined);
659
+ message.end !== undefined && (obj.end = message.end ? vectors_gen_1.Quaternion.toJSON(message.end) : undefined);
660
+ return obj;
661
+ }
662
+ Rotate.toJSON = toJSON;
663
+ function create(base) {
664
+ return Rotate.fromPartial(base !== null && base !== void 0 ? base : {});
665
+ }
666
+ Rotate.create = create;
667
+ function fromPartial(object) {
668
+ const message = createBaseRotate();
669
+ message.start = (object.start !== undefined && object.start !== null)
670
+ ? vectors_gen_1.Quaternion.fromPartial(object.start)
671
+ : undefined;
672
+ message.end = (object.end !== undefined && object.end !== null) ? vectors_gen_1.Quaternion.fromPartial(object.end) : undefined;
673
+ return message;
674
+ }
675
+ Rotate.fromPartial = fromPartial;
676
+ })(Rotate || (exports.Rotate = Rotate = {}));
677
+ function createBaseScale() {
678
+ return { start: undefined, end: undefined };
679
+ }
680
+ var Scale;
681
+ (function (Scale) {
682
+ function encode(message, writer = minimal_1.default.Writer.create()) {
683
+ if (message.start !== undefined) {
684
+ vectors_gen_1.Vector3.encode(message.start, writer.uint32(10).fork()).ldelim();
685
+ }
686
+ if (message.end !== undefined) {
687
+ vectors_gen_1.Vector3.encode(message.end, writer.uint32(18).fork()).ldelim();
688
+ }
689
+ return writer;
690
+ }
691
+ Scale.encode = encode;
692
+ function decode(input, length) {
693
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
694
+ let end = length === undefined ? reader.len : reader.pos + length;
695
+ const message = createBaseScale();
696
+ while (reader.pos < end) {
697
+ const tag = reader.uint32();
698
+ switch (tag >>> 3) {
699
+ case 1:
700
+ if (tag !== 10) {
701
+ break;
702
+ }
703
+ message.start = vectors_gen_1.Vector3.decode(reader, reader.uint32());
704
+ continue;
705
+ case 2:
706
+ if (tag !== 18) {
707
+ break;
708
+ }
709
+ message.end = vectors_gen_1.Vector3.decode(reader, reader.uint32());
710
+ continue;
711
+ }
712
+ if ((tag & 7) === 4 || tag === 0) {
713
+ break;
714
+ }
715
+ reader.skipType(tag & 7);
716
+ }
717
+ return message;
718
+ }
719
+ Scale.decode = decode;
720
+ function fromJSON(object) {
721
+ return {
722
+ start: isSet(object.start) ? vectors_gen_1.Vector3.fromJSON(object.start) : undefined,
723
+ end: isSet(object.end) ? vectors_gen_1.Vector3.fromJSON(object.end) : undefined,
724
+ };
725
+ }
726
+ Scale.fromJSON = fromJSON;
727
+ function toJSON(message) {
728
+ const obj = {};
729
+ message.start !== undefined && (obj.start = message.start ? vectors_gen_1.Vector3.toJSON(message.start) : undefined);
730
+ message.end !== undefined && (obj.end = message.end ? vectors_gen_1.Vector3.toJSON(message.end) : undefined);
731
+ return obj;
732
+ }
733
+ Scale.toJSON = toJSON;
734
+ function create(base) {
735
+ return Scale.fromPartial(base !== null && base !== void 0 ? base : {});
736
+ }
737
+ Scale.create = create;
738
+ function fromPartial(object) {
739
+ const message = createBaseScale();
740
+ message.start = (object.start !== undefined && object.start !== null)
741
+ ? vectors_gen_1.Vector3.fromPartial(object.start)
742
+ : undefined;
743
+ message.end = (object.end !== undefined && object.end !== null) ? vectors_gen_1.Vector3.fromPartial(object.end) : undefined;
744
+ return message;
745
+ }
746
+ Scale.fromPartial = fromPartial;
747
+ })(Scale || (exports.Scale = Scale = {}));
748
+ function createBaseMoveRotateScale() {
749
+ return {
750
+ positionStart: undefined,
751
+ positionEnd: undefined,
752
+ rotationStart: undefined,
753
+ rotationEnd: undefined,
754
+ scaleStart: undefined,
755
+ scaleEnd: undefined,
756
+ };
757
+ }
758
+ var MoveRotateScale;
759
+ (function (MoveRotateScale) {
760
+ function encode(message, writer = minimal_1.default.Writer.create()) {
761
+ if (message.positionStart !== undefined) {
762
+ vectors_gen_1.Vector3.encode(message.positionStart, writer.uint32(10).fork()).ldelim();
763
+ }
764
+ if (message.positionEnd !== undefined) {
765
+ vectors_gen_1.Vector3.encode(message.positionEnd, writer.uint32(18).fork()).ldelim();
766
+ }
767
+ if (message.rotationStart !== undefined) {
768
+ vectors_gen_1.Quaternion.encode(message.rotationStart, writer.uint32(26).fork()).ldelim();
769
+ }
770
+ if (message.rotationEnd !== undefined) {
771
+ vectors_gen_1.Quaternion.encode(message.rotationEnd, writer.uint32(34).fork()).ldelim();
772
+ }
773
+ if (message.scaleStart !== undefined) {
774
+ vectors_gen_1.Vector3.encode(message.scaleStart, writer.uint32(42).fork()).ldelim();
775
+ }
776
+ if (message.scaleEnd !== undefined) {
777
+ vectors_gen_1.Vector3.encode(message.scaleEnd, writer.uint32(50).fork()).ldelim();
778
+ }
779
+ return writer;
780
+ }
781
+ MoveRotateScale.encode = encode;
782
+ function decode(input, length) {
783
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
784
+ let end = length === undefined ? reader.len : reader.pos + length;
785
+ const message = createBaseMoveRotateScale();
786
+ while (reader.pos < end) {
787
+ const tag = reader.uint32();
788
+ switch (tag >>> 3) {
789
+ case 1:
790
+ if (tag !== 10) {
791
+ break;
792
+ }
793
+ message.positionStart = vectors_gen_1.Vector3.decode(reader, reader.uint32());
794
+ continue;
795
+ case 2:
796
+ if (tag !== 18) {
797
+ break;
798
+ }
799
+ message.positionEnd = vectors_gen_1.Vector3.decode(reader, reader.uint32());
800
+ continue;
801
+ case 3:
802
+ if (tag !== 26) {
803
+ break;
804
+ }
805
+ message.rotationStart = vectors_gen_1.Quaternion.decode(reader, reader.uint32());
806
+ continue;
807
+ case 4:
808
+ if (tag !== 34) {
809
+ break;
810
+ }
811
+ message.rotationEnd = vectors_gen_1.Quaternion.decode(reader, reader.uint32());
812
+ continue;
813
+ case 5:
814
+ if (tag !== 42) {
815
+ break;
816
+ }
817
+ message.scaleStart = vectors_gen_1.Vector3.decode(reader, reader.uint32());
818
+ continue;
819
+ case 6:
820
+ if (tag !== 50) {
821
+ break;
822
+ }
823
+ message.scaleEnd = vectors_gen_1.Vector3.decode(reader, reader.uint32());
824
+ continue;
825
+ }
826
+ if ((tag & 7) === 4 || tag === 0) {
827
+ break;
828
+ }
829
+ reader.skipType(tag & 7);
830
+ }
831
+ return message;
832
+ }
833
+ MoveRotateScale.decode = decode;
834
+ function fromJSON(object) {
835
+ return {
836
+ positionStart: isSet(object.positionStart) ? vectors_gen_1.Vector3.fromJSON(object.positionStart) : undefined,
837
+ positionEnd: isSet(object.positionEnd) ? vectors_gen_1.Vector3.fromJSON(object.positionEnd) : undefined,
838
+ rotationStart: isSet(object.rotationStart) ? vectors_gen_1.Quaternion.fromJSON(object.rotationStart) : undefined,
839
+ rotationEnd: isSet(object.rotationEnd) ? vectors_gen_1.Quaternion.fromJSON(object.rotationEnd) : undefined,
840
+ scaleStart: isSet(object.scaleStart) ? vectors_gen_1.Vector3.fromJSON(object.scaleStart) : undefined,
841
+ scaleEnd: isSet(object.scaleEnd) ? vectors_gen_1.Vector3.fromJSON(object.scaleEnd) : undefined,
842
+ };
843
+ }
844
+ MoveRotateScale.fromJSON = fromJSON;
845
+ function toJSON(message) {
846
+ const obj = {};
847
+ message.positionStart !== undefined &&
848
+ (obj.positionStart = message.positionStart ? vectors_gen_1.Vector3.toJSON(message.positionStart) : undefined);
849
+ message.positionEnd !== undefined &&
850
+ (obj.positionEnd = message.positionEnd ? vectors_gen_1.Vector3.toJSON(message.positionEnd) : undefined);
851
+ message.rotationStart !== undefined &&
852
+ (obj.rotationStart = message.rotationStart ? vectors_gen_1.Quaternion.toJSON(message.rotationStart) : undefined);
853
+ message.rotationEnd !== undefined &&
854
+ (obj.rotationEnd = message.rotationEnd ? vectors_gen_1.Quaternion.toJSON(message.rotationEnd) : undefined);
855
+ message.scaleStart !== undefined &&
856
+ (obj.scaleStart = message.scaleStart ? vectors_gen_1.Vector3.toJSON(message.scaleStart) : undefined);
857
+ message.scaleEnd !== undefined && (obj.scaleEnd = message.scaleEnd ? vectors_gen_1.Vector3.toJSON(message.scaleEnd) : undefined);
858
+ return obj;
859
+ }
860
+ MoveRotateScale.toJSON = toJSON;
861
+ function create(base) {
862
+ return MoveRotateScale.fromPartial(base !== null && base !== void 0 ? base : {});
863
+ }
864
+ MoveRotateScale.create = create;
865
+ function fromPartial(object) {
866
+ const message = createBaseMoveRotateScale();
867
+ message.positionStart = (object.positionStart !== undefined && object.positionStart !== null)
868
+ ? vectors_gen_1.Vector3.fromPartial(object.positionStart)
869
+ : undefined;
870
+ message.positionEnd = (object.positionEnd !== undefined && object.positionEnd !== null)
871
+ ? vectors_gen_1.Vector3.fromPartial(object.positionEnd)
872
+ : undefined;
873
+ message.rotationStart = (object.rotationStart !== undefined && object.rotationStart !== null)
874
+ ? vectors_gen_1.Quaternion.fromPartial(object.rotationStart)
875
+ : undefined;
876
+ message.rotationEnd = (object.rotationEnd !== undefined && object.rotationEnd !== null)
877
+ ? vectors_gen_1.Quaternion.fromPartial(object.rotationEnd)
878
+ : undefined;
879
+ message.scaleStart = (object.scaleStart !== undefined && object.scaleStart !== null)
880
+ ? vectors_gen_1.Vector3.fromPartial(object.scaleStart)
881
+ : undefined;
882
+ message.scaleEnd = (object.scaleEnd !== undefined && object.scaleEnd !== null)
883
+ ? vectors_gen_1.Vector3.fromPartial(object.scaleEnd)
884
+ : undefined;
885
+ return message;
886
+ }
887
+ MoveRotateScale.fromPartial = fromPartial;
888
+ })(MoveRotateScale || (exports.MoveRotateScale = MoveRotateScale = {}));
889
+ function createBaseTextureMove() {
890
+ return { start: undefined, end: undefined, movementType: undefined };
891
+ }
892
+ var TextureMove;
893
+ (function (TextureMove) {
894
+ function encode(message, writer = minimal_1.default.Writer.create()) {
895
+ if (message.start !== undefined) {
896
+ vectors_gen_1.Vector2.encode(message.start, writer.uint32(10).fork()).ldelim();
897
+ }
898
+ if (message.end !== undefined) {
899
+ vectors_gen_1.Vector2.encode(message.end, writer.uint32(18).fork()).ldelim();
900
+ }
901
+ if (message.movementType !== undefined) {
902
+ writer.uint32(24).int32(message.movementType);
903
+ }
904
+ return writer;
905
+ }
906
+ TextureMove.encode = encode;
907
+ function decode(input, length) {
908
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
909
+ let end = length === undefined ? reader.len : reader.pos + length;
910
+ const message = createBaseTextureMove();
911
+ while (reader.pos < end) {
912
+ const tag = reader.uint32();
913
+ switch (tag >>> 3) {
914
+ case 1:
915
+ if (tag !== 10) {
916
+ break;
917
+ }
918
+ message.start = vectors_gen_1.Vector2.decode(reader, reader.uint32());
919
+ continue;
920
+ case 2:
921
+ if (tag !== 18) {
922
+ break;
923
+ }
924
+ message.end = vectors_gen_1.Vector2.decode(reader, reader.uint32());
925
+ continue;
926
+ case 3:
927
+ if (tag !== 24) {
928
+ break;
929
+ }
930
+ message.movementType = reader.int32();
931
+ continue;
932
+ }
933
+ if ((tag & 7) === 4 || tag === 0) {
934
+ break;
935
+ }
936
+ reader.skipType(tag & 7);
937
+ }
938
+ return message;
939
+ }
940
+ TextureMove.decode = decode;
941
+ function fromJSON(object) {
942
+ return {
943
+ start: isSet(object.start) ? vectors_gen_1.Vector2.fromJSON(object.start) : undefined,
944
+ end: isSet(object.end) ? vectors_gen_1.Vector2.fromJSON(object.end) : undefined,
945
+ movementType: isSet(object.movementType) ? textureMovementTypeFromJSON(object.movementType) : undefined,
946
+ };
947
+ }
948
+ TextureMove.fromJSON = fromJSON;
949
+ function toJSON(message) {
950
+ const obj = {};
951
+ message.start !== undefined && (obj.start = message.start ? vectors_gen_1.Vector2.toJSON(message.start) : undefined);
952
+ message.end !== undefined && (obj.end = message.end ? vectors_gen_1.Vector2.toJSON(message.end) : undefined);
953
+ message.movementType !== undefined &&
954
+ (obj.movementType = message.movementType !== undefined
955
+ ? textureMovementTypeToJSON(message.movementType)
956
+ : undefined);
957
+ return obj;
958
+ }
959
+ TextureMove.toJSON = toJSON;
960
+ function create(base) {
961
+ return TextureMove.fromPartial(base !== null && base !== void 0 ? base : {});
962
+ }
963
+ TextureMove.create = create;
964
+ function fromPartial(object) {
965
+ var _a;
966
+ const message = createBaseTextureMove();
967
+ message.start = (object.start !== undefined && object.start !== null)
968
+ ? vectors_gen_1.Vector2.fromPartial(object.start)
969
+ : undefined;
970
+ message.end = (object.end !== undefined && object.end !== null) ? vectors_gen_1.Vector2.fromPartial(object.end) : undefined;
971
+ message.movementType = (_a = object.movementType) !== null && _a !== void 0 ? _a : undefined;
972
+ return message;
973
+ }
974
+ TextureMove.fromPartial = fromPartial;
975
+ })(TextureMove || (exports.TextureMove = TextureMove = {}));
976
+ function createBaseRotateContinuous() {
977
+ return { direction: undefined, speed: 0 };
978
+ }
979
+ var RotateContinuous;
980
+ (function (RotateContinuous) {
981
+ function encode(message, writer = minimal_1.default.Writer.create()) {
982
+ if (message.direction !== undefined) {
983
+ vectors_gen_1.Quaternion.encode(message.direction, writer.uint32(10).fork()).ldelim();
984
+ }
985
+ if (message.speed !== 0) {
986
+ writer.uint32(21).float(message.speed);
987
+ }
988
+ return writer;
989
+ }
990
+ RotateContinuous.encode = encode;
991
+ function decode(input, length) {
992
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
993
+ let end = length === undefined ? reader.len : reader.pos + length;
994
+ const message = createBaseRotateContinuous();
995
+ while (reader.pos < end) {
996
+ const tag = reader.uint32();
997
+ switch (tag >>> 3) {
998
+ case 1:
999
+ if (tag !== 10) {
1000
+ break;
1001
+ }
1002
+ message.direction = vectors_gen_1.Quaternion.decode(reader, reader.uint32());
1003
+ continue;
1004
+ case 2:
1005
+ if (tag !== 21) {
1006
+ break;
1007
+ }
1008
+ message.speed = reader.float();
1009
+ continue;
1010
+ }
1011
+ if ((tag & 7) === 4 || tag === 0) {
1012
+ break;
1013
+ }
1014
+ reader.skipType(tag & 7);
1015
+ }
1016
+ return message;
1017
+ }
1018
+ RotateContinuous.decode = decode;
1019
+ function fromJSON(object) {
1020
+ return {
1021
+ direction: isSet(object.direction) ? vectors_gen_1.Quaternion.fromJSON(object.direction) : undefined,
1022
+ speed: isSet(object.speed) ? Number(object.speed) : 0,
1023
+ };
1024
+ }
1025
+ RotateContinuous.fromJSON = fromJSON;
1026
+ function toJSON(message) {
1027
+ const obj = {};
1028
+ message.direction !== undefined &&
1029
+ (obj.direction = message.direction ? vectors_gen_1.Quaternion.toJSON(message.direction) : undefined);
1030
+ message.speed !== undefined && (obj.speed = message.speed);
1031
+ return obj;
1032
+ }
1033
+ RotateContinuous.toJSON = toJSON;
1034
+ function create(base) {
1035
+ return RotateContinuous.fromPartial(base !== null && base !== void 0 ? base : {});
1036
+ }
1037
+ RotateContinuous.create = create;
1038
+ function fromPartial(object) {
1039
+ var _a;
1040
+ const message = createBaseRotateContinuous();
1041
+ message.direction = (object.direction !== undefined && object.direction !== null)
1042
+ ? vectors_gen_1.Quaternion.fromPartial(object.direction)
1043
+ : undefined;
1044
+ message.speed = (_a = object.speed) !== null && _a !== void 0 ? _a : 0;
1045
+ return message;
1046
+ }
1047
+ RotateContinuous.fromPartial = fromPartial;
1048
+ })(RotateContinuous || (exports.RotateContinuous = RotateContinuous = {}));
1049
+ function createBaseMoveContinuous() {
1050
+ return { direction: undefined, speed: 0 };
1051
+ }
1052
+ var MoveContinuous;
1053
+ (function (MoveContinuous) {
1054
+ function encode(message, writer = minimal_1.default.Writer.create()) {
1055
+ if (message.direction !== undefined) {
1056
+ vectors_gen_1.Vector3.encode(message.direction, writer.uint32(10).fork()).ldelim();
1057
+ }
1058
+ if (message.speed !== 0) {
1059
+ writer.uint32(21).float(message.speed);
1060
+ }
1061
+ return writer;
1062
+ }
1063
+ MoveContinuous.encode = encode;
1064
+ function decode(input, length) {
1065
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1066
+ let end = length === undefined ? reader.len : reader.pos + length;
1067
+ const message = createBaseMoveContinuous();
1068
+ while (reader.pos < end) {
1069
+ const tag = reader.uint32();
1070
+ switch (tag >>> 3) {
1071
+ case 1:
1072
+ if (tag !== 10) {
1073
+ break;
1074
+ }
1075
+ message.direction = vectors_gen_1.Vector3.decode(reader, reader.uint32());
1076
+ continue;
1077
+ case 2:
1078
+ if (tag !== 21) {
1079
+ break;
1080
+ }
1081
+ message.speed = reader.float();
1082
+ continue;
1083
+ }
1084
+ if ((tag & 7) === 4 || tag === 0) {
1085
+ break;
1086
+ }
1087
+ reader.skipType(tag & 7);
1088
+ }
1089
+ return message;
1090
+ }
1091
+ MoveContinuous.decode = decode;
1092
+ function fromJSON(object) {
1093
+ return {
1094
+ direction: isSet(object.direction) ? vectors_gen_1.Vector3.fromJSON(object.direction) : undefined,
1095
+ speed: isSet(object.speed) ? Number(object.speed) : 0,
1096
+ };
1097
+ }
1098
+ MoveContinuous.fromJSON = fromJSON;
1099
+ function toJSON(message) {
1100
+ const obj = {};
1101
+ message.direction !== undefined &&
1102
+ (obj.direction = message.direction ? vectors_gen_1.Vector3.toJSON(message.direction) : undefined);
1103
+ message.speed !== undefined && (obj.speed = message.speed);
1104
+ return obj;
1105
+ }
1106
+ MoveContinuous.toJSON = toJSON;
1107
+ function create(base) {
1108
+ return MoveContinuous.fromPartial(base !== null && base !== void 0 ? base : {});
1109
+ }
1110
+ MoveContinuous.create = create;
1111
+ function fromPartial(object) {
1112
+ var _a;
1113
+ const message = createBaseMoveContinuous();
1114
+ message.direction = (object.direction !== undefined && object.direction !== null)
1115
+ ? vectors_gen_1.Vector3.fromPartial(object.direction)
1116
+ : undefined;
1117
+ message.speed = (_a = object.speed) !== null && _a !== void 0 ? _a : 0;
1118
+ return message;
1119
+ }
1120
+ MoveContinuous.fromPartial = fromPartial;
1121
+ })(MoveContinuous || (exports.MoveContinuous = MoveContinuous = {}));
1122
+ function createBaseTextureMoveContinuous() {
1123
+ return { direction: undefined, speed: 0, movementType: undefined };
1124
+ }
1125
+ var TextureMoveContinuous;
1126
+ (function (TextureMoveContinuous) {
1127
+ function encode(message, writer = minimal_1.default.Writer.create()) {
1128
+ if (message.direction !== undefined) {
1129
+ vectors_gen_1.Vector2.encode(message.direction, writer.uint32(10).fork()).ldelim();
1130
+ }
1131
+ if (message.speed !== 0) {
1132
+ writer.uint32(21).float(message.speed);
1133
+ }
1134
+ if (message.movementType !== undefined) {
1135
+ writer.uint32(24).int32(message.movementType);
1136
+ }
1137
+ return writer;
1138
+ }
1139
+ TextureMoveContinuous.encode = encode;
1140
+ function decode(input, length) {
1141
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1142
+ let end = length === undefined ? reader.len : reader.pos + length;
1143
+ const message = createBaseTextureMoveContinuous();
1144
+ while (reader.pos < end) {
1145
+ const tag = reader.uint32();
1146
+ switch (tag >>> 3) {
1147
+ case 1:
1148
+ if (tag !== 10) {
1149
+ break;
1150
+ }
1151
+ message.direction = vectors_gen_1.Vector2.decode(reader, reader.uint32());
1152
+ continue;
1153
+ case 2:
1154
+ if (tag !== 21) {
1155
+ break;
1156
+ }
1157
+ message.speed = reader.float();
1158
+ continue;
1159
+ case 3:
1160
+ if (tag !== 24) {
1161
+ break;
1162
+ }
1163
+ message.movementType = reader.int32();
1164
+ continue;
1165
+ }
1166
+ if ((tag & 7) === 4 || tag === 0) {
1167
+ break;
1168
+ }
1169
+ reader.skipType(tag & 7);
1170
+ }
1171
+ return message;
1172
+ }
1173
+ TextureMoveContinuous.decode = decode;
1174
+ function fromJSON(object) {
1175
+ return {
1176
+ direction: isSet(object.direction) ? vectors_gen_1.Vector2.fromJSON(object.direction) : undefined,
1177
+ speed: isSet(object.speed) ? Number(object.speed) : 0,
1178
+ movementType: isSet(object.movementType) ? textureMovementTypeFromJSON(object.movementType) : undefined,
1179
+ };
1180
+ }
1181
+ TextureMoveContinuous.fromJSON = fromJSON;
1182
+ function toJSON(message) {
1183
+ const obj = {};
1184
+ message.direction !== undefined &&
1185
+ (obj.direction = message.direction ? vectors_gen_1.Vector2.toJSON(message.direction) : undefined);
1186
+ message.speed !== undefined && (obj.speed = message.speed);
1187
+ message.movementType !== undefined &&
1188
+ (obj.movementType = message.movementType !== undefined
1189
+ ? textureMovementTypeToJSON(message.movementType)
1190
+ : undefined);
1191
+ return obj;
1192
+ }
1193
+ TextureMoveContinuous.toJSON = toJSON;
1194
+ function create(base) {
1195
+ return TextureMoveContinuous.fromPartial(base !== null && base !== void 0 ? base : {});
1196
+ }
1197
+ TextureMoveContinuous.create = create;
1198
+ function fromPartial(object) {
1199
+ var _a, _b;
1200
+ const message = createBaseTextureMoveContinuous();
1201
+ message.direction = (object.direction !== undefined && object.direction !== null)
1202
+ ? vectors_gen_1.Vector2.fromPartial(object.direction)
1203
+ : undefined;
1204
+ message.speed = (_a = object.speed) !== null && _a !== void 0 ? _a : 0;
1205
+ message.movementType = (_b = object.movementType) !== null && _b !== void 0 ? _b : undefined;
1206
+ return message;
1207
+ }
1208
+ TextureMoveContinuous.fromPartial = fromPartial;
1209
+ })(TextureMoveContinuous || (exports.TextureMoveContinuous = TextureMoveContinuous = {}));
1210
+ function isSet(value) {
1211
+ return value !== null && value !== undefined;
1212
+ }
1213
+ //# sourceMappingURL=tween.gen.js.map