@defold-typescript/types 0.53.0 → 0.54.0

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 (335) hide show
  1. package/dist/cli-runtime.js +8966 -0
  2. package/dist/identity-vocabulary.json +660 -0
  3. package/dist/src/index.d.ts +18 -0
  4. package/fixtures/defold-1.12.4/b2d_body_doc.json +1327 -0
  5. package/fixtures/defold-1.12.4/b2d_doc.json +107 -0
  6. package/fixtures/defold-1.12.4/base_doc.json +758 -0
  7. package/fixtures/defold-1.12.4/bit_doc.json +404 -0
  8. package/fixtures/defold-1.12.4/buffer_doc.json +422 -0
  9. package/fixtures/defold-1.12.4/camera_doc.json +664 -0
  10. package/fixtures/defold-1.12.4/collectionfactory_doc.json +219 -0
  11. package/fixtures/defold-1.12.4/collectionproxy_doc.json +289 -0
  12. package/fixtures/defold-1.12.4/coroutine_doc.json +151 -0
  13. package/fixtures/defold-1.12.4/crash_doc.json +497 -0
  14. package/fixtures/defold-1.12.4/debug_doc.json +410 -0
  15. package/fixtures/defold-1.12.4/factory_doc.json +219 -0
  16. package/fixtures/defold-1.12.4/font_doc.json +141 -0
  17. package/fixtures/defold-1.12.4/globals_doc.json +42 -0
  18. package/fixtures/defold-1.12.4/go-instance-functions.json +111 -0
  19. package/fixtures/defold-1.12.4/go_doc.json +1901 -0
  20. package/fixtures/defold-1.12.4/graphics_doc.json +1634 -0
  21. package/fixtures/defold-1.12.4/gui_doc.json +5249 -0
  22. package/fixtures/defold-1.12.4/html5_doc.json +64 -0
  23. package/fixtures/defold-1.12.4/http_doc.json +66 -0
  24. package/fixtures/defold-1.12.4/image_doc.json +170 -0
  25. package/fixtures/defold-1.12.4/io_doc.json +399 -0
  26. package/fixtures/defold-1.12.4/json_doc.json +97 -0
  27. package/fixtures/defold-1.12.4/label_doc.json +220 -0
  28. package/fixtures/defold-1.12.4/liveupdate_doc.json +308 -0
  29. package/fixtures/defold-1.12.4/math_doc.json +702 -0
  30. package/fixtures/defold-1.12.4/messages_doc.json +579 -0
  31. package/fixtures/defold-1.12.4/model_doc.json +315 -0
  32. package/fixtures/defold-1.12.4/msg_doc.json +137 -0
  33. package/fixtures/defold-1.12.4/os_doc.json +266 -0
  34. package/fixtures/defold-1.12.4/package_doc.json +139 -0
  35. package/fixtures/defold-1.12.4/particlefx_doc.json +249 -0
  36. package/fixtures/defold-1.12.4/physics_doc.json +1120 -0
  37. package/fixtures/defold-1.12.4/profiler_doc.json +375 -0
  38. package/fixtures/defold-1.12.4/render_doc.json +1167 -0
  39. package/fixtures/defold-1.12.4/resource_doc.json +762 -0
  40. package/fixtures/defold-1.12.4/socket_doc.json +2194 -0
  41. package/fixtures/defold-1.12.4/sound_doc.json +582 -0
  42. package/fixtures/defold-1.12.4/sprite_doc.json +245 -0
  43. package/fixtures/defold-1.12.4/string_doc.json +412 -0
  44. package/fixtures/defold-1.12.4/sys_doc.json +853 -0
  45. package/fixtures/defold-1.12.4/table_doc.json +166 -0
  46. package/fixtures/defold-1.12.4/tilemap_doc.json +374 -0
  47. package/fixtures/defold-1.12.4/timer_doc.json +153 -0
  48. package/fixtures/defold-1.12.4/types_doc.json +212 -0
  49. package/fixtures/defold-1.12.4/vmath_doc.json +1814 -0
  50. package/fixtures/defold-1.12.4/window_doc.json +388 -0
  51. package/fixtures/defold-1.12.4/zlib_doc.json +70 -0
  52. package/fixtures/defold-1.13.0/b2d_body_doc.json +2428 -0
  53. package/fixtures/defold-1.13.0/b2d_chain_doc.json +394 -0
  54. package/fixtures/defold-1.13.0/b2d_doc.json +128 -0
  55. package/fixtures/defold-1.13.0/b2d_fixture_doc.json +594 -0
  56. package/fixtures/defold-1.13.0/b2d_joint_doc.json +3315 -0
  57. package/fixtures/defold-1.13.0/b2d_shape_doc.json +802 -0
  58. package/fixtures/defold-1.13.0/b2d_world_doc.json +1314 -0
  59. package/fixtures/defold-1.13.0/base_doc.json +758 -0
  60. package/fixtures/defold-1.13.0/bit_doc.json +404 -0
  61. package/fixtures/defold-1.13.0/buffer_doc.json +422 -0
  62. package/fixtures/defold-1.13.0/camera_doc.json +900 -0
  63. package/fixtures/defold-1.13.0/collectionfactory_doc.json +219 -0
  64. package/fixtures/defold-1.13.0/collectionproxy_doc.json +289 -0
  65. package/fixtures/defold-1.13.0/compute_doc.json +182 -0
  66. package/fixtures/defold-1.13.0/coroutine_doc.json +151 -0
  67. package/fixtures/defold-1.13.0/crash_doc.json +497 -0
  68. package/fixtures/defold-1.13.0/debug_doc.json +410 -0
  69. package/fixtures/defold-1.13.0/editor_doc.json +3665 -0
  70. package/fixtures/defold-1.13.0/editor_http_doc.json +273 -0
  71. package/fixtures/defold-1.13.0/editor_json_doc.json +59 -0
  72. package/fixtures/defold-1.13.0/editor_localization_doc.json +138 -0
  73. package/fixtures/defold-1.13.0/editor_pprint_doc.json +36 -0
  74. package/fixtures/defold-1.13.0/editor_tilemap_tiles_doc.json +235 -0
  75. package/fixtures/defold-1.13.0/editor_zip_doc.json +163 -0
  76. package/fixtures/defold-1.13.0/editor_zlib_doc.json +48 -0
  77. package/fixtures/defold-1.13.0/factory_doc.json +219 -0
  78. package/fixtures/defold-1.13.0/font_doc.json +141 -0
  79. package/fixtures/defold-1.13.0/globals_doc.json +42 -0
  80. package/fixtures/defold-1.13.0/go-instance-functions.json +101 -0
  81. package/fixtures/defold-1.13.0/go_doc.json +1989 -0
  82. package/fixtures/defold-1.13.0/graphics_doc.json +1886 -0
  83. package/fixtures/defold-1.13.0/gui_doc.json +5277 -0
  84. package/fixtures/defold-1.13.0/html5_doc.json +64 -0
  85. package/fixtures/defold-1.13.0/http_doc.json +66 -0
  86. package/fixtures/defold-1.13.0/image_doc.json +170 -0
  87. package/fixtures/defold-1.13.0/import-manifest.json +10558 -0
  88. package/fixtures/defold-1.13.0/io_doc.json +399 -0
  89. package/fixtures/defold-1.13.0/json_doc.json +97 -0
  90. package/fixtures/defold-1.13.0/label_doc.json +220 -0
  91. package/fixtures/defold-1.13.0/liveupdate_doc.json +330 -0
  92. package/fixtures/defold-1.13.0/material_doc.json +238 -0
  93. package/fixtures/defold-1.13.0/math_doc.json +702 -0
  94. package/fixtures/defold-1.13.0/model_doc.json +412 -0
  95. package/fixtures/defold-1.13.0/msg_doc.json +137 -0
  96. package/fixtures/defold-1.13.0/os_doc.json +266 -0
  97. package/fixtures/defold-1.13.0/package_doc.json +139 -0
  98. package/fixtures/defold-1.13.0/particlefx_doc.json +249 -0
  99. package/fixtures/defold-1.13.0/physics_doc.json +1492 -0
  100. package/fixtures/defold-1.13.0/profiler_doc.json +375 -0
  101. package/fixtures/defold-1.13.0/render_doc.json +1381 -0
  102. package/fixtures/defold-1.13.0/resource_doc.json +762 -0
  103. package/fixtures/defold-1.13.0/socket_doc.json +2194 -0
  104. package/fixtures/defold-1.13.0/sound_doc.json +582 -0
  105. package/fixtures/defold-1.13.0/sprite_doc.json +335 -0
  106. package/fixtures/defold-1.13.0/string_doc.json +412 -0
  107. package/fixtures/defold-1.13.0/sys_doc.json +1142 -0
  108. package/fixtures/defold-1.13.0/table_doc.json +166 -0
  109. package/fixtures/defold-1.13.0/tilemap_doc.json +402 -0
  110. package/fixtures/defold-1.13.0/timer_doc.json +153 -0
  111. package/fixtures/defold-1.13.0/types_doc.json +212 -0
  112. package/fixtures/defold-1.13.0/vmath_doc.json +1814 -0
  113. package/fixtures/defold-1.13.0/window_doc.json +388 -0
  114. package/fixtures/defold-1.13.0/zlib_doc.json +70 -0
  115. package/fixtures/defold-1.13.1/b2d_body_doc.json +2428 -0
  116. package/fixtures/defold-1.13.1/b2d_chain_doc.json +394 -0
  117. package/fixtures/defold-1.13.1/b2d_doc.json +128 -0
  118. package/fixtures/defold-1.13.1/b2d_fixture_doc.json +594 -0
  119. package/fixtures/defold-1.13.1/b2d_joint_doc.json +3315 -0
  120. package/fixtures/defold-1.13.1/b2d_shape_doc.json +802 -0
  121. package/fixtures/defold-1.13.1/b2d_world_doc.json +1314 -0
  122. package/fixtures/defold-1.13.1/base_doc.json +758 -0
  123. package/fixtures/defold-1.13.1/bit_doc.json +404 -0
  124. package/fixtures/defold-1.13.1/buffer_doc.json +422 -0
  125. package/fixtures/defold-1.13.1/camera_doc.json +900 -0
  126. package/fixtures/defold-1.13.1/collectionfactory_doc.json +219 -0
  127. package/fixtures/defold-1.13.1/collectionproxy_doc.json +323 -0
  128. package/fixtures/defold-1.13.1/compute_doc.json +182 -0
  129. package/fixtures/defold-1.13.1/coroutine_doc.json +151 -0
  130. package/fixtures/defold-1.13.1/crash_doc.json +497 -0
  131. package/fixtures/defold-1.13.1/debug_doc.json +410 -0
  132. package/fixtures/defold-1.13.1/editor_doc.json +3880 -0
  133. package/fixtures/defold-1.13.1/editor_http_doc.json +273 -0
  134. package/fixtures/defold-1.13.1/editor_image_doc.json +128 -0
  135. package/fixtures/defold-1.13.1/editor_json_doc.json +59 -0
  136. package/fixtures/defold-1.13.1/editor_localization_doc.json +138 -0
  137. package/fixtures/defold-1.13.1/editor_pprint_doc.json +36 -0
  138. package/fixtures/defold-1.13.1/editor_tilemap_tiles_doc.json +235 -0
  139. package/fixtures/defold-1.13.1/editor_zip_doc.json +163 -0
  140. package/fixtures/defold-1.13.1/editor_zlib_doc.json +48 -0
  141. package/fixtures/defold-1.13.1/factory_doc.json +219 -0
  142. package/fixtures/defold-1.13.1/font_doc.json +141 -0
  143. package/fixtures/defold-1.13.1/globals_doc.json +42 -0
  144. package/fixtures/defold-1.13.1/go-instance-functions.json +102 -0
  145. package/fixtures/defold-1.13.1/go_doc.json +1989 -0
  146. package/fixtures/defold-1.13.1/graphics_doc.json +1886 -0
  147. package/fixtures/defold-1.13.1/gui_doc.json +5277 -0
  148. package/fixtures/defold-1.13.1/html5_doc.json +64 -0
  149. package/fixtures/defold-1.13.1/http_doc.json +66 -0
  150. package/fixtures/defold-1.13.1/image_doc.json +170 -0
  151. package/fixtures/defold-1.13.1/import-manifest.json +10091 -0
  152. package/fixtures/defold-1.13.1/io_doc.json +399 -0
  153. package/fixtures/defold-1.13.1/json_doc.json +97 -0
  154. package/fixtures/defold-1.13.1/label_doc.json +220 -0
  155. package/fixtures/defold-1.13.1/liveupdate_doc.json +330 -0
  156. package/fixtures/defold-1.13.1/material_doc.json +238 -0
  157. package/fixtures/defold-1.13.1/math_doc.json +702 -0
  158. package/fixtures/defold-1.13.1/model_doc.json +412 -0
  159. package/fixtures/defold-1.13.1/msg_doc.json +137 -0
  160. package/fixtures/defold-1.13.1/os_doc.json +266 -0
  161. package/fixtures/defold-1.13.1/package_doc.json +139 -0
  162. package/fixtures/defold-1.13.1/particlefx_doc.json +249 -0
  163. package/fixtures/defold-1.13.1/physics_doc.json +1492 -0
  164. package/fixtures/defold-1.13.1/profiler_doc.json +375 -0
  165. package/fixtures/defold-1.13.1/render_doc.json +1381 -0
  166. package/fixtures/defold-1.13.1/resource_doc.json +762 -0
  167. package/fixtures/defold-1.13.1/socket_doc.json +2194 -0
  168. package/fixtures/defold-1.13.1/sound_doc.json +582 -0
  169. package/fixtures/defold-1.13.1/sprite_doc.json +335 -0
  170. package/fixtures/defold-1.13.1/string_doc.json +412 -0
  171. package/fixtures/defold-1.13.1/sys_doc.json +1142 -0
  172. package/fixtures/defold-1.13.1/table_doc.json +166 -0
  173. package/fixtures/defold-1.13.1/tilemap_doc.json +402 -0
  174. package/fixtures/defold-1.13.1/timer_doc.json +153 -0
  175. package/fixtures/defold-1.13.1/types_doc.json +212 -0
  176. package/fixtures/defold-1.13.1/vmath_doc.json +1814 -0
  177. package/fixtures/defold-1.13.1/window_doc.json +388 -0
  178. package/fixtures/defold-1.13.1/zlib_doc.json +70 -0
  179. package/fixtures/defold-1.13.2/b2d_body_doc.json +2359 -0
  180. package/fixtures/defold-1.13.2/b2d_chain_doc.json +395 -0
  181. package/fixtures/defold-1.13.2/b2d_doc.json +1945 -0
  182. package/fixtures/defold-1.13.2/b2d_fixture_doc.json +595 -0
  183. package/fixtures/defold-1.13.2/b2d_joint_doc.json +3178 -0
  184. package/fixtures/defold-1.13.2/b2d_shape_doc.json +767 -0
  185. package/fixtures/defold-1.13.2/b2d_world_doc.json +1315 -0
  186. package/fixtures/defold-1.13.2/base_doc.json +759 -0
  187. package/fixtures/defold-1.13.2/bit_doc.json +405 -0
  188. package/fixtures/defold-1.13.2/buffer_doc.json +393 -0
  189. package/fixtures/defold-1.13.2/bullet3d_collision_object_doc.json +1206 -0
  190. package/fixtures/defold-1.13.2/bullet3d_constraint_doc.json +2455 -0
  191. package/fixtures/defold-1.13.2/bullet3d_doc.json +215 -0
  192. package/fixtures/defold-1.13.2/bullet3d_rigid_body_doc.json +1376 -0
  193. package/fixtures/defold-1.13.2/bullet3d_shape_doc.json +430 -0
  194. package/fixtures/defold-1.13.2/bullet3d_world_doc.json +855 -0
  195. package/fixtures/defold-1.13.2/camera_doc.json +887 -0
  196. package/fixtures/defold-1.13.2/collectionfactory_doc.json +206 -0
  197. package/fixtures/defold-1.13.2/collectionproxy_doc.json +397 -0
  198. package/fixtures/defold-1.13.2/compute_doc.json +183 -0
  199. package/fixtures/defold-1.13.2/coroutine_doc.json +152 -0
  200. package/fixtures/defold-1.13.2/crash_doc.json +483 -0
  201. package/fixtures/defold-1.13.2/debug_doc.json +411 -0
  202. package/fixtures/defold-1.13.2/editor_doc.json +6320 -0
  203. package/fixtures/defold-1.13.2/editor_http_doc.json +476 -0
  204. package/fixtures/defold-1.13.2/editor_image_doc.json +129 -0
  205. package/fixtures/defold-1.13.2/editor_json_doc.json +81 -0
  206. package/fixtures/defold-1.13.2/editor_localization_doc.json +139 -0
  207. package/fixtures/defold-1.13.2/editor_pprint_doc.json +37 -0
  208. package/fixtures/defold-1.13.2/editor_tilemap_tiles_doc.json +292 -0
  209. package/fixtures/defold-1.13.2/editor_zip_doc.json +237 -0
  210. package/fixtures/defold-1.13.2/editor_zlib_doc.json +49 -0
  211. package/fixtures/defold-1.13.2/factory_doc.json +206 -0
  212. package/fixtures/defold-1.13.2/font_doc.json +230 -0
  213. package/fixtures/defold-1.13.2/globals_doc.json +64 -0
  214. package/fixtures/defold-1.13.2/go-instance-functions.json +106 -0
  215. package/fixtures/defold-1.13.2/go_doc.json +1789 -0
  216. package/fixtures/defold-1.13.2/graphics_doc.json +1211 -0
  217. package/fixtures/defold-1.13.2/gui_doc.json +4735 -0
  218. package/fixtures/defold-1.13.2/html5_doc.json +65 -0
  219. package/fixtures/defold-1.13.2/http_doc.json +174 -0
  220. package/fixtures/defold-1.13.2/image_doc.json +298 -0
  221. package/fixtures/defold-1.13.2/import-manifest.json +10902 -0
  222. package/fixtures/defold-1.13.2/io_doc.json +400 -0
  223. package/fixtures/defold-1.13.2/json_doc.json +140 -0
  224. package/fixtures/defold-1.13.2/label_doc.json +427 -0
  225. package/fixtures/defold-1.13.2/liveupdate_doc.json +221 -0
  226. package/fixtures/defold-1.13.2/material_doc.json +773 -0
  227. package/fixtures/defold-1.13.2/math_doc.json +703 -0
  228. package/fixtures/defold-1.13.2/model_doc.json +472 -0
  229. package/fixtures/defold-1.13.2/msg_doc.json +169 -0
  230. package/fixtures/defold-1.13.2/os_doc.json +269 -0
  231. package/fixtures/defold-1.13.2/package_doc.json +140 -0
  232. package/fixtures/defold-1.13.2/particlefx_doc.json +249 -0
  233. package/fixtures/defold-1.13.2/physics_doc.json +1624 -0
  234. package/fixtures/defold-1.13.2/profiler_doc.json +348 -0
  235. package/fixtures/defold-1.13.2/render_doc.json +1623 -0
  236. package/fixtures/defold-1.13.2/resource_doc.json +1539 -0
  237. package/fixtures/defold-1.13.2/socket_doc.json +2335 -0
  238. package/fixtures/defold-1.13.2/sound_doc.json +673 -0
  239. package/fixtures/defold-1.13.2/sprite_doc.json +364 -0
  240. package/fixtures/defold-1.13.2/string_doc.json +413 -0
  241. package/fixtures/defold-1.13.2/sys_doc.json +1347 -0
  242. package/fixtures/defold-1.13.2/table_doc.json +167 -0
  243. package/fixtures/defold-1.13.2/tilemap_doc.json +369 -0
  244. package/fixtures/defold-1.13.2/timer_doc.json +214 -0
  245. package/fixtures/defold-1.13.2/types_doc.json +213 -0
  246. package/fixtures/defold-1.13.2/vmath_doc.json +2056 -0
  247. package/fixtures/defold-1.13.2/window_doc.json +426 -0
  248. package/fixtures/defold-1.13.2/zlib_doc.json +71 -0
  249. package/fixtures/defold-1.14.0/b2d_body_doc.json +2359 -0
  250. package/fixtures/defold-1.14.0/b2d_chain_doc.json +395 -0
  251. package/fixtures/defold-1.14.0/b2d_doc.json +1973 -0
  252. package/fixtures/defold-1.14.0/b2d_fixture_doc.json +595 -0
  253. package/fixtures/defold-1.14.0/b2d_joint_doc.json +3178 -0
  254. package/fixtures/defold-1.14.0/b2d_shape_doc.json +767 -0
  255. package/fixtures/defold-1.14.0/b2d_world_doc.json +1315 -0
  256. package/fixtures/defold-1.14.0/base_doc.json +759 -0
  257. package/fixtures/defold-1.14.0/bit_doc.json +405 -0
  258. package/fixtures/defold-1.14.0/buffer_doc.json +393 -0
  259. package/fixtures/defold-1.14.0/bullet3d_collision_object_doc.json +1206 -0
  260. package/fixtures/defold-1.14.0/bullet3d_constraint_doc.json +2455 -0
  261. package/fixtures/defold-1.14.0/bullet3d_doc.json +243 -0
  262. package/fixtures/defold-1.14.0/bullet3d_rigid_body_doc.json +1376 -0
  263. package/fixtures/defold-1.14.0/bullet3d_shape_doc.json +430 -0
  264. package/fixtures/defold-1.14.0/bullet3d_world_doc.json +855 -0
  265. package/fixtures/defold-1.14.0/camera_doc.json +887 -0
  266. package/fixtures/defold-1.14.0/collectionfactory_doc.json +206 -0
  267. package/fixtures/defold-1.14.0/collectionproxy_doc.json +397 -0
  268. package/fixtures/defold-1.14.0/compute_doc.json +183 -0
  269. package/fixtures/defold-1.14.0/coroutine_doc.json +152 -0
  270. package/fixtures/defold-1.14.0/crash_doc.json +483 -0
  271. package/fixtures/defold-1.14.0/debug_doc.json +411 -0
  272. package/fixtures/defold-1.14.0/editor_doc.json +6320 -0
  273. package/fixtures/defold-1.14.0/editor_http_doc.json +476 -0
  274. package/fixtures/defold-1.14.0/editor_image_doc.json +129 -0
  275. package/fixtures/defold-1.14.0/editor_json_doc.json +81 -0
  276. package/fixtures/defold-1.14.0/editor_localization_doc.json +139 -0
  277. package/fixtures/defold-1.14.0/editor_pprint_doc.json +37 -0
  278. package/fixtures/defold-1.14.0/editor_tilemap_tiles_doc.json +292 -0
  279. package/fixtures/defold-1.14.0/editor_zip_doc.json +237 -0
  280. package/fixtures/defold-1.14.0/editor_zlib_doc.json +49 -0
  281. package/fixtures/defold-1.14.0/factory_doc.json +206 -0
  282. package/fixtures/defold-1.14.0/font_doc.json +230 -0
  283. package/fixtures/defold-1.14.0/globals_doc.json +64 -0
  284. package/fixtures/defold-1.14.0/go-instance-functions.json +106 -0
  285. package/fixtures/defold-1.14.0/go_doc.json +1789 -0
  286. package/fixtures/defold-1.14.0/graphics_doc.json +1257 -0
  287. package/fixtures/defold-1.14.0/gui_doc.json +4735 -0
  288. package/fixtures/defold-1.14.0/html5_doc.json +65 -0
  289. package/fixtures/defold-1.14.0/http_doc.json +174 -0
  290. package/fixtures/defold-1.14.0/image_doc.json +298 -0
  291. package/fixtures/defold-1.14.0/import-manifest.json +10260 -0
  292. package/fixtures/defold-1.14.0/io_doc.json +400 -0
  293. package/fixtures/defold-1.14.0/json_doc.json +140 -0
  294. package/fixtures/defold-1.14.0/label_doc.json +427 -0
  295. package/fixtures/defold-1.14.0/liveupdate_doc.json +221 -0
  296. package/fixtures/defold-1.14.0/material_doc.json +773 -0
  297. package/fixtures/defold-1.14.0/math_doc.json +703 -0
  298. package/fixtures/defold-1.14.0/model_doc.json +472 -0
  299. package/fixtures/defold-1.14.0/msg_doc.json +169 -0
  300. package/fixtures/defold-1.14.0/os_doc.json +269 -0
  301. package/fixtures/defold-1.14.0/package_doc.json +140 -0
  302. package/fixtures/defold-1.14.0/particlefx_doc.json +249 -0
  303. package/fixtures/defold-1.14.0/physics_doc.json +1624 -0
  304. package/fixtures/defold-1.14.0/profiler_doc.json +348 -0
  305. package/fixtures/defold-1.14.0/render_doc.json +1628 -0
  306. package/fixtures/defold-1.14.0/resource_doc.json +1539 -0
  307. package/fixtures/defold-1.14.0/socket_doc.json +2335 -0
  308. package/fixtures/defold-1.14.0/sound_doc.json +673 -0
  309. package/fixtures/defold-1.14.0/sprite_doc.json +364 -0
  310. package/fixtures/defold-1.14.0/string_doc.json +413 -0
  311. package/fixtures/defold-1.14.0/sys_doc.json +1347 -0
  312. package/fixtures/defold-1.14.0/table_doc.json +167 -0
  313. package/fixtures/defold-1.14.0/tilemap_doc.json +369 -0
  314. package/fixtures/defold-1.14.0/timer_doc.json +214 -0
  315. package/fixtures/defold-1.14.0/types_doc.json +213 -0
  316. package/fixtures/defold-1.14.0/vmath_doc.json +2056 -0
  317. package/fixtures/defold-1.14.0/window_doc.json +426 -0
  318. package/fixtures/defold-1.14.0/zlib_doc.json +71 -0
  319. package/package.json +13 -6
  320. package/scripts/cli-runtime.ts +18 -0
  321. package/scripts/example-store-io.ts +2 -2
  322. package/scripts/extension-goldens.ts +9 -5
  323. package/scripts/generate-api-availability.ts +1 -1
  324. package/scripts/generate-api-signatures.ts +1 -1
  325. package/scripts/import-defold-release.ts +1 -1
  326. package/scripts/regen.ts +35 -9
  327. package/scripts/signature-store-fs.ts +37 -17
  328. package/scripts/sync-api-docs.ts +127 -20
  329. package/src/api-doc.ts +11 -4
  330. package/src/emit-dts.ts +115 -21
  331. package/src/index-slot-classifications.ts +75 -9
  332. package/src/index.ts +3 -1
  333. package/src/publish-dts.ts +16 -0
  334. package/src/script-api.ts +36 -38
  335. package/src/library-index-slot-classifications.ts +0 -332
