@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,167 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "FUNCTION",
5
+ "name": "table.concat",
6
+ "brief": "concatenates table items together into a string",
7
+ "description": "Given an array where all elements are strings or numbers,\nreturns <code>table[i]..sep..table[i+1] ... sep..table[j]</code>.\nThe default value for sep is the empty string,\nthe default for i is 1,\nand the default for j is the length of the table.\nIf i is greater than j, returns the empty string.",
8
+ "returnvalues": [],
9
+ "parameters": [
10
+ {
11
+ "name": "table",
12
+ "doc": "",
13
+ "types": ["(string|number)[]"],
14
+ "is_optional": "False"
15
+ },
16
+ {
17
+ "name": "sep",
18
+ "doc": "",
19
+ "types": ["string"],
20
+ "is_optional": "True"
21
+ },
22
+ {
23
+ "name": "i",
24
+ "doc": "",
25
+ "types": ["integer"],
26
+ "is_optional": "True"
27
+ },
28
+ {
29
+ "name": "j",
30
+ "doc": "",
31
+ "types": ["integer"],
32
+ "is_optional": "True"
33
+ }
34
+ ],
35
+ "examples": "",
36
+ "replaces": "",
37
+ "error": "",
38
+ "tparams": [],
39
+ "members": [],
40
+ "notes": [],
41
+ "language": ""
42
+ },
43
+ {
44
+ "type": "FUNCTION",
45
+ "name": "table.insert",
46
+ "brief": "inserts a new item into a numerically-keyed table",
47
+ "description": "Inserts element value at position pos in table,\nshifting up other elements to open space, if necessary.\nThe default value for pos is <code>n+1</code>,\nwhere n is the length of the table ,\nso that a call <code>table.insert(t,x)</code> inserts x at the end\nof table t.",
48
+ "returnvalues": [],
49
+ "parameters": [
50
+ {
51
+ "name": "table",
52
+ "doc": "",
53
+ "types": ["any[]"],
54
+ "is_optional": "False"
55
+ },
56
+ {
57
+ "name": "pos",
58
+ "doc": "",
59
+ "types": ["integer"],
60
+ "is_optional": "True"
61
+ },
62
+ {
63
+ "name": "value",
64
+ "doc": "",
65
+ "types": ["any"],
66
+ "is_optional": "False"
67
+ }
68
+ ],
69
+ "examples": "",
70
+ "replaces": "",
71
+ "error": "",
72
+ "tparams": [],
73
+ "members": [],
74
+ "notes": [],
75
+ "language": ""
76
+ },
77
+ {
78
+ "type": "FUNCTION",
79
+ "name": "table.maxn",
80
+ "brief": "returns the highest numeric key in the table",
81
+ "description": "Returns the largest positive numerical index of the given table,\nor zero if the table has no positive numerical indices.\n(To do its job this function does a linear traversal of\nthe whole table.)",
82
+ "returnvalues": [],
83
+ "parameters": [
84
+ {
85
+ "name": "table",
86
+ "doc": "",
87
+ "types": ["table<number, any>"],
88
+ "is_optional": "False"
89
+ }
90
+ ],
91
+ "examples": "",
92
+ "replaces": "",
93
+ "error": "",
94
+ "tparams": [],
95
+ "members": [],
96
+ "notes": [],
97
+ "language": ""
98
+ },
99
+ {
100
+ "type": "FUNCTION",
101
+ "name": "table.remove",
102
+ "brief": "removes an item from a numerically-keyed table",
103
+ "description": "Removes from table the element at position pos,\nshifting down other elements to close the space, if necessary.\nReturns the value of the removed element.\nThe default value for pos is n,\nwhere n is the length of the table,\nso that a call <code>table.remove(t)</code> removes the last element\nof table t.",
104
+ "returnvalues": [],
105
+ "parameters": [
106
+ {
107
+ "name": "table",
108
+ "doc": "",
109
+ "types": ["any[]"],
110
+ "is_optional": "False"
111
+ },
112
+ {
113
+ "name": "pos",
114
+ "doc": "",
115
+ "types": ["integer"],
116
+ "is_optional": "True"
117
+ }
118
+ ],
119
+ "examples": "",
120
+ "replaces": "",
121
+ "error": "",
122
+ "tparams": [],
123
+ "members": [],
124
+ "notes": [],
125
+ "language": ""
126
+ },
127
+ {
128
+ "type": "FUNCTION",
129
+ "name": "table.sort",
130
+ "brief": "Sorts a table",
131
+ "description": "Sorts table elements in a given order, <em>in-place</em>,\nfrom <code>table[1]</code> to <code>table[n]</code>,\nwhere n is the length of the table.\nIf comp is given,\nthen it must be a function that receives two table elements,\nand returns true\nwhen the first is less than the second\n(so that <code>not comp(a[i+1],a[i])</code> will be true after the sort).\nIf comp is not given,\nthen the standard Lua operator <code>&lt;</code> is used instead.\nThe sort algorithm is not stable;\nthat is, elements considered equal by the given order\nmay have their relative positions changed by the sort.",
132
+ "returnvalues": [],
133
+ "parameters": [
134
+ {
135
+ "name": "table",
136
+ "doc": "",
137
+ "types": ["any[]"],
138
+ "is_optional": "False"
139
+ },
140
+ {
141
+ "name": "comp",
142
+ "doc": "",
143
+ "types": ["fun(a:any, b:any):boolean"],
144
+ "is_optional": "True"
145
+ }
146
+ ],
147
+ "examples": "",
148
+ "replaces": "",
149
+ "error": "",
150
+ "tparams": [],
151
+ "members": [],
152
+ "notes": [],
153
+ "language": ""
154
+ }
155
+ ],
156
+ "info": {
157
+ "namespace": "table",
158
+ "name": "Table",
159
+ "brief": "Lua table standard library",
160
+ "description": "Documentation for the Lua table 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).",
161
+ "path": "engine/lua/src/lua_table.doc_h",
162
+ "file": "",
163
+ "notes": [],
164
+ "language": "Lua"
165
+ },
166
+ "format_version": 2
167
+ }
@@ -0,0 +1,369 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "ENUM",
5
+ "name": "tilemap.TRANSFORM",
6
+ "brief": "Tile transformations",
7
+ "description": "A transform is the arithmetic sum of one or both flip members and/or one\nrotation member. Flipping is applied before clockwise rotation.",
8
+ "returnvalues": [],
9
+ "parameters": [],
10
+ "examples": "",
11
+ "replaces": "",
12
+ "error": "",
13
+ "tparams": [],
14
+ "members": [
15
+ {
16
+ "name": "tilemap.H_FLIP",
17
+ "doc": "flip tile horizontally",
18
+ "type": ""
19
+ },
20
+ {
21
+ "name": "tilemap.ROTATE_180",
22
+ "doc": "rotate tile 180 degrees clockwise",
23
+ "type": ""
24
+ },
25
+ {
26
+ "name": "tilemap.ROTATE_270",
27
+ "doc": "rotate tile 270 degrees clockwise",
28
+ "type": ""
29
+ },
30
+ {
31
+ "name": "tilemap.ROTATE_90",
32
+ "doc": "rotate tile 90 degrees clockwise",
33
+ "type": ""
34
+ },
35
+ {
36
+ "name": "tilemap.V_FLIP",
37
+ "doc": "flip tile vertically",
38
+ "type": ""
39
+ }
40
+ ],
41
+ "notes": [],
42
+ "language": ""
43
+ },
44
+ {
45
+ "type": "PROPERTY",
46
+ "name": "tile_source",
47
+ "brief": "<span class=\"type\">hash</span> tile source",
48
+ "description": "The tile source used when rendering the tile map. The type of the property is hash.",
49
+ "returnvalues": [],
50
+ "parameters": [],
51
+ "examples": "How to set tile source using a script property (see <a href=\"/ref/resource#resource.tile_source\">resource.tile_source</a>)\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_tile_source&quot;</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">tile_source</span><span class=\"p\">(</span><span class=\"s2\">&quot;/tilesource.tilesource&quot;</span><span class=\"p\">))</span>\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=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;tile_source&quot;</span><span class=\"p\">,</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_tile_source</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
52
+ "replaces": "",
53
+ "error": "",
54
+ "tparams": [],
55
+ "members": [],
56
+ "notes": [],
57
+ "language": ""
58
+ },
59
+ {
60
+ "type": "PROPERTY",
61
+ "name": "material",
62
+ "brief": "<span class=\"type\">hash</span> tile map material",
63
+ "description": "The material used when rendering the tile map. The type of the property is hash.",
64
+ "returnvalues": [],
65
+ "parameters": [],
66
+ "examples": "How to set material using a script property (see <a href=\"/ref/resource#resource.material\">resource.material</a>)\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_material&quot;</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">(</span><span class=\"s2\">&quot;/material.material&quot;</span><span class=\"p\">))</span>\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=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;material&quot;</span><span class=\"p\">,</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
67
+ "replaces": "",
68
+ "error": "",
69
+ "tparams": [],
70
+ "members": [],
71
+ "notes": [],
72
+ "language": ""
73
+ },
74
+ {
75
+ "type": "FUNCTION",
76
+ "name": "tilemap.reset_constant",
77
+ "brief": "DEPRECATED! reset a shader constant for a tile map",
78
+ "description": "Resets a shader constant for a tile map component.\nThe constant must be defined in the material assigned to the tile map.\nResetting a constant through this function implies that the value defined in the material will be used.\nWhich tile map to reset a constant for is identified by the URL.",
79
+ "returnvalues": [],
80
+ "parameters": [
81
+ {
82
+ "name": "url",
83
+ "doc": "the tile map that should have a constant reset",
84
+ "types": ["string", "hash", "url"],
85
+ "is_optional": "False"
86
+ },
87
+ {
88
+ "name": "constant",
89
+ "doc": "name of the constant",
90
+ "types": ["string", "hash"],
91
+ "is_optional": "False"
92
+ }
93
+ ],
94
+ "examples": "The following examples assumes that the tile map has id \"tilemap\" and that the default-material in builtins is used, which defines the constant \"tint\".\nIf you assign a custom material to the tile map, you can reset the constants defined there in the same manner.\nHow to reset the tinting of a tile map:\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=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">reset_constant</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;tint&quot;</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
95
+ "replaces": "",
96
+ "error": "",
97
+ "tparams": [],
98
+ "members": [],
99
+ "notes": [],
100
+ "language": ""
101
+ },
102
+ {
103
+ "type": "FUNCTION",
104
+ "name": "tilemap.set_tile",
105
+ "brief": "set a tile in a tile map",
106
+ "description": "Replace a tile in a tile map with a new tile.\nThe coordinates of the tiles are indexed so that the \"first\" tile just\nabove and to the right of origin has coordinates 1,1.\nTiles to the left of and below origin are indexed 0, -1, -2 and so forth.\n<pre>\n+-------+-------+------+------+\n| 0,3 | 1,3 | 2,3 | 3,3 |\n+-------+-------+------+------+\n| 0,2 | 1,2 | 2,2 | 3,2 |\n+-------+-------+------+------+\n| 0,1 | 1,1 | 2,1 | 3,1 |\n+-------O-------+------+------+\n| 0,0 | 1,0 | 2,0 | 3,0 |\n+-------+-------+------+------+\n</pre>\n\nThe coordinates must be within the bounds of the tile map as it were created.\nThat is, it is not possible to extend the size of a tile map by setting tiles outside the edges.\nTo clear a tile, set the tile to number 0. Which tile map and layer to manipulate is identified by the URL and the layer name parameters.",
107
+ "returnvalues": [],
108
+ "parameters": [
109
+ {
110
+ "name": "url",
111
+ "doc": "the tile map",
112
+ "types": ["string", "hash", "url"],
113
+ "is_optional": "False"
114
+ },
115
+ {
116
+ "name": "layer",
117
+ "doc": "name of the layer for the tile",
118
+ "types": ["string", "hash"],
119
+ "is_optional": "False"
120
+ },
121
+ {
122
+ "name": "x",
123
+ "doc": "x-coordinate of the tile",
124
+ "types": ["integer"],
125
+ "is_optional": "False"
126
+ },
127
+ {
128
+ "name": "y",
129
+ "doc": "y-coordinate of the tile",
130
+ "types": ["integer"],
131
+ "is_optional": "False"
132
+ },
133
+ {
134
+ "name": "tile",
135
+ "doc": "index of new tile to set. 0 resets the cell",
136
+ "types": ["integer"],
137
+ "is_optional": "False"
138
+ },
139
+ {
140
+ "name": "transform_bitmask",
141
+ "doc": "optional flip and/or rotation should be applied to the tile",
142
+ "types": ["tilemap.TRANSFORM"],
143
+ "is_optional": "True"
144
+ }
145
+ ],
146
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"c1\">-- Clear the tile under the player.</span>\n<span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">set_tile</span><span class=\"p\">(</span><span class=\"s2\">&quot;/level#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;foreground&quot;</span><span class=\"p\">,</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">player_x</span><span class=\"p\">,</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">player_y</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">)</span>\n\n<span class=\"c1\">-- Set tile with different combination of flip and rotation</span>\n<span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">set_tile</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;layer1&quot;</span><span class=\"p\">,</span> <span class=\"n\">x</span><span class=\"p\">,</span> <span class=\"n\">y</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">H_FLIP</span> <span class=\"o\">+</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">V_FLIP</span> <span class=\"o\">+</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">ROTATE_90</span><span class=\"p\">)</span>\n<span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">set_tile</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;layer1&quot;</span><span class=\"p\">,</span> <span class=\"n\">x</span><span class=\"p\">,</span> <span class=\"n\">y</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">H_FLIP</span> <span class=\"o\">+</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">ROTATE_270</span><span class=\"p\">)</span>\n<span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">set_tile</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;layer1&quot;</span><span class=\"p\">,</span> <span class=\"n\">x</span><span class=\"p\">,</span> <span class=\"n\">y</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">V_FLIP</span> <span class=\"o\">+</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">H_FLIP</span><span class=\"p\">)</span>\n<span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">set_tile</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;layer1&quot;</span><span class=\"p\">,</span> <span class=\"n\">x</span><span class=\"p\">,</span> <span class=\"n\">y</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">ROTATE_180</span><span class=\"p\">)</span>\n</code></pre></div>",
147
+ "replaces": "",
148
+ "error": "",
149
+ "tparams": [],
150
+ "members": [],
151
+ "notes": [],
152
+ "language": ""
153
+ },
154
+ {
155
+ "type": "FUNCTION",
156
+ "name": "tilemap.get_tile",
157
+ "brief": "get a tile from a tile map",
158
+ "description": "Get the tile set at the specified position in the tilemap.\nThe position is identified by the tile index starting at origin\nwith index 1, 1. (see <a href=\"/ref/tilemap#tilemap.set_tile()\">tilemap.set_tile()</a>)\nWhich tile map and layer to query is identified by the URL and the\nlayer name parameters.",
159
+ "returnvalues": [
160
+ {
161
+ "name": "tile",
162
+ "doc": "index of the tile",
163
+ "types": ["integer"]
164
+ }
165
+ ],
166
+ "parameters": [
167
+ {
168
+ "name": "url",
169
+ "doc": "the tile map",
170
+ "types": ["string", "hash", "url"],
171
+ "is_optional": "False"
172
+ },
173
+ {
174
+ "name": "layer",
175
+ "doc": "name of the layer for the tile",
176
+ "types": ["string", "hash"],
177
+ "is_optional": "False"
178
+ },
179
+ {
180
+ "name": "x",
181
+ "doc": "x-coordinate of the tile",
182
+ "types": ["integer"],
183
+ "is_optional": "False"
184
+ },
185
+ {
186
+ "name": "y",
187
+ "doc": "y-coordinate of the tile",
188
+ "types": ["integer"],
189
+ "is_optional": "False"
190
+ }
191
+ ],
192
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"c1\">-- get the tile under the player.</span>\n<span class=\"kd\">local</span> <span class=\"n\">tileno</span> <span class=\"o\">=</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">get_tile</span><span class=\"p\">(</span><span class=\"s2\">&quot;/level#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;foreground&quot;</span><span class=\"p\">,</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">player_x</span><span class=\"p\">,</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">player_y</span><span class=\"p\">)</span>\n</code></pre></div>",
193
+ "replaces": "",
194
+ "error": "",
195
+ "tparams": [],
196
+ "members": [],
197
+ "notes": [],
198
+ "language": ""
199
+ },
200
+ {
201
+ "type": "FUNCTION",
202
+ "name": "tilemap.get_tile_info",
203
+ "brief": "get full information for a tile from a tile map",
204
+ "description": "Get the tile information at the specified position in the tilemap.\nThe position is identified by the tile index starting at origin\nwith index 1, 1. (see <a href=\"/ref/tilemap#tilemap.set_tile()\">tilemap.set_tile()</a>)\nWhich tile map and layer to query is identified by the URL and the\nlayer name parameters.",
205
+ "returnvalues": [
206
+ {
207
+ "name": "tile_info",
208
+ "doc": "full tile information",
209
+ "types": ["{ index:integer, h_flip:boolean, v_flip:boolean, rotate_90:boolean }"]
210
+ }
211
+ ],
212
+ "parameters": [
213
+ {
214
+ "name": "url",
215
+ "doc": "the tile map",
216
+ "types": ["string", "hash", "url"],
217
+ "is_optional": "False"
218
+ },
219
+ {
220
+ "name": "layer",
221
+ "doc": "name of the layer for the tile",
222
+ "types": ["string", "hash"],
223
+ "is_optional": "False"
224
+ },
225
+ {
226
+ "name": "x",
227
+ "doc": "x-coordinate of the tile",
228
+ "types": ["integer"],
229
+ "is_optional": "False"
230
+ },
231
+ {
232
+ "name": "y",
233
+ "doc": "y-coordinate of the tile",
234
+ "types": ["integer"],
235
+ "is_optional": "False"
236
+ }
237
+ ],
238
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"c1\">-- get the tile under the player.</span>\n<span class=\"kd\">local</span> <span class=\"n\">tile_info</span> <span class=\"o\">=</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">get_tile_info</span><span class=\"p\">(</span><span class=\"s2\">&quot;/level#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;foreground&quot;</span><span class=\"p\">,</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">player_x</span><span class=\"p\">,</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">player_y</span><span class=\"p\">)</span>\n<span class=\"n\">pprint</span><span class=\"p\">(</span><span class=\"n\">tile_info</span><span class=\"p\">)</span>\n<span class=\"c1\">-- {</span>\n<span class=\"c1\">-- index = 0,</span>\n<span class=\"c1\">-- h_flip = false,</span>\n<span class=\"c1\">-- v_flip = true,</span>\n<span class=\"c1\">-- rotate_90 = false</span>\n<span class=\"c1\">-- }</span>\n</code></pre></div>",
239
+ "replaces": "",
240
+ "error": "",
241
+ "tparams": [],
242
+ "members": [],
243
+ "notes": [],
244
+ "language": ""
245
+ },
246
+ {
247
+ "type": "FUNCTION",
248
+ "name": "tilemap.get_tiles",
249
+ "brief": "get all the tiles from a layer in a tilemap",
250
+ "description": "Retrieves all the tiles for the specified layer in the tilemap.\nIt returns a table of rows where the keys are the\ntile positions (see <a href=\"/ref/tilemap#tilemap.get_bounds()\">tilemap.get_bounds()</a>).\nYou can iterate it using <code>tiles[row_index][column_index]</code>.",
251
+ "returnvalues": [
252
+ {
253
+ "name": "tiles",
254
+ "doc": "a table of rows representing the layer",
255
+ "types": ["table<integer, table<integer, integer>>"]
256
+ }
257
+ ],
258
+ "parameters": [
259
+ {
260
+ "name": "url",
261
+ "doc": "the tilemap",
262
+ "types": ["string", "hash", "url"],
263
+ "is_optional": "False"
264
+ },
265
+ {
266
+ "name": "layer",
267
+ "doc": "the name of the layer for the tiles",
268
+ "types": ["string", "hash"],
269
+ "is_optional": "False"
270
+ }
271
+ ],
272
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">left</span><span class=\"p\">,</span> <span class=\"n\">bottom</span><span class=\"p\">,</span> <span class=\"n\">columns_count</span><span class=\"p\">,</span> <span class=\"n\">rows_count</span> <span class=\"o\">=</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">get_bounds</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">)</span>\n<span class=\"kd\">local</span> <span class=\"n\">tiles</span> <span class=\"o\">=</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">get_tiles</span><span class=\"p\">(</span><span class=\"s2\">&quot;#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;layer&quot;</span><span class=\"p\">)</span>\n<span class=\"kd\">local</span> <span class=\"n\">tile</span><span class=\"p\">,</span> <span class=\"n\">count</span> <span class=\"o\">=</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span>\n<span class=\"kr\">for</span> <span class=\"n\">row_index</span> <span class=\"o\">=</span> <span class=\"n\">bottom</span><span class=\"p\">,</span> <span class=\"n\">bottom</span> <span class=\"o\">+</span> <span class=\"n\">rows_count</span> <span class=\"o\">-</span> <span class=\"mi\">1</span> <span class=\"kr\">do</span>\n <span class=\"kr\">for</span> <span class=\"n\">column_index</span> <span class=\"o\">=</span> <span class=\"n\">left</span><span class=\"p\">,</span> <span class=\"n\">left</span> <span class=\"o\">+</span> <span class=\"n\">columns_count</span> <span class=\"o\">-</span> <span class=\"mi\">1</span> <span class=\"kr\">do</span>\n <span class=\"n\">tile</span> <span class=\"o\">=</span> <span class=\"n\">tiles</span><span class=\"p\">[</span><span class=\"n\">row_index</span><span class=\"p\">][</span><span class=\"n\">column_index</span><span class=\"p\">]</span>\n <span class=\"n\">count</span> <span class=\"o\">=</span> <span class=\"n\">count</span> <span class=\"o\">+</span> <span class=\"mi\">1</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
273
+ "replaces": "",
274
+ "error": "",
275
+ "tparams": [],
276
+ "members": [],
277
+ "notes": [],
278
+ "language": ""
279
+ },
280
+ {
281
+ "type": "FUNCTION",
282
+ "name": "tilemap.get_bounds",
283
+ "brief": "get the bounds of a tile map",
284
+ "description": "Get the bounds for a tile map. This function returns multiple values:\nThe lower left corner index x and y coordinates (1-indexed),\nthe tile map width and the tile map height.\nThe resulting values take all tile map layers into account, meaning that\nthe bounds are calculated as if all layers were collapsed into one.",
285
+ "returnvalues": [
286
+ {
287
+ "name": "x",
288
+ "doc": "x coordinate of the bottom left corner",
289
+ "types": ["integer"]
290
+ },
291
+ {
292
+ "name": "y",
293
+ "doc": "y coordinate of the bottom left corner",
294
+ "types": ["integer"]
295
+ },
296
+ {
297
+ "name": "w",
298
+ "doc": "number of columns (width) in the tile map",
299
+ "types": ["integer"]
300
+ },
301
+ {
302
+ "name": "h",
303
+ "doc": "number of rows (height) in the tile map",
304
+ "types": ["integer"]
305
+ }
306
+ ],
307
+ "parameters": [
308
+ {
309
+ "name": "url",
310
+ "doc": "the tile map",
311
+ "types": ["string", "hash", "url"],
312
+ "is_optional": "False"
313
+ }
314
+ ],
315
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"c1\">-- get the level bounds.</span>\n<span class=\"kd\">local</span> <span class=\"n\">x</span><span class=\"p\">,</span> <span class=\"n\">y</span><span class=\"p\">,</span> <span class=\"n\">w</span><span class=\"p\">,</span> <span class=\"n\">h</span> <span class=\"o\">=</span> <span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">get_bounds</span><span class=\"p\">(</span><span class=\"s2\">&quot;/level#tilemap&quot;</span><span class=\"p\">)</span>\n</code></pre></div>",
316
+ "replaces": "",
317
+ "error": "",
318
+ "tparams": [],
319
+ "members": [],
320
+ "notes": [],
321
+ "language": ""
322
+ },
323
+ {
324
+ "type": "FUNCTION",
325
+ "name": "tilemap.set_visible",
326
+ "brief": "set the visibility of a layer",
327
+ "description": "Sets the visibility of the tilemap layer",
328
+ "returnvalues": [],
329
+ "parameters": [
330
+ {
331
+ "name": "url",
332
+ "doc": "the tile map",
333
+ "types": ["string", "hash", "url"],
334
+ "is_optional": "False"
335
+ },
336
+ {
337
+ "name": "layer",
338
+ "doc": "name of the layer for the tile",
339
+ "types": ["string", "hash"],
340
+ "is_optional": "False"
341
+ },
342
+ {
343
+ "name": "visible",
344
+ "doc": "should the layer be visible",
345
+ "types": ["boolean"],
346
+ "is_optional": "False"
347
+ }
348
+ ],
349
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"c1\">-- Disable rendering of the layer</span>\n<span class=\"n\">tilemap</span><span class=\"p\">.</span><span class=\"n\">set_visible</span><span class=\"p\">(</span><span class=\"s2\">&quot;/level#tilemap&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;foreground&quot;</span><span class=\"p\">,</span> <span class=\"kc\">false</span><span class=\"p\">)</span>\n</code></pre></div>",
350
+ "replaces": "",
351
+ "error": "",
352
+ "tparams": [],
353
+ "members": [],
354
+ "notes": [],
355
+ "language": ""
356
+ }
357
+ ],
358
+ "info": {
359
+ "namespace": "tilemap",
360
+ "name": "Tilemap",
361
+ "brief": "Tilemap API documentation",
362
+ "description": "Functions and messages used to manipulate tile map components.",
363
+ "path": "engine/gamesys/src/gamesys/scripts/script_tilemap.cpp",
364
+ "file": "",
365
+ "notes": [],
366
+ "language": "Lua"
367
+ },
368
+ "format_version": 2
369
+ }