@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,65 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "FUNCTION",
5
+ "name": "html5.run",
6
+ "brief": "run JavaScript code, in the browser, from Lua",
7
+ "description": "Executes the supplied string as JavaScript inside the browser.\nA call to this function is blocking, the result is returned as-is, as a string.\n(Internally this will execute the string using the <code>eval()</code> JavaScript function.)",
8
+ "returnvalues": [
9
+ {
10
+ "name": "result",
11
+ "doc": "result as string",
12
+ "types": ["string"]
13
+ }
14
+ ],
15
+ "parameters": [
16
+ {
17
+ "name": "code",
18
+ "doc": "Javascript code to run",
19
+ "types": ["string"],
20
+ "is_optional": "False"
21
+ }
22
+ ],
23
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">res</span> <span class=\"o\">=</span> <span class=\"n\">html5</span><span class=\"p\">.</span><span class=\"n\">run</span><span class=\"p\">(</span><span class=\"s2\">&quot;10 + 20&quot;</span><span class=\"p\">)</span> <span class=\"c1\">-- returns the string &quot;30&quot;</span>\n<span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">res</span><span class=\"p\">)</span>\n<span class=\"kd\">local</span> <span class=\"n\">res_num</span> <span class=\"o\">=</span> <span class=\"nb\">tonumber</span><span class=\"p\">(</span><span class=\"n\">res</span><span class=\"p\">)</span> <span class=\"c1\">-- convert to number</span>\n<span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">res_num</span> <span class=\"o\">-</span> <span class=\"mi\">20</span><span class=\"p\">)</span> <span class=\"c1\">-- prints 10</span>\n</code></pre></div>",
24
+ "replaces": "",
25
+ "error": "",
26
+ "tparams": [],
27
+ "members": [],
28
+ "notes": [],
29
+ "language": ""
30
+ },
31
+ {
32
+ "type": "FUNCTION",
33
+ "name": "html5.set_interaction_listener",
34
+ "brief": "set a JavaScript interaction listener callback from lua",
35
+ "description": "Set a JavaScript interaction listener callaback from lua that will be\ninvoked when a user interacts with the web page by clicking, touching or typing.\nThe callback can then call DOM restricted actions like requesting a pointer lock,\nor start playing sounds the first time the callback is invoked.",
36
+ "returnvalues": [],
37
+ "parameters": [
38
+ {
39
+ "name": "callback",
40
+ "doc": "The interaction callback. Pass an empty function or <code>nil</code> if you no longer wish to receive callbacks.\n<dl>\n<dt><code>self</code></dt>\n<dd><span class=\"type\">script_instance</span> The calling script instance</dd>\n</dl>",
41
+ "types": ["fun(self:script_instance)", "nil"],
42
+ "is_optional": "False"
43
+ }
44
+ ],
45
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"kr\">function</span> <span class=\"nf\">on_interaction</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">&quot;on_interaction called&quot;</span><span class=\"p\">)</span>\n <span class=\"n\">html5</span><span class=\"p\">.</span><span class=\"n\">set_interaction_listener</span><span class=\"p\">(</span><span class=\"kc\">nil</span><span class=\"p\">)</span>\n<span class=\"kr\">end</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=\"n\">html5</span><span class=\"p\">.</span><span class=\"n\">set_interaction_listener</span><span class=\"p\">(</span><span class=\"n\">on_interaction</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
46
+ "replaces": "",
47
+ "error": "",
48
+ "tparams": [],
49
+ "members": [],
50
+ "notes": [],
51
+ "language": ""
52
+ }
53
+ ],
54
+ "info": {
55
+ "namespace": "html5",
56
+ "name": "HTML5",
57
+ "brief": "HTML5 API documentation",
58
+ "description": "HTML5 platform specific functions.\n\n[icon:html5] The following functions are only available on HTML5 builds, the `html5.*` Lua namespace will not be available on other platforms.",
59
+ "path": "engine/script/src/script_html5_js.cpp",
60
+ "file": "",
61
+ "notes": [],
62
+ "language": "Lua"
63
+ },
64
+ "format_version": 2
65
+ }
@@ -0,0 +1,174 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "STRUCT",
5
+ "name": "http.response",
6
+ "brief": "HTTP response data",
7
+ "description": "HTTP response data",
8
+ "returnvalues": [],
9
+ "parameters": [],
10
+ "examples": "",
11
+ "replaces": "",
12
+ "error": "",
13
+ "tparams": [],
14
+ "members": [
15
+ {
16
+ "name": "status",
17
+ "doc": "response status",
18
+ "type": "integer"
19
+ },
20
+ {
21
+ "name": "response?",
22
+ "doc": "response data when it is not saved to disk",
23
+ "type": "string"
24
+ },
25
+ {
26
+ "name": "headers?",
27
+ "doc": "response headers for status 200 or 206",
28
+ "type": "table<string, string>"
29
+ },
30
+ {
31
+ "name": "path?",
32
+ "doc": "destination path when the response is saved to disk",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "name": "error?",
37
+ "doc": "unexpected error, such as a file I/O error",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "name": "bytes_received?",
42
+ "doc": "bytes transferred when progress reporting is enabled",
43
+ "type": "integer"
44
+ },
45
+ {
46
+ "name": "bytes_total?",
47
+ "doc": "total request size when progress reporting is enabled",
48
+ "type": "integer"
49
+ },
50
+ {
51
+ "name": "range_start?",
52
+ "doc": "requested-file start offset",
53
+ "type": "integer"
54
+ },
55
+ {
56
+ "name": "range_end?",
57
+ "doc": "requested-file end offset, inclusive",
58
+ "type": "integer"
59
+ },
60
+ {
61
+ "name": "document_size?",
62
+ "doc": "full requested-file size",
63
+ "type": "integer"
64
+ }
65
+ ],
66
+ "notes": [],
67
+ "language": ""
68
+ },
69
+ {
70
+ "type": "STRUCT",
71
+ "name": "http.request_options",
72
+ "brief": "HTTP request options",
73
+ "description": "HTTP request options",
74
+ "returnvalues": [],
75
+ "parameters": [],
76
+ "examples": "",
77
+ "replaces": "",
78
+ "error": "",
79
+ "tparams": [],
80
+ "members": [
81
+ {
82
+ "name": "timeout?",
83
+ "doc": "timeout in seconds",
84
+ "type": "number"
85
+ },
86
+ {
87
+ "name": "path?",
88
+ "doc": "absolute destination path; overwritten only for status 200",
89
+ "type": "string"
90
+ },
91
+ {
92
+ "name": "ignore_cache?",
93
+ "doc": "do not return cached data for status 304; unavailable on HTML5",
94
+ "type": "boolean"
95
+ },
96
+ {
97
+ "name": "chunked_transfer?",
98
+ "doc": "use chunked transfer encoding for HTTPS requests larger than 16 KB; defaults to true and is unavailable on HTML5",
99
+ "type": "boolean"
100
+ },
101
+ {
102
+ "name": "report_progress?",
103
+ "doc": "report transferred and total byte counts to the callback",
104
+ "type": "boolean"
105
+ }
106
+ ],
107
+ "notes": [],
108
+ "language": ""
109
+ },
110
+ {
111
+ "type": "FUNCTION",
112
+ "name": "http.request",
113
+ "brief": "perform a HTTP/HTTPS request",
114
+ "description": "Perform a HTTP/HTTPS request.\n<span class=\"icon-attention\"></span> If no timeout value is passed, the configuration value \"network.http_timeout\" is used. If that is not set, the timeout value is <code>0</code> (which blocks indefinitely).",
115
+ "returnvalues": [],
116
+ "parameters": [
117
+ {
118
+ "name": "url",
119
+ "doc": "target url",
120
+ "types": ["string"],
121
+ "is_optional": "False"
122
+ },
123
+ {
124
+ "name": "method",
125
+ "doc": "HTTP/HTTPS method, e.g. \"GET\", \"PUT\", \"POST\" etc.",
126
+ "types": ["string"],
127
+ "is_optional": "False"
128
+ },
129
+ {
130
+ "name": "callback",
131
+ "doc": "response callback function\n<dl>\n<dt><code>self</code></dt>\n<dd><span class=\"type\">script_instance</span> The current script instance</dd>\n<dt><code>id</code></dt>\n<dd><span class=\"type\">hash</span> Internal message identifier. Do not use!</dd>\n</dl>",
132
+ "types": ["fun(self:script_instance, id:hash, response:http.response)"],
133
+ "is_optional": "False"
134
+ },
135
+ {
136
+ "name": "headers",
137
+ "doc": "optional table with custom headers",
138
+ "types": ["table<string, string>"],
139
+ "is_optional": "True"
140
+ },
141
+ {
142
+ "name": "post_data",
143
+ "doc": "optional data to send",
144
+ "types": ["string"],
145
+ "is_optional": "True"
146
+ },
147
+ {
148
+ "name": "options",
149
+ "doc": "optional request options",
150
+ "types": ["http.request_options"],
151
+ "is_optional": "True"
152
+ }
153
+ ],
154
+ "examples": "Basic HTTP-GET request. The callback receives a table with the response\nin the fields status, the response (the data) and headers (a table).\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"kr\">function</span> <span class=\"nf\">http_result</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">_</span><span class=\"p\">,</span> <span class=\"n\">response</span><span class=\"p\">)</span>\n <span class=\"kr\">if</span> <span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">bytes_total</span> <span class=\"o\">~=</span> <span class=\"kc\">nil</span> <span class=\"kr\">then</span>\n <span class=\"n\">update_my_progress_bar</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">bytes_received</span> <span class=\"o\">/</span> <span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">bytes_total</span><span class=\"p\">)</span>\n <span class=\"kr\">else</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">status</span><span class=\"p\">)</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">response</span><span class=\"p\">)</span>\n <span class=\"n\">pprint</span><span class=\"p\">(</span><span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">headers</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</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=\"n\">http</span><span class=\"p\">.</span><span class=\"n\">request</span><span class=\"p\">(</span><span class=\"s2\">&quot;http://www.google.com&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;GET&quot;</span><span class=\"p\">,</span> <span class=\"n\">http_result</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\">report_progress</span> <span class=\"o\">=</span> <span class=\"kc\">true</span> <span class=\"p\">})</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
155
+ "replaces": "",
156
+ "error": "",
157
+ "tparams": [],
158
+ "members": [],
159
+ "notes": [],
160
+ "language": ""
161
+ }
162
+ ],
163
+ "info": {
164
+ "namespace": "http",
165
+ "name": "HTTP",
166
+ "brief": "HTTP API documentation",
167
+ "description": "Functions for performing HTTP and HTTPS requests.",
168
+ "path": "engine/gamesys/src/gamesys/scripts/script_http.cpp",
169
+ "file": "",
170
+ "notes": [],
171
+ "language": "Lua"
172
+ },
173
+ "format_version": 2
174
+ }
@@ -0,0 +1,298 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "ENUM",
5
+ "name": "image.TYPE",
6
+ "brief": "Image types",
7
+ "description": "Image types",
8
+ "returnvalues": [],
9
+ "parameters": [
10
+ {
11
+ "name": "value",
12
+ "doc": "image type",
13
+ "types": ["string"],
14
+ "is_optional": "False"
15
+ }
16
+ ],
17
+ "examples": "",
18
+ "replaces": "",
19
+ "error": "",
20
+ "tparams": [],
21
+ "members": [
22
+ {
23
+ "name": "image.TYPE_RGB",
24
+ "doc": "RGB image type.",
25
+ "type": ""
26
+ },
27
+ {
28
+ "name": "image.TYPE_RGBA",
29
+ "doc": "RGBA image type.",
30
+ "type": ""
31
+ },
32
+ {
33
+ "name": "image.TYPE_LUMINANCE",
34
+ "doc": "Luminance image type.",
35
+ "type": ""
36
+ },
37
+ {
38
+ "name": "image.TYPE_LUMINANCE_ALPHA",
39
+ "doc": "Luminance-alpha image type.",
40
+ "type": ""
41
+ }
42
+ ],
43
+ "notes": [],
44
+ "language": ""
45
+ },
46
+ {
47
+ "type": "STRUCT",
48
+ "name": "image.load_options",
49
+ "brief": "Image loading options",
50
+ "description": "Image loading options",
51
+ "returnvalues": [],
52
+ "parameters": [],
53
+ "examples": "",
54
+ "replaces": "",
55
+ "error": "",
56
+ "tparams": [],
57
+ "members": [
58
+ {
59
+ "name": "premultiply_alpha?",
60
+ "doc": "Whether to premultiply alpha into the color components. Defaults to <code>false</code>.",
61
+ "type": "boolean"
62
+ },
63
+ {
64
+ "name": "flip_vertically?",
65
+ "doc": "Whether to flip the image contents vertically. Defaults to <code>false</code>.",
66
+ "type": "boolean"
67
+ }
68
+ ],
69
+ "notes": [],
70
+ "language": ""
71
+ },
72
+ {
73
+ "type": "STRUCT",
74
+ "name": "image.load_result",
75
+ "brief": "Loaded string image data",
76
+ "description": "Loaded string image data",
77
+ "returnvalues": [],
78
+ "parameters": [],
79
+ "examples": "",
80
+ "replaces": "",
81
+ "error": "",
82
+ "tparams": [],
83
+ "members": [
84
+ {
85
+ "name": "width",
86
+ "doc": "Image width.",
87
+ "type": "integer"
88
+ },
89
+ {
90
+ "name": "height",
91
+ "doc": "Image height.",
92
+ "type": "integer"
93
+ },
94
+ {
95
+ "name": "type",
96
+ "doc": "Image type.",
97
+ "type": "image.TYPE"
98
+ },
99
+ {
100
+ "name": "buffer",
101
+ "doc": "Raw image data.",
102
+ "type": "string"
103
+ }
104
+ ],
105
+ "notes": [],
106
+ "language": ""
107
+ },
108
+ {
109
+ "type": "STRUCT",
110
+ "name": "image.load_buffer_result",
111
+ "brief": "Loaded buffer image data",
112
+ "description": "Loaded buffer image data",
113
+ "returnvalues": [],
114
+ "parameters": [],
115
+ "examples": "",
116
+ "replaces": "",
117
+ "error": "",
118
+ "tparams": [],
119
+ "members": [
120
+ {
121
+ "name": "width",
122
+ "doc": "Image width.",
123
+ "type": "integer"
124
+ },
125
+ {
126
+ "name": "height",
127
+ "doc": "Image height.",
128
+ "type": "integer"
129
+ },
130
+ {
131
+ "name": "type",
132
+ "doc": "Image type.",
133
+ "type": "image.TYPE"
134
+ },
135
+ {
136
+ "name": "buffer",
137
+ "doc": "Script buffer containing the decompressed image data.",
138
+ "type": "buffer_data"
139
+ }
140
+ ],
141
+ "notes": [],
142
+ "language": ""
143
+ },
144
+ {
145
+ "type": "STRUCT",
146
+ "name": "image.astc_header",
147
+ "brief": "ASTC image header",
148
+ "description": "ASTC image header",
149
+ "returnvalues": [],
150
+ "parameters": [],
151
+ "examples": "",
152
+ "replaces": "",
153
+ "error": "",
154
+ "tparams": [],
155
+ "members": [
156
+ {
157
+ "name": "width",
158
+ "doc": "Image width.",
159
+ "type": "integer"
160
+ },
161
+ {
162
+ "name": "height",
163
+ "doc": "Image height.",
164
+ "type": "integer"
165
+ },
166
+ {
167
+ "name": "depth",
168
+ "doc": "Image depth.",
169
+ "type": "integer"
170
+ },
171
+ {
172
+ "name": "block_size_x",
173
+ "doc": "Block size on the x-axis.",
174
+ "type": "integer"
175
+ },
176
+ {
177
+ "name": "block_size_y",
178
+ "doc": "Block size on the y-axis.",
179
+ "type": "integer"
180
+ },
181
+ {
182
+ "name": "block_size_z",
183
+ "doc": "Block size on the z-axis.",
184
+ "type": "integer"
185
+ }
186
+ ],
187
+ "notes": [],
188
+ "language": ""
189
+ },
190
+ {
191
+ "type": "FUNCTION",
192
+ "name": "image.load",
193
+ "brief": "load image from buffer",
194
+ "description": "Load image (PNG or JPEG) from buffer.",
195
+ "returnvalues": [
196
+ {
197
+ "name": "image",
198
+ "doc": "loaded image, or <code>nil</code> if loading fails",
199
+ "types": ["image.load_result", "nil"]
200
+ }
201
+ ],
202
+ "parameters": [
203
+ {
204
+ "name": "buffer",
205
+ "doc": "image data buffer",
206
+ "types": ["string"],
207
+ "is_optional": "False"
208
+ },
209
+ {
210
+ "name": "options",
211
+ "doc": "Optional loading parameters. A boolean is accepted for backwards compatibility and controls <code>premultiply_alpha</code>.",
212
+ "types": ["boolean", "image.load_options"],
213
+ "is_optional": "True"
214
+ }
215
+ ],
216
+ "examples": "How to load an image from an URL and create a GUI texture from it:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">imgurl</span> <span class=\"o\">=</span> <span class=\"s2\">&quot;http://www.site.com/image.png&quot;</span>\n<span class=\"n\">http</span><span class=\"p\">.</span><span class=\"n\">request</span><span class=\"p\">(</span><span class=\"n\">imgurl</span><span class=\"p\">,</span> <span class=\"s2\">&quot;GET&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\">id</span><span class=\"p\">,</span> <span class=\"n\">response</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">img</span> <span class=\"o\">=</span> <span class=\"n\">image</span><span class=\"p\">.</span><span class=\"n\">load</span><span class=\"p\">(</span><span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">response</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">tx</span> <span class=\"o\">=</span> <span class=\"n\">gui</span><span class=\"p\">.</span><span class=\"n\">new_texture</span><span class=\"p\">(</span><span class=\"s2\">&quot;image_node&quot;</span><span class=\"p\">,</span> <span class=\"n\">img</span><span class=\"p\">.</span><span class=\"n\">width</span><span class=\"p\">,</span> <span class=\"n\">img</span><span class=\"p\">.</span><span class=\"n\">height</span><span class=\"p\">,</span> <span class=\"n\">img</span><span class=\"p\">.</span><span class=\"n\">type</span><span class=\"p\">,</span> <span class=\"n\">img</span><span class=\"p\">.</span><span class=\"n\">buffer</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span><span class=\"p\">)</span>\n</code></pre></div>",
217
+ "replaces": "",
218
+ "error": "",
219
+ "tparams": [],
220
+ "members": [],
221
+ "notes": [],
222
+ "language": ""
223
+ },
224
+ {
225
+ "type": "FUNCTION",
226
+ "name": "image.load_buffer",
227
+ "brief": "load image from a string into a buffer object",
228
+ "description": "Load image (PNG or JPEG) from a string buffer.",
229
+ "returnvalues": [
230
+ {
231
+ "name": "image",
232
+ "doc": "loaded image, or <code>nil</code> if loading fails",
233
+ "types": ["image.load_buffer_result", "nil"]
234
+ }
235
+ ],
236
+ "parameters": [
237
+ {
238
+ "name": "buffer",
239
+ "doc": "image data buffer",
240
+ "types": ["string"],
241
+ "is_optional": "False"
242
+ },
243
+ {
244
+ "name": "options",
245
+ "doc": "Optional loading parameters. A boolean is accepted for backwards compatibility and controls <code>premultiply_alpha</code>.",
246
+ "types": ["boolean", "image.load_options"],
247
+ "is_optional": "True"
248
+ }
249
+ ],
250
+ "examples": "Load an image from an URL as a buffer and create a texture resource from it:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">imgurl</span> <span class=\"o\">=</span> <span class=\"s2\">&quot;http://www.site.com/image.png&quot;</span>\n<span class=\"n\">http</span><span class=\"p\">.</span><span class=\"n\">request</span><span class=\"p\">(</span><span class=\"n\">imgurl</span><span class=\"p\">,</span> <span class=\"s2\">&quot;GET&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\">id</span><span class=\"p\">,</span> <span class=\"n\">response</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">img</span> <span class=\"o\">=</span> <span class=\"n\">image</span><span class=\"p\">.</span><span class=\"n\">load_buffer</span><span class=\"p\">(</span><span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">response</span><span class=\"p\">,</span> <span class=\"p\">{</span> <span class=\"n\">flip_vertically</span> <span class=\"o\">=</span> <span class=\"kc\">true</span> <span class=\"p\">})</span>\n <span class=\"kd\">local</span> <span class=\"n\">tparams</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n <span class=\"n\">width</span> <span class=\"o\">=</span> <span class=\"n\">img</span><span class=\"p\">.</span><span class=\"n\">width</span><span class=\"p\">,</span>\n <span class=\"n\">height</span> <span class=\"o\">=</span> <span class=\"n\">img</span><span class=\"p\">.</span><span class=\"n\">height</span><span class=\"p\">,</span>\n <span class=\"nb\">type</span> <span class=\"o\">=</span> <span class=\"n\">graphics</span><span class=\"p\">.</span><span class=\"n\">TEXTURE_TYPE_2D</span><span class=\"p\">,</span>\n <span class=\"n\">format</span> <span class=\"o\">=</span> <span class=\"n\">graphics</span><span class=\"p\">.</span><span class=\"n\">TEXTURE_FORMAT_RGBA</span> <span class=\"p\">}</span>\n\n <span class=\"kd\">local</span> <span class=\"n\">my_texture_id</span> <span class=\"o\">=</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">create_texture</span><span class=\"p\">(</span><span class=\"s2\">&quot;/my_custom_texture.texturec&quot;</span><span class=\"p\">,</span> <span class=\"n\">tparams</span><span class=\"p\">,</span> <span class=\"n\">img</span><span class=\"p\">.</span><span class=\"n\">buffer</span><span class=\"p\">)</span>\n <span class=\"c1\">-- Apply the texture to a model</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"s2\">&quot;/go1#model&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;texture0&quot;</span><span class=\"p\">,</span> <span class=\"n\">my_texture_id</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span><span class=\"p\">)</span>\n</code></pre></div>",
251
+ "replaces": "",
252
+ "error": "",
253
+ "tparams": [],
254
+ "members": [],
255
+ "notes": [],
256
+ "language": ""
257
+ },
258
+ {
259
+ "type": "FUNCTION",
260
+ "name": "image.get_astc_header",
261
+ "brief": "get the header of an .astc buffer",
262
+ "description": "get the header of an .astc buffer",
263
+ "returnvalues": [
264
+ {
265
+ "name": "header",
266
+ "doc": "header, or <code>nil</code> if the buffer is not a valid ASTC image",
267
+ "types": ["image.astc_header", "nil"]
268
+ }
269
+ ],
270
+ "parameters": [
271
+ {
272
+ "name": "buffer",
273
+ "doc": ".astc file data buffer",
274
+ "types": ["string"],
275
+ "is_optional": "False"
276
+ }
277
+ ],
278
+ "examples": "How to get the block size and dimensions from a .astc file\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">s</span> <span class=\"o\">=</span> <span class=\"n\">sys</span><span class=\"p\">.</span><span class=\"n\">load_resource</span><span class=\"p\">(</span><span class=\"s2\">&quot;/assets/cat.astc&quot;</span><span class=\"p\">)</span>\n<span class=\"kd\">local</span> <span class=\"n\">header</span> <span class=\"o\">=</span> <span class=\"n\">image</span><span class=\"p\">.</span><span class=\"n\">get_astc_header</span><span class=\"p\">(</span><span class=\"n\">s</span><span class=\"p\">)</span>\n<span class=\"n\">pprint</span><span class=\"p\">(</span><span class=\"n\">s</span><span class=\"p\">)</span>\n</code></pre></div>",
279
+ "replaces": "",
280
+ "error": "",
281
+ "tparams": [],
282
+ "members": [],
283
+ "notes": [],
284
+ "language": ""
285
+ }
286
+ ],
287
+ "info": {
288
+ "namespace": "image",
289
+ "name": "Image",
290
+ "brief": "Image API documentation",
291
+ "description": "Functions for creating image objects.",
292
+ "path": "engine/gamesys/src/gamesys/scripts/script_image.cpp",
293
+ "file": "",
294
+ "notes": [],
295
+ "language": "Lua"
296
+ },
297
+ "format_version": 2
298
+ }