@@ -0,0 +1,410 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "FUNCTION",
5
+ "name": "debug.debug",
6
+ "brief": "enters interactive debugging",
7
+ "description": "Enters an interactive mode with the user,\nrunning each string that the user enters.\nUsing simple commands and other debug facilities,\nthe user can inspect global and local variables,\nchange their values, evaluate expressions, and so on.\nA line containing only the word cont finishes this function,\nso that the caller continues its execution.\nNote that commands for debug.debug are not lexically nested\nwithin any function, and so have no direct access to local variables.",
8
+ "returnvalues": [],
9
+ "parameters": [],
10
+ "examples": "",
11
+ "replaces": "",
12
+ "error": "",
13
+ "tparams": [],
14
+ "members": [],
15
+ "notes": [],
16
+ "language": ""
17
+ },
18
+ {
19
+ "type": "FUNCTION",
20
+ "name": "debug.getfenv",
21
+ "brief": "returns the environment of an object",
22
+ "description": "Returns the environment of object o.",
23
+ "returnvalues": [],
24
+ "parameters": [
25
+ {
26
+ "name": "o",
27
+ "doc": "",
28
+ "types": ["any"],
29
+ "is_optional": "False"
30
+ }
31
+ ],
32
+ "examples": "",
33
+ "replaces": "",
34
+ "error": "",
35
+ "tparams": [],
36
+ "members": [],
37
+ "notes": [],
38
+ "language": ""
39
+ },
40
+ {
41
+ "type": "FUNCTION",
42
+ "name": "debug.gethook",
43
+ "brief": "returns the current hook settings",
44
+ "description": "Returns the current hook settings of the thread, as three values:\nthe current hook function, the current hook mask,\nand the current hook count\n(as set by the debug.sethook function).",
45
+ "returnvalues": [],
46
+ "parameters": [
47
+ {
48
+ "name": "thread",
49
+ "doc": "",
50
+ "types": ["thread"],
51
+ "is_optional": "True"
52
+ }
53
+ ],
54
+ "examples": "",
55
+ "replaces": "",
56
+ "error": "",
57
+ "tparams": [],
58
+ "members": [],
59
+ "notes": [],
60
+ "language": ""
61
+ },
62
+ {
63
+ "type": "FUNCTION",
64
+ "name": "debug.getinfo",
65
+ "brief": "returns a table with information about a function",
66
+ "description": "Returns a table with information about a function.\nYou can give the function directly,\nor you can give a number as the value of function,\nwhich means the function running at level function of the call stack\nof the given thread:\nlevel 0 is the current function (getinfo itself);\nlevel 1 is the function that called getinfo;\nand so on.\nIf function is a number larger than the number of active functions,\nthen getinfo returns <span class=\"type\"> nil</span>.\nThe returned table can contain all the fields returned by lua_getinfo,\nwith the string what describing which fields to fill in.\nThe default for what is to get all information available,\nexcept the table of valid lines.\nIf present,\nthe option 'f'\nadds a field named func with the function itself.\nIf present,\nthe option 'L'\nadds a field named activelines with the table of\nvalid lines.\nFor instance, the expression <code>debug.getinfo(1,\"n\").name</code> returns\na table with a name for the current function,\nif a reasonable name can be found,\nand the expression <code>debug.getinfo(print)</code>\nreturns a table with all available information\nabout the print function.",
67
+ "returnvalues": [],
68
+ "parameters": [
69
+ {
70
+ "name": "thread",
71
+ "doc": "",
72
+ "types": ["thread"],
73
+ "is_optional": "True"
74
+ },
75
+ {
76
+ "name": "function",
77
+ "doc": "",
78
+ "types": ["function"],
79
+ "is_optional": "False"
80
+ },
81
+ {
82
+ "name": "what",
83
+ "doc": "",
84
+ "types": ["string"],
85
+ "is_optional": "True"
86
+ }
87
+ ],
88
+ "examples": "",
89
+ "replaces": "",
90
+ "error": "",
91
+ "tparams": [],
92
+ "members": [],
93
+ "notes": [],
94
+ "language": ""
95
+ },
96
+ {
97
+ "type": "FUNCTION",
98
+ "name": "debug.getlocal",
99
+ "brief": "returns name and value of a local variable",
100
+ "description": "This function returns the name and the value of the local variable\nwith index local of the function at level level of the stack.\n(The first parameter or local variable has index 1, and so on,\nuntil the last active local variable.)\nThe function returns <span class=\"type\"> nil</span> if there is no local\nvariable with the given index,\nand raises an error when called with a level out of range.\n(You can call debug.getinfo to check whether the level is valid.)\nVariable names starting with '(' (open parentheses)\nrepresent internal variables\n(loop control variables, temporaries, and C function locals).",
101
+ "returnvalues": [],
102
+ "parameters": [
103
+ {
104
+ "name": "thread",
105
+ "doc": "",
106
+ "types": ["thread"],
107
+ "is_optional": "True"
108
+ },
109
+ {
110
+ "name": "level",
111
+ "doc": "",
112
+ "types": ["number"],
113
+ "is_optional": "False"
114
+ },
115
+ {
116
+ "name": "local",
117
+ "doc": "",
118
+ "types": ["number"],
119
+ "is_optional": "False"
120
+ }
121
+ ],
122
+ "examples": "",
123
+ "replaces": "",
124
+ "error": "",
125
+ "tparams": [],
126
+ "members": [],
127
+ "notes": [],
128
+ "language": ""
129
+ },
130
+ {
131
+ "type": "FUNCTION",
132
+ "name": "debug.getmetatable",
133
+ "brief": "returns the metatable of the given object",
134
+ "description": "Returns the metatable of the given object\nor <span class=\"type\"> nil</span> if it does not have a metatable.",
135
+ "returnvalues": [],
136
+ "parameters": [
137
+ {
138
+ "name": "object",
139
+ "doc": "",
140
+ "types": ["any"],
141
+ "is_optional": "False"
142
+ }
143
+ ],
144
+ "examples": "",
145
+ "replaces": "",
146
+ "error": "",
147
+ "tparams": [],
148
+ "members": [],
149
+ "notes": [],
150
+ "language": ""
151
+ },
152
+ {
153
+ "type": "FUNCTION",
154
+ "name": "debug.getregistry",
155
+ "brief": "returns the registry table",
156
+ "description": "Returns the registry table .",
157
+ "returnvalues": [],
158
+ "parameters": [],
159
+ "examples": "",
160
+ "replaces": "",
161
+ "error": "",
162
+ "tparams": [],
163
+ "members": [],
164
+ "notes": [],
165
+ "language": ""
166
+ },
167
+ {
168
+ "type": "FUNCTION",
169
+ "name": "debug.getupvalue",
170
+ "brief": "returns the name and value of an upvalue",
171
+ "description": "This function returns the name and the value of the upvalue\nwith index up of the function func.\nThe function returns <span class=\"type\"> nil</span> if there is no upvalue with the given index.",
172
+ "returnvalues": [],
173
+ "parameters": [
174
+ {
175
+ "name": "func",
176
+ "doc": "",
177
+ "types": ["function"],
178
+ "is_optional": "False"
179
+ },
180
+ {
181
+ "name": "up",
182
+ "doc": "",
183
+ "types": ["number"],
184
+ "is_optional": "False"
185
+ }
186
+ ],
187
+ "examples": "",
188
+ "replaces": "",
189
+ "error": "",
190
+ "tparams": [],
191
+ "members": [],
192
+ "notes": [],
193
+ "language": ""
194
+ },
195
+ {
196
+ "type": "FUNCTION",
197
+ "name": "debug.setfenv",
198
+ "brief": "sets the environment of an object",
199
+ "description": "Sets the environment of the given object to the given table.\nReturns object.",
200
+ "returnvalues": [],
201
+ "parameters": [
202
+ {
203
+ "name": "object",
204
+ "doc": "",
205
+ "types": ["any"],
206
+ "is_optional": "False"
207
+ },
208
+ {
209
+ "name": "table",
210
+ "doc": "",
211
+ "types": ["table"],
212
+ "is_optional": "False"
213
+ }
214
+ ],
215
+ "examples": "",
216
+ "replaces": "",
217
+ "error": "",
218
+ "tparams": [],
219
+ "members": [],
220
+ "notes": [],
221
+ "language": ""
222
+ },
223
+ {
224
+ "type": "FUNCTION",
225
+ "name": "debug.sethook",
226
+ "brief": "sets a debug hook function",
227
+ "description": "Sets the given function as a hook.\nThe string mask and the number count describe\nwhen the hook will be called.\nThe string mask may have the following characters,\nwith the given meaning:\n<dl>\n<dt><code>\"c\"</code></dt>\n<dd>the hook is called every time Lua calls a function;</dd>\n<dt><code>\"r\"</code></dt>\n<dd>the hook is called every time Lua returns from a function;</dd>\n<dt><code>\"l\"</code></dt>\n<dd>the hook is called every time Lua enters a new line of code.</dd>\n</dl>\nWith a count different from zero,\nthe hook is called after every count instructions.\nWhen called without arguments,\ndebug.sethook turns off the hook.\nWhen the hook is called, its first parameter is a string\ndescribing the event that has triggered its call:\n<code>\"call\"</code>, <code>\"return\"</code> (or <code>\"tail return\"</code>,\nwhen simulating a return from a tail call),\n<code>\"line\"</code>, and <code>\"count\"</code>.\nFor line events,\nthe hook also gets the new line number as its second parameter.\nInside a hook,\nyou can call getinfo with level 2 to get more information about\nthe running function\n(level 0 is the getinfo function,\nand level 1 is the hook function),\nunless the event is <code>\"tail return\"</code>.\nIn this case, Lua is only simulating the return,\nand a call to getinfo will return invalid data.",
228
+ "returnvalues": [],
229
+ "parameters": [
230
+ {
231
+ "name": "thread",
232
+ "doc": "",
233
+ "types": ["thread"],
234
+ "is_optional": "True"
235
+ },
236
+ {
237
+ "name": "hook",
238
+ "doc": "",
239
+ "types": ["function"],
240
+ "is_optional": "False"
241
+ },
242
+ {
243
+ "name": "mask",
244
+ "doc": "",
245
+ "types": ["string"],
246
+ "is_optional": "False"
247
+ },
248
+ {
249
+ "name": "count",
250
+ "doc": "",
251
+ "types": ["number"],
252
+ "is_optional": "True"
253
+ }
254
+ ],
255
+ "examples": "",
256
+ "replaces": "",
257
+ "error": "",
258
+ "tparams": [],
259
+ "members": [],
260
+ "notes": [],
261
+ "language": ""
262
+ },
263
+ {
264
+ "type": "FUNCTION",
265
+ "name": "debug.setlocal",
266
+ "brief": "sets the value of the local variable",
267
+ "description": "This function assigns the value value to the local variable\nwith index local of the function at level level of the stack.\nThe function returns <span class=\"type\"> nil</span> if there is no local\nvariable with the given index,\nand raises an error when called with a level out of range.\n(You can call getinfo to check whether the level is valid.)\nOtherwise, it returns the name of the local variable.",
268
+ "returnvalues": [],
269
+ "parameters": [
270
+ {
271
+ "name": "thread",
272
+ "doc": "",
273
+ "types": ["thread"],
274
+ "is_optional": "True"
275
+ },
276
+ {
277
+ "name": "level",
278
+ "doc": "",
279
+ "types": ["number"],
280
+ "is_optional": "False"
281
+ },
282
+ {
283
+ "name": "local",
284
+ "doc": "",
285
+ "types": ["number"],
286
+ "is_optional": "False"
287
+ },
288
+ {
289
+ "name": "value",
290
+ "doc": "",
291
+ "types": ["any"],
292
+ "is_optional": "False"
293
+ }
294
+ ],
295
+ "examples": "",
296
+ "replaces": "",
297
+ "error": "",
298
+ "tparams": [],
299
+ "members": [],
300
+ "notes": [],
301
+ "language": ""
302
+ },
303
+ {
304
+ "type": "FUNCTION",
305
+ "name": "debug.setmetatable",
306
+ "brief": "sets the metatable for an object",
307
+ "description": "Sets the metatable for the given object to the given table\n(which can be <span class=\"type\"> nil</span>).",
308
+ "returnvalues": [],
309
+ "parameters": [
310
+ {
311
+ "name": "object",
312
+ "doc": "",
313
+ "types": ["any"],
314
+ "is_optional": "False"
315
+ },
316
+ {
317
+ "name": "table",
318
+ "doc": "",
319
+ "types": ["table"],
320
+ "is_optional": "False"
321
+ }
322
+ ],
323
+ "examples": "",
324
+ "replaces": "",
325
+ "error": "",
326
+ "tparams": [],
327
+ "members": [],
328
+ "notes": [],
329
+ "language": ""
330
+ },
331
+ {
332
+ "type": "FUNCTION",
333
+ "name": "debug.setupvalue",
334
+ "brief": "sets an upvalue for a function",
335
+ "description": "This function assigns the value value to the upvalue\nwith index up of the function func.\nThe function returns <span class=\"type\"> nil</span> if there is no upvalue\nwith the given index.\nOtherwise, it returns the name of the upvalue.",
336
+ "returnvalues": [],
337
+ "parameters": [
338
+ {
339
+ "name": "func",
340
+ "doc": "",
341
+ "types": ["function"],
342
+ "is_optional": "False"
343
+ },
344
+ {
345
+ "name": "up",
346
+ "doc": "",
347
+ "types": ["number"],
348
+ "is_optional": "False"
349
+ },
350
+ {
351
+ "name": "value",
352
+ "doc": "",
353
+ "types": ["any"],
354
+ "is_optional": "False"
355
+ }
356
+ ],
357
+ "examples": "",
358
+ "replaces": "",
359
+ "error": "",
360
+ "tparams": [],
361
+ "members": [],
362
+ "notes": [],
363
+ "language": ""
364
+ },
365
+ {
366
+ "type": "FUNCTION",
367
+ "name": "debug.traceback",
368
+ "brief": "returns a string with a traceback of the stack call",
369
+ "description": "Returns a string with a traceback of the call stack.\nAn optional message string is appended\nat the beginning of the traceback.\nAn optional level number tells at which level\nto start the traceback\n(default is 1, the function calling traceback).",
370
+ "returnvalues": [],
371
+ "parameters": [
372
+ {
373
+ "name": "thread",
374
+ "doc": "",
375
+ "types": ["thread"],
376
+ "is_optional": "True"
377
+ },
378
+ {
379
+ "name": "message",
380
+ "doc": "",
381
+ "types": ["string"],
382
+ "is_optional": "True"
383
+ },
384
+ {
385
+ "name": "level",
386
+ "doc": "",
387
+ "types": ["number"],
388
+ "is_optional": "True"
389
+ }
390
+ ],
391
+ "examples": "",
392
+ "replaces": "",
393
+ "error": "",
394
+ "tparams": [],
395
+ "members": [],
396
+ "notes": [],
397
+ "language": ""
398
+ }
399
+ ],
400
+ "info": {
401
+ "namespace": "debug",
402
+ "name": "Debug",
403
+ "brief": "Lua debug standard library",
404
+ "description": "Documentation for the Lua debug standard library.\n\nFrom [Lua 5.1 Reference Manual](https://www.lua.org/manual/5.1/)\nby Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes.\n\nCopyright &copy; 2006-2012 Lua.org, PUC-Rio.\n\nFreely available under the terms of the [Lua license](https://www.lua.org/license.html).",
405
+ "path": "engine/lua/src/lua_debug.doc_h",
406
+ "file": "",
407
+ "notes": [],
408
+ "language": "Lua"
409
+ }
410
+ }
@@ -0,0 +1,219 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "FUNCTION",
5
+ "name": "factory.get_status",
6
+ "brief": "Get factory status",
7
+ "description": "This returns status of the factory.\nCalling this function when the factory is not marked as dynamic loading always returns\nfactory.STATUS_LOADED.",
8
+ "returnvalues": [
9
+ {
10
+ "name": "status",
11
+ "doc": "status of the factory component\n<ul>\n<li><code>factory.STATUS_UNLOADED</code></li>\n<li><code>factory.STATUS_LOADING</code></li>\n<li><code>factory.STATUS_LOADED</code></li>\n</ul>",
12
+ "types": ["constant"]
13
+ }
14
+ ],
15
+ "parameters": [
16
+ {
17
+ "name": "url",
18
+ "doc": "the factory component to get status from",
19
+ "types": ["string", "hash", "url"],
20
+ "is_optional": "True"
21
+ }
22
+ ],
23
+ "examples": "",
24
+ "replaces": "",
25
+ "error": "",
26
+ "tparams": [],
27
+ "members": [],
28
+ "notes": [],
29
+ "language": ""
30
+ },
31
+ {
32
+ "type": "CONSTANT",
33
+ "name": "factory.STATUS_UNLOADED",
34
+ "brief": "unloaded",
35
+ "description": "unloaded",
36
+ "returnvalues": [],
37
+ "parameters": [],
38
+ "examples": "",
39
+ "replaces": "",
40
+ "error": "",
41
+ "tparams": [],
42
+ "members": [],
43
+ "notes": [],
44
+ "language": ""
45
+ },
46
+ {
47
+ "type": "CONSTANT",
48
+ "name": "factory.STATUS_LOADING",
49
+ "brief": "loading",
50
+ "description": "loading",
51
+ "returnvalues": [],
52
+ "parameters": [],
53
+ "examples": "",
54
+ "replaces": "",
55
+ "error": "",
56
+ "tparams": [],
57
+ "members": [],
58
+ "notes": [],
59
+ "language": ""
60
+ },
61
+ {
62
+ "type": "CONSTANT",
63
+ "name": "factory.STATUS_LOADED",
64
+ "brief": "loaded",
65
+ "description": "loaded",
66
+ "returnvalues": [],
67
+ "parameters": [],
68
+ "examples": "",
69
+ "replaces": "",
70
+ "error": "",
71
+ "tparams": [],
72
+ "members": [],
73
+ "notes": [],
74
+ "language": ""
75
+ },
76
+ {
77
+ "type": "FUNCTION",
78
+ "name": "factory.unload",
79
+ "brief": "Unload resources previously loaded using factory.load",
80
+ "description": "This decreases the reference count for each resource loaded with factory.load. If reference is zero, the resource is destroyed.\nCalling this function when the factory is not marked as dynamic loading does nothing.",
81
+ "returnvalues": [],
82
+ "parameters": [
83
+ {
84
+ "name": "url",
85
+ "doc": "the factory component to unload",
86
+ "types": ["string", "hash", "url"],
87
+ "is_optional": "True"
88
+ }
89
+ ],
90
+ "examples": "How to unload resources of a factory prototype loaded with factory.load\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">factory</span><span class=\"p\">.</span><span class=\"n\">unload</span><span class=\"p\">(</span><span class=\"s2\">&quot;#factory&quot;</span><span class=\"p\">)</span>\n</code></pre></div>",
91
+ "replaces": "",
92
+ "error": "",
93
+ "tparams": [],
94
+ "members": [],
95
+ "notes": [],
96
+ "language": ""
97
+ },
98
+ {
99
+ "type": "FUNCTION",
100
+ "name": "factory.load",
101
+ "brief": "Load resources of a factory prototype.",
102
+ "description": "Resources are referenced by the factory component until the existing (parent) collection is destroyed or factory.unload is called.\nCalling this function when the factory is not marked as dynamic loading does nothing.",
103
+ "returnvalues": [],
104
+ "parameters": [
105
+ {
106
+ "name": "url",
107
+ "doc": "the factory component to load",
108
+ "types": ["string", "hash", "url"],
109
+ "is_optional": "True"
110
+ },
111
+ {
112
+ "name": "complete_function",
113
+ "doc": "function to call when resources are loaded.\n<dl>\n<dt><code>self</code></dt>\n<dd><span class=\"type\">object</span> The current object.</dd>\n<dt><code>url</code></dt>\n<dd><span class=\"type\">url</span> url of the factory component</dd>\n<dt><code>result</code></dt>\n<dd><span class=\"type\">boolean</span> True if resources were loaded successfully</dd>\n</dl>",
114
+ "types": ["function(self, url, result)"],
115
+ "is_optional": "True"
116
+ }
117
+ ],
118
+ "examples": "How to load resources of a factory prototype.\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">factory</span><span class=\"p\">.</span><span class=\"n\">load</span><span class=\"p\">(</span><span class=\"s2\">&quot;#factory&quot;</span><span class=\"p\">,</span> <span class=\"kr\">function</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">url</span><span class=\"p\">,</span> <span class=\"n\">result</span><span class=\"p\">)</span> <span class=\"kr\">end</span><span class=\"p\">)</span>\n</code></pre></div>",
119
+ "replaces": "",
120
+ "error": "",
121
+ "tparams": [],
122
+ "members": [],
123
+ "notes": [],
124
+ "language": ""
125
+ },
126
+ {
127
+ "type": "FUNCTION",
128
+ "name": "factory.create",
129
+ "brief": "make a factory create a new game object",
130
+ "description": "The URL identifies which factory should create the game object.\nIf the game object is created inside of the frame (e.g. from an update callback), the game object will be created instantly, but none of its component will be updated in the same frame.\nProperties defined in scripts in the created game object can be overridden through the properties-parameter below.\nSee go.property for more information on script properties.\n<span class=\"icon-attention\"></span> Calling <a href=\"/ref/factory#factory.create\">factory.create</a> on a factory that is marked as dynamic without having loaded resources\nusing <a href=\"/ref/factory#factory.load\">factory.load</a> will synchronously load and create resources which may affect application performance.",
131
+ "returnvalues": [
132
+ {
133
+ "name": "id",
134
+ "doc": "the global id of the spawned game object",
135
+ "types": ["hash"]
136
+ }
137
+ ],
138
+ "parameters": [
139
+ {
140
+ "name": "url",
141
+ "doc": "the factory that should create a game object.",
142
+ "types": ["string", "hash", "url"],
143
+ "is_optional": "False"
144
+ },
145
+ {
146
+ "name": "position",
147
+ "doc": "the position of the new game object, the position of the game object calling <code>factory.create()</code> is used by default, or if the value is <code>nil</code>.",
148
+ "types": ["vector3"],
149
+ "is_optional": "True"
150
+ },
151
+ {
152
+ "name": "rotation",
153
+ "doc": "the rotation of the new game object, the rotation of the game object calling <code>factory.create()</code> is used by default, or if the value is <code>nil</code>.",
154
+ "types": ["quaternion"],
155
+ "is_optional": "True"
156
+ },
157
+ {
158
+ "name": "properties",
159
+ "doc": "the properties defined in a script attached to the new game object.",
160
+ "types": ["table"],
161
+ "is_optional": "True"
162
+ },
163
+ {
164
+ "name": "scale",
165
+ "doc": "the scale of the new game object (must be greater than 0), the scale of the game object containing the factory is used by default, or if the value is <code>nil</code>",
166
+ "types": ["number", "vector3"],
167
+ "is_optional": "True"
168
+ }
169
+ ],
170
+ "examples": "How to create a new game object:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- create a new game object and provide property values</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_created_object</span> <span class=\"o\">=</span> <span class=\"n\">factory</span><span class=\"p\">.</span><span class=\"n\">create</span><span class=\"p\">(</span><span class=\"s2\">&quot;#factory&quot;</span><span class=\"p\">,</span> <span class=\"kc\">nil</span><span class=\"p\">,</span> <span class=\"kc\">nil</span><span class=\"p\">,</span> <span class=\"p\">{</span><span class=\"n\">my_value</span> <span class=\"o\">=</span> <span class=\"mi\">1</span><span class=\"p\">})</span>\n <span class=\"c1\">-- communicate with the object</span>\n <span class=\"n\">msg</span><span class=\"p\">.</span><span class=\"n\">post</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_created_object</span><span class=\"p\">,</span> <span class=\"s2\">&quot;hello&quot;</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>\n\nAnd then let the new game object have a script attached:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">&quot;my_value&quot;</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">)</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- do something with self.my_value which is now one</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
171
+ "replaces": "",
172
+ "error": "",
173
+ "tparams": [],
174
+ "members": [],
175
+ "notes": [],
176
+ "language": ""
177
+ },
178
+ {
179
+ "type": "FUNCTION",
180
+ "name": "factory.set_prototype",
181
+ "brief": "changes the prototype for the factory",
182
+ "description": "Changes the prototype for the factory.",
183
+ "returnvalues": [],
184
+ "parameters": [
185
+ {
186
+ "name": "url",
187
+ "doc": "the factory component",
188
+ "types": ["string", "hash", "url"],
189
+ "is_optional": "True"
190
+ },
191
+ {
192
+ "name": "prototype",
193
+ "doc": "the path to the new prototype, or <code>nil</code>",
194
+ "types": ["string", "nil"],
195
+ "is_optional": "True"
196
+ }
197
+ ],
198
+ "examples": "How to unload the previous prototypes resources, and then spawn a new game object\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">factory</span><span class=\"p\">.</span><span class=\"n\">unload</span><span class=\"p\">(</span><span class=\"s2\">&quot;#factory&quot;</span><span class=\"p\">)</span> <span class=\"c1\">-- unload the previous resources</span>\n<span class=\"n\">factory</span><span class=\"p\">.</span><span class=\"n\">set_prototype</span><span class=\"p\">(</span><span class=\"s2\">&quot;#factory&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;/main/levels/enemyA.goc&quot;</span><span class=\"p\">)</span>\n<span class=\"kd\">local</span> <span class=\"n\">id</span> <span class=\"o\">=</span> <span class=\"n\">factory</span><span class=\"p\">.</span><span class=\"n\">create</span><span class=\"p\">(</span><span class=\"s2\">&quot;#factory&quot;</span><span class=\"p\">,</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_position</span><span class=\"p\">(),</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">quat</span><span class=\"p\">())</span>\n</code></pre></div>",
199
+ "replaces": "",
200
+ "error": "",
201
+ "tparams": [],
202
+ "members": [],
203
+ "notes": [
204
+ "- Requires the factory to have the \"Dynamic Prototype\" set\n - Cannot be set when the state is COMP_FACTORY_STATUS_LOADING\n - Setting the prototype to `nil` will revert back to the original prototype."
205
+ ],
206
+ "language": ""
207
+ }
208
+ ],
209
+ "info": {
210
+ "namespace": "factory",
211
+ "name": "Factory",
212
+ "brief": "Factory API documentation",
213
+ "description": "Functions for controlling factory components which are used to\ndynamically spawn game objects into the runtime.",
214
+ "path": "engine/gamesys/src/gamesys/scripts/script_factory.cpp",
215
+ "file": "",
216
+ "notes": [],
217
+ "language": "Lua"
218
+ }
219
+ }