@defold-typescript/types 0.52.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.
- package/api-signatures.json +2074 -1964
- package/dist/cli-runtime.js +8966 -0
- package/dist/identity-vocabulary.json +660 -0
- package/dist/src/index.d.ts +18 -0
- package/examples/translations.json +15 -15
- package/fixtures/defold-1.12.4/b2d_body_doc.json +1327 -0
- package/fixtures/defold-1.12.4/b2d_doc.json +107 -0
- package/fixtures/defold-1.12.4/base_doc.json +758 -0
- package/fixtures/defold-1.12.4/bit_doc.json +404 -0
- package/fixtures/defold-1.12.4/buffer_doc.json +422 -0
- package/fixtures/defold-1.12.4/camera_doc.json +664 -0
- package/fixtures/defold-1.12.4/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.12.4/collectionproxy_doc.json +289 -0
- package/fixtures/defold-1.12.4/coroutine_doc.json +151 -0
- package/fixtures/defold-1.12.4/crash_doc.json +497 -0
- package/fixtures/defold-1.12.4/debug_doc.json +410 -0
- package/fixtures/defold-1.12.4/factory_doc.json +219 -0
- package/fixtures/defold-1.12.4/font_doc.json +141 -0
- package/fixtures/defold-1.12.4/globals_doc.json +42 -0
- package/fixtures/defold-1.12.4/go-instance-functions.json +111 -0
- package/fixtures/defold-1.12.4/go_doc.json +1901 -0
- package/fixtures/defold-1.12.4/graphics_doc.json +1634 -0
- package/fixtures/defold-1.12.4/gui_doc.json +5249 -0
- package/fixtures/defold-1.12.4/html5_doc.json +64 -0
- package/fixtures/defold-1.12.4/http_doc.json +66 -0
- package/fixtures/defold-1.12.4/image_doc.json +170 -0
- package/fixtures/defold-1.12.4/io_doc.json +399 -0
- package/fixtures/defold-1.12.4/json_doc.json +97 -0
- package/fixtures/defold-1.12.4/label_doc.json +220 -0
- package/fixtures/defold-1.12.4/liveupdate_doc.json +308 -0
- package/fixtures/defold-1.12.4/math_doc.json +702 -0
- package/fixtures/defold-1.12.4/messages_doc.json +579 -0
- package/fixtures/defold-1.12.4/model_doc.json +315 -0
- package/fixtures/defold-1.12.4/msg_doc.json +137 -0
- package/fixtures/defold-1.12.4/os_doc.json +266 -0
- package/fixtures/defold-1.12.4/package_doc.json +139 -0
- package/fixtures/defold-1.12.4/particlefx_doc.json +249 -0
- package/fixtures/defold-1.12.4/physics_doc.json +1120 -0
- package/fixtures/defold-1.12.4/profiler_doc.json +375 -0
- package/fixtures/defold-1.12.4/render_doc.json +1167 -0
- package/fixtures/defold-1.12.4/resource_doc.json +762 -0
- package/fixtures/defold-1.12.4/socket_doc.json +2194 -0
- package/fixtures/defold-1.12.4/sound_doc.json +582 -0
- package/fixtures/defold-1.12.4/sprite_doc.json +245 -0
- package/fixtures/defold-1.12.4/string_doc.json +412 -0
- package/fixtures/defold-1.12.4/sys_doc.json +853 -0
- package/fixtures/defold-1.12.4/table_doc.json +166 -0
- package/fixtures/defold-1.12.4/tilemap_doc.json +374 -0
- package/fixtures/defold-1.12.4/timer_doc.json +153 -0
- package/fixtures/defold-1.12.4/types_doc.json +212 -0
- package/fixtures/defold-1.12.4/vmath_doc.json +1814 -0
- package/fixtures/defold-1.12.4/window_doc.json +388 -0
- package/fixtures/defold-1.12.4/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.0/b2d_body_doc.json +2428 -0
- package/fixtures/defold-1.13.0/b2d_chain_doc.json +394 -0
- package/fixtures/defold-1.13.0/b2d_doc.json +128 -0
- package/fixtures/defold-1.13.0/b2d_fixture_doc.json +594 -0
- package/fixtures/defold-1.13.0/b2d_joint_doc.json +3315 -0
- package/fixtures/defold-1.13.0/b2d_shape_doc.json +802 -0
- package/fixtures/defold-1.13.0/b2d_world_doc.json +1314 -0
- package/fixtures/defold-1.13.0/base_doc.json +758 -0
- package/fixtures/defold-1.13.0/bit_doc.json +404 -0
- package/fixtures/defold-1.13.0/buffer_doc.json +422 -0
- package/fixtures/defold-1.13.0/camera_doc.json +900 -0
- package/fixtures/defold-1.13.0/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.13.0/collectionproxy_doc.json +289 -0
- package/fixtures/defold-1.13.0/compute_doc.json +182 -0
- package/fixtures/defold-1.13.0/coroutine_doc.json +151 -0
- package/fixtures/defold-1.13.0/crash_doc.json +497 -0
- package/fixtures/defold-1.13.0/debug_doc.json +410 -0
- package/fixtures/defold-1.13.0/editor_doc.json +3665 -0
- package/fixtures/defold-1.13.0/editor_http_doc.json +273 -0
- package/fixtures/defold-1.13.0/editor_json_doc.json +59 -0
- package/fixtures/defold-1.13.0/editor_localization_doc.json +138 -0
- package/fixtures/defold-1.13.0/editor_pprint_doc.json +36 -0
- package/fixtures/defold-1.13.0/editor_tilemap_tiles_doc.json +235 -0
- package/fixtures/defold-1.13.0/editor_zip_doc.json +163 -0
- package/fixtures/defold-1.13.0/editor_zlib_doc.json +48 -0
- package/fixtures/defold-1.13.0/factory_doc.json +219 -0
- package/fixtures/defold-1.13.0/font_doc.json +141 -0
- package/fixtures/defold-1.13.0/globals_doc.json +42 -0
- package/fixtures/defold-1.13.0/go-instance-functions.json +101 -0
- package/fixtures/defold-1.13.0/go_doc.json +1989 -0
- package/fixtures/defold-1.13.0/graphics_doc.json +1886 -0
- package/fixtures/defold-1.13.0/gui_doc.json +5277 -0
- package/fixtures/defold-1.13.0/html5_doc.json +64 -0
- package/fixtures/defold-1.13.0/http_doc.json +66 -0
- package/fixtures/defold-1.13.0/image_doc.json +170 -0
- package/fixtures/defold-1.13.0/import-manifest.json +10558 -0
- package/fixtures/defold-1.13.0/io_doc.json +399 -0
- package/fixtures/defold-1.13.0/json_doc.json +97 -0
- package/fixtures/defold-1.13.0/label_doc.json +220 -0
- package/fixtures/defold-1.13.0/liveupdate_doc.json +330 -0
- package/fixtures/defold-1.13.0/material_doc.json +238 -0
- package/fixtures/defold-1.13.0/math_doc.json +702 -0
- package/fixtures/defold-1.13.0/model_doc.json +412 -0
- package/fixtures/defold-1.13.0/msg_doc.json +137 -0
- package/fixtures/defold-1.13.0/os_doc.json +266 -0
- package/fixtures/defold-1.13.0/package_doc.json +139 -0
- package/fixtures/defold-1.13.0/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.0/physics_doc.json +1492 -0
- package/fixtures/defold-1.13.0/profiler_doc.json +375 -0
- package/fixtures/defold-1.13.0/render_doc.json +1381 -0
- package/fixtures/defold-1.13.0/resource_doc.json +762 -0
- package/fixtures/defold-1.13.0/socket_doc.json +2194 -0
- package/fixtures/defold-1.13.0/sound_doc.json +582 -0
- package/fixtures/defold-1.13.0/sprite_doc.json +335 -0
- package/fixtures/defold-1.13.0/string_doc.json +412 -0
- package/fixtures/defold-1.13.0/sys_doc.json +1142 -0
- package/fixtures/defold-1.13.0/table_doc.json +166 -0
- package/fixtures/defold-1.13.0/tilemap_doc.json +402 -0
- package/fixtures/defold-1.13.0/timer_doc.json +153 -0
- package/fixtures/defold-1.13.0/types_doc.json +212 -0
- package/fixtures/defold-1.13.0/vmath_doc.json +1814 -0
- package/fixtures/defold-1.13.0/window_doc.json +388 -0
- package/fixtures/defold-1.13.0/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.1/b2d_body_doc.json +2428 -0
- package/fixtures/defold-1.13.1/b2d_chain_doc.json +394 -0
- package/fixtures/defold-1.13.1/b2d_doc.json +128 -0
- package/fixtures/defold-1.13.1/b2d_fixture_doc.json +594 -0
- package/fixtures/defold-1.13.1/b2d_joint_doc.json +3315 -0
- package/fixtures/defold-1.13.1/b2d_shape_doc.json +802 -0
- package/fixtures/defold-1.13.1/b2d_world_doc.json +1314 -0
- package/fixtures/defold-1.13.1/base_doc.json +758 -0
- package/fixtures/defold-1.13.1/bit_doc.json +404 -0
- package/fixtures/defold-1.13.1/buffer_doc.json +422 -0
- package/fixtures/defold-1.13.1/camera_doc.json +900 -0
- package/fixtures/defold-1.13.1/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.13.1/collectionproxy_doc.json +323 -0
- package/fixtures/defold-1.13.1/compute_doc.json +182 -0
- package/fixtures/defold-1.13.1/coroutine_doc.json +151 -0
- package/fixtures/defold-1.13.1/crash_doc.json +497 -0
- package/fixtures/defold-1.13.1/debug_doc.json +410 -0
- package/fixtures/defold-1.13.1/editor_doc.json +3880 -0
- package/fixtures/defold-1.13.1/editor_http_doc.json +273 -0
- package/fixtures/defold-1.13.1/editor_image_doc.json +128 -0
- package/fixtures/defold-1.13.1/editor_json_doc.json +59 -0
- package/fixtures/defold-1.13.1/editor_localization_doc.json +138 -0
- package/fixtures/defold-1.13.1/editor_pprint_doc.json +36 -0
- package/fixtures/defold-1.13.1/editor_tilemap_tiles_doc.json +235 -0
- package/fixtures/defold-1.13.1/editor_zip_doc.json +163 -0
- package/fixtures/defold-1.13.1/editor_zlib_doc.json +48 -0
- package/fixtures/defold-1.13.1/factory_doc.json +219 -0
- package/fixtures/defold-1.13.1/font_doc.json +141 -0
- package/fixtures/defold-1.13.1/globals_doc.json +42 -0
- package/fixtures/defold-1.13.1/go-instance-functions.json +102 -0
- package/fixtures/defold-1.13.1/go_doc.json +1989 -0
- package/fixtures/defold-1.13.1/graphics_doc.json +1886 -0
- package/fixtures/defold-1.13.1/gui_doc.json +5277 -0
- package/fixtures/defold-1.13.1/html5_doc.json +64 -0
- package/fixtures/defold-1.13.1/http_doc.json +66 -0
- package/fixtures/defold-1.13.1/image_doc.json +170 -0
- package/fixtures/defold-1.13.1/import-manifest.json +10091 -0
- package/fixtures/defold-1.13.1/io_doc.json +399 -0
- package/fixtures/defold-1.13.1/json_doc.json +97 -0
- package/fixtures/defold-1.13.1/label_doc.json +220 -0
- package/fixtures/defold-1.13.1/liveupdate_doc.json +330 -0
- package/fixtures/defold-1.13.1/material_doc.json +238 -0
- package/fixtures/defold-1.13.1/math_doc.json +702 -0
- package/fixtures/defold-1.13.1/model_doc.json +412 -0
- package/fixtures/defold-1.13.1/msg_doc.json +137 -0
- package/fixtures/defold-1.13.1/os_doc.json +266 -0
- package/fixtures/defold-1.13.1/package_doc.json +139 -0
- package/fixtures/defold-1.13.1/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.1/physics_doc.json +1492 -0
- package/fixtures/defold-1.13.1/profiler_doc.json +375 -0
- package/fixtures/defold-1.13.1/render_doc.json +1381 -0
- package/fixtures/defold-1.13.1/resource_doc.json +762 -0
- package/fixtures/defold-1.13.1/socket_doc.json +2194 -0
- package/fixtures/defold-1.13.1/sound_doc.json +582 -0
- package/fixtures/defold-1.13.1/sprite_doc.json +335 -0
- package/fixtures/defold-1.13.1/string_doc.json +412 -0
- package/fixtures/defold-1.13.1/sys_doc.json +1142 -0
- package/fixtures/defold-1.13.1/table_doc.json +166 -0
- package/fixtures/defold-1.13.1/tilemap_doc.json +402 -0
- package/fixtures/defold-1.13.1/timer_doc.json +153 -0
- package/fixtures/defold-1.13.1/types_doc.json +212 -0
- package/fixtures/defold-1.13.1/vmath_doc.json +1814 -0
- package/fixtures/defold-1.13.1/window_doc.json +388 -0
- package/fixtures/defold-1.13.1/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.2/b2d_body_doc.json +2359 -0
- package/fixtures/defold-1.13.2/b2d_chain_doc.json +395 -0
- package/fixtures/defold-1.13.2/b2d_doc.json +1945 -0
- package/fixtures/defold-1.13.2/b2d_fixture_doc.json +595 -0
- package/fixtures/defold-1.13.2/b2d_joint_doc.json +3178 -0
- package/fixtures/defold-1.13.2/b2d_shape_doc.json +767 -0
- package/fixtures/defold-1.13.2/b2d_world_doc.json +1315 -0
- package/fixtures/defold-1.13.2/base_doc.json +759 -0
- package/fixtures/defold-1.13.2/bit_doc.json +405 -0
- package/fixtures/defold-1.13.2/buffer_doc.json +393 -0
- package/fixtures/defold-1.13.2/bullet3d_collision_object_doc.json +1206 -0
- package/fixtures/defold-1.13.2/bullet3d_constraint_doc.json +2455 -0
- package/fixtures/defold-1.13.2/bullet3d_doc.json +215 -0
- package/fixtures/defold-1.13.2/bullet3d_rigid_body_doc.json +1376 -0
- package/fixtures/defold-1.13.2/bullet3d_shape_doc.json +430 -0
- package/fixtures/defold-1.13.2/bullet3d_world_doc.json +855 -0
- package/fixtures/defold-1.13.2/camera_doc.json +887 -0
- package/fixtures/defold-1.13.2/collectionfactory_doc.json +206 -0
- package/fixtures/defold-1.13.2/collectionproxy_doc.json +397 -0
- package/fixtures/defold-1.13.2/compute_doc.json +183 -0
- package/fixtures/defold-1.13.2/coroutine_doc.json +152 -0
- package/fixtures/defold-1.13.2/crash_doc.json +483 -0
- package/fixtures/defold-1.13.2/debug_doc.json +411 -0
- package/fixtures/defold-1.13.2/editor_doc.json +6320 -0
- package/fixtures/defold-1.13.2/editor_http_doc.json +476 -0
- package/fixtures/defold-1.13.2/editor_image_doc.json +129 -0
- package/fixtures/defold-1.13.2/editor_json_doc.json +81 -0
- package/fixtures/defold-1.13.2/editor_localization_doc.json +139 -0
- package/fixtures/defold-1.13.2/editor_pprint_doc.json +37 -0
- package/fixtures/defold-1.13.2/editor_tilemap_tiles_doc.json +292 -0
- package/fixtures/defold-1.13.2/editor_zip_doc.json +237 -0
- package/fixtures/defold-1.13.2/editor_zlib_doc.json +49 -0
- package/fixtures/defold-1.13.2/factory_doc.json +206 -0
- package/fixtures/defold-1.13.2/font_doc.json +230 -0
- package/fixtures/defold-1.13.2/globals_doc.json +64 -0
- package/fixtures/defold-1.13.2/go-instance-functions.json +106 -0
- package/fixtures/defold-1.13.2/go_doc.json +1789 -0
- package/fixtures/defold-1.13.2/graphics_doc.json +1211 -0
- package/fixtures/defold-1.13.2/gui_doc.json +4735 -0
- package/fixtures/defold-1.13.2/html5_doc.json +65 -0
- package/fixtures/defold-1.13.2/http_doc.json +174 -0
- package/fixtures/defold-1.13.2/image_doc.json +298 -0
- package/fixtures/defold-1.13.2/import-manifest.json +10902 -0
- package/fixtures/defold-1.13.2/io_doc.json +400 -0
- package/fixtures/defold-1.13.2/json_doc.json +140 -0
- package/fixtures/defold-1.13.2/label_doc.json +427 -0
- package/fixtures/defold-1.13.2/liveupdate_doc.json +221 -0
- package/fixtures/defold-1.13.2/material_doc.json +773 -0
- package/fixtures/defold-1.13.2/math_doc.json +703 -0
- package/fixtures/defold-1.13.2/model_doc.json +472 -0
- package/fixtures/defold-1.13.2/msg_doc.json +169 -0
- package/fixtures/defold-1.13.2/os_doc.json +269 -0
- package/fixtures/defold-1.13.2/package_doc.json +140 -0
- package/fixtures/defold-1.13.2/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.2/physics_doc.json +1624 -0
- package/fixtures/defold-1.13.2/profiler_doc.json +348 -0
- package/fixtures/defold-1.13.2/render_doc.json +1623 -0
- package/fixtures/defold-1.13.2/resource_doc.json +1539 -0
- package/fixtures/defold-1.13.2/socket_doc.json +2335 -0
- package/fixtures/defold-1.13.2/sound_doc.json +673 -0
- package/fixtures/defold-1.13.2/sprite_doc.json +364 -0
- package/fixtures/defold-1.13.2/string_doc.json +413 -0
- package/fixtures/defold-1.13.2/sys_doc.json +1347 -0
- package/fixtures/defold-1.13.2/table_doc.json +167 -0
- package/fixtures/defold-1.13.2/tilemap_doc.json +369 -0
- package/fixtures/defold-1.13.2/timer_doc.json +214 -0
- package/fixtures/defold-1.13.2/types_doc.json +213 -0
- package/fixtures/defold-1.13.2/vmath_doc.json +2056 -0
- package/fixtures/defold-1.13.2/window_doc.json +426 -0
- package/fixtures/defold-1.13.2/zlib_doc.json +71 -0
- package/fixtures/defold-1.14.0/b2d_body_doc.json +2359 -0
- package/fixtures/defold-1.14.0/b2d_chain_doc.json +395 -0
- package/fixtures/defold-1.14.0/b2d_doc.json +1973 -0
- package/fixtures/defold-1.14.0/b2d_fixture_doc.json +595 -0
- package/fixtures/defold-1.14.0/b2d_joint_doc.json +3178 -0
- package/fixtures/defold-1.14.0/b2d_shape_doc.json +767 -0
- package/fixtures/defold-1.14.0/b2d_world_doc.json +1315 -0
- package/fixtures/defold-1.14.0/base_doc.json +759 -0
- package/fixtures/defold-1.14.0/bit_doc.json +405 -0
- package/fixtures/defold-1.14.0/buffer_doc.json +393 -0
- package/fixtures/defold-1.14.0/bullet3d_collision_object_doc.json +1206 -0
- package/fixtures/defold-1.14.0/bullet3d_constraint_doc.json +2455 -0
- package/fixtures/defold-1.14.0/bullet3d_doc.json +243 -0
- package/fixtures/defold-1.14.0/bullet3d_rigid_body_doc.json +1376 -0
- package/fixtures/defold-1.14.0/bullet3d_shape_doc.json +430 -0
- package/fixtures/defold-1.14.0/bullet3d_world_doc.json +855 -0
- package/fixtures/defold-1.14.0/camera_doc.json +887 -0
- package/fixtures/defold-1.14.0/collectionfactory_doc.json +206 -0
- package/fixtures/defold-1.14.0/collectionproxy_doc.json +397 -0
- package/fixtures/defold-1.14.0/compute_doc.json +183 -0
- package/fixtures/defold-1.14.0/coroutine_doc.json +152 -0
- package/fixtures/defold-1.14.0/crash_doc.json +483 -0
- package/fixtures/defold-1.14.0/debug_doc.json +411 -0
- package/fixtures/defold-1.14.0/editor_doc.json +6320 -0
- package/fixtures/defold-1.14.0/editor_http_doc.json +476 -0
- package/fixtures/defold-1.14.0/editor_image_doc.json +129 -0
- package/fixtures/defold-1.14.0/editor_json_doc.json +81 -0
- package/fixtures/defold-1.14.0/editor_localization_doc.json +139 -0
- package/fixtures/defold-1.14.0/editor_pprint_doc.json +37 -0
- package/fixtures/defold-1.14.0/editor_tilemap_tiles_doc.json +292 -0
- package/fixtures/defold-1.14.0/editor_zip_doc.json +237 -0
- package/fixtures/defold-1.14.0/editor_zlib_doc.json +49 -0
- package/fixtures/defold-1.14.0/factory_doc.json +206 -0
- package/fixtures/defold-1.14.0/font_doc.json +230 -0
- package/fixtures/defold-1.14.0/globals_doc.json +64 -0
- package/fixtures/defold-1.14.0/go-instance-functions.json +106 -0
- package/fixtures/defold-1.14.0/go_doc.json +1789 -0
- package/fixtures/defold-1.14.0/graphics_doc.json +1257 -0
- package/fixtures/defold-1.14.0/gui_doc.json +4735 -0
- package/fixtures/defold-1.14.0/html5_doc.json +65 -0
- package/fixtures/defold-1.14.0/http_doc.json +174 -0
- package/fixtures/defold-1.14.0/image_doc.json +298 -0
- package/fixtures/defold-1.14.0/import-manifest.json +10260 -0
- package/fixtures/defold-1.14.0/io_doc.json +400 -0
- package/fixtures/defold-1.14.0/json_doc.json +140 -0
- package/fixtures/defold-1.14.0/label_doc.json +427 -0
- package/fixtures/defold-1.14.0/liveupdate_doc.json +221 -0
- package/fixtures/defold-1.14.0/material_doc.json +773 -0
- package/fixtures/defold-1.14.0/math_doc.json +703 -0
- package/fixtures/defold-1.14.0/model_doc.json +472 -0
- package/fixtures/defold-1.14.0/msg_doc.json +169 -0
- package/fixtures/defold-1.14.0/os_doc.json +269 -0
- package/fixtures/defold-1.14.0/package_doc.json +140 -0
- package/fixtures/defold-1.14.0/particlefx_doc.json +249 -0
- package/fixtures/defold-1.14.0/physics_doc.json +1624 -0
- package/fixtures/defold-1.14.0/profiler_doc.json +348 -0
- package/fixtures/defold-1.14.0/render_doc.json +1628 -0
- package/fixtures/defold-1.14.0/resource_doc.json +1539 -0
- package/fixtures/defold-1.14.0/socket_doc.json +2335 -0
- package/fixtures/defold-1.14.0/sound_doc.json +673 -0
- package/fixtures/defold-1.14.0/sprite_doc.json +364 -0
- package/fixtures/defold-1.14.0/string_doc.json +413 -0
- package/fixtures/defold-1.14.0/sys_doc.json +1347 -0
- package/fixtures/defold-1.14.0/table_doc.json +167 -0
- package/fixtures/defold-1.14.0/tilemap_doc.json +369 -0
- package/fixtures/defold-1.14.0/timer_doc.json +214 -0
- package/fixtures/defold-1.14.0/types_doc.json +213 -0
- package/fixtures/defold-1.14.0/vmath_doc.json +2056 -0
- package/fixtures/defold-1.14.0/window_doc.json +426 -0
- package/fixtures/defold-1.14.0/zlib_doc.json +71 -0
- package/generated/b2d.d.ts +39 -39
- package/generated/b2d_body.d.ts +11 -11
- package/generated/b2d_chain.d.ts +3 -3
- package/generated/b2d_fixture.d.ts +5 -5
- package/generated/b2d_joint.d.ts +29 -29
- package/generated/b2d_shape.d.ts +13 -13
- package/generated/b2d_world.d.ts +15 -15
- package/generated/buffer.d.ts +5 -6
- package/generated/bullet3d.d.ts +6 -6
- package/generated/bullet3d_collision_object.d.ts +9 -9
- package/generated/bullet3d_constraint.d.ts +78 -78
- package/generated/bullet3d_rigid_body.d.ts +3 -3
- package/generated/bullet3d_shape.d.ts +11 -11
- package/generated/bullet3d_world.d.ts +20 -20
- package/generated/camera.d.ts +4 -4
- package/generated/collectionfactory.d.ts +2 -3
- package/generated/collectionproxy.d.ts +5 -5
- package/generated/compute.d.ts +5 -5
- package/generated/crash.d.ts +7 -7
- package/generated/editor-vm/http.d.ts +13 -13
- package/generated/editor-vm/image.d.ts +4 -4
- package/generated/editor-vm/json.d.ts +1 -1
- package/generated/editor-vm/tilemap_tiles.d.ts +9 -9
- package/generated/editor-vm/zip.d.ts +4 -4
- package/generated/editor.d.ts +183 -183
- package/generated/factory.d.ts +2 -3
- package/generated/font.d.ts +4 -4
- package/generated/go.d.ts +10 -12
- package/generated/graphics.d.ts +23 -26
- package/generated/gui.d.ts +44 -58
- package/generated/http.d.ts +2 -2
- package/generated/image.d.ts +12 -12
- package/generated/json.d.ts +4 -4
- package/generated/label.d.ts +5 -5
- package/generated/liveupdate.d.ts +3 -3
- package/generated/material.d.ts +48 -48
- package/generated/model.d.ts +46 -14
- package/generated/particlefx.d.ts +5 -5
- package/generated/physics.d.ts +19 -19
- package/generated/profiler.d.ts +3 -5
- package/generated/render-script-modules/b2d.d.ts +39 -39
- package/generated/render-script-modules/bullet3d.d.ts +5 -5
- package/generated/render-script-modules/collectionfactory.d.ts +1 -2
- package/generated/render-script-modules/collectionproxy.d.ts +3 -3
- package/generated/render-script-modules/factory.d.ts +1 -2
- package/generated/render-script-modules/go.d.ts +8 -10
- package/generated/render-script-modules/label.d.ts +2 -2
- package/generated/render-script-modules/model.d.ts +43 -11
- package/generated/render-script-modules/particlefx.d.ts +3 -3
- package/generated/render-script-modules/physics.d.ts +12 -12
- package/generated/render-script-modules/resource.d.ts +52 -53
- package/generated/render-script-modules/sound.d.ts +4 -4
- package/generated/render-script-modules/sprite.d.ts +2 -2
- package/generated/render-script-modules/tilemap.d.ts +2 -2
- package/generated/render.d.ts +44 -45
- package/generated/resource.d.ts +58 -59
- package/generated/socket.d.ts +18 -23
- package/generated/sound.d.ts +6 -6
- package/generated/sprite.d.ts +3 -3
- package/generated/sys.d.ts +20 -21
- package/generated/tilemap.d.ts +3 -3
- package/generated/timer.d.ts +3 -3
- package/generated/versions/defold-1.12.4/b2d.d.ts +2 -2
- package/generated/versions/defold-1.12.4/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.12.4/go.d.ts +2 -2
- package/generated/versions/defold-1.12.4/graphics.d.ts +1 -1
- package/generated/versions/defold-1.12.4/gui.d.ts +18 -19
- package/generated/versions/defold-1.12.4/label.d.ts +1 -1
- package/generated/versions/defold-1.12.4/model.d.ts +42 -10
- package/generated/versions/defold-1.12.4/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.12.4/physics.d.ts +1 -1
- package/generated/versions/defold-1.12.4/render.d.ts +5 -5
- package/generated/versions/defold-1.12.4/resource.d.ts +8 -8
- package/generated/versions/defold-1.12.4/socket.d.ts +12 -12
- package/generated/versions/defold-1.12.4/sound.d.ts +1 -1
- package/generated/versions/defold-1.12.4/sprite.d.ts +1 -1
- package/generated/versions/defold-1.12.4/sys.d.ts +2 -2
- package/generated/versions/defold-1.12.4/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.12.4/window.d.ts +3 -4
- package/generated/versions/defold-1.13.0/b2d.d.ts +2 -2
- package/generated/versions/defold-1.13.0/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.13.0/b2d_chain.d.ts +1 -1
- package/generated/versions/defold-1.13.0/b2d_joint.d.ts +1 -1
- package/generated/versions/defold-1.13.0/b2d_shape.d.ts +1 -1
- package/generated/versions/defold-1.13.0/camera.d.ts +1 -1
- package/generated/versions/defold-1.13.0/go.d.ts +2 -2
- package/generated/versions/defold-1.13.0/graphics.d.ts +1 -1
- package/generated/versions/defold-1.13.0/gui.d.ts +18 -19
- package/generated/versions/defold-1.13.0/label.d.ts +1 -1
- package/generated/versions/defold-1.13.0/model.d.ts +42 -10
- package/generated/versions/defold-1.13.0/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.13.0/physics.d.ts +1 -1
- package/generated/versions/defold-1.13.0/render.d.ts +5 -5
- package/generated/versions/defold-1.13.0/resource.d.ts +8 -8
- package/generated/versions/defold-1.13.0/socket.d.ts +12 -12
- package/generated/versions/defold-1.13.0/sound.d.ts +1 -1
- package/generated/versions/defold-1.13.0/sprite.d.ts +1 -1
- package/generated/versions/defold-1.13.0/sys.d.ts +2 -2
- package/generated/versions/defold-1.13.0/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.13.0/window.d.ts +3 -4
- package/generated/versions/defold-1.13.1/b2d.d.ts +2 -2
- package/generated/versions/defold-1.13.1/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.13.1/b2d_chain.d.ts +1 -1
- package/generated/versions/defold-1.13.1/b2d_joint.d.ts +1 -1
- package/generated/versions/defold-1.13.1/b2d_shape.d.ts +1 -1
- package/generated/versions/defold-1.13.1/camera.d.ts +1 -1
- package/generated/versions/defold-1.13.1/go.d.ts +2 -2
- package/generated/versions/defold-1.13.1/graphics.d.ts +1 -1
- package/generated/versions/defold-1.13.1/gui.d.ts +18 -19
- package/generated/versions/defold-1.13.1/label.d.ts +1 -1
- package/generated/versions/defold-1.13.1/model.d.ts +42 -10
- package/generated/versions/defold-1.13.1/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.13.1/physics.d.ts +1 -1
- package/generated/versions/defold-1.13.1/render.d.ts +5 -5
- package/generated/versions/defold-1.13.1/resource.d.ts +8 -8
- package/generated/versions/defold-1.13.1/socket.d.ts +12 -12
- package/generated/versions/defold-1.13.1/sound.d.ts +1 -1
- package/generated/versions/defold-1.13.1/sprite.d.ts +1 -1
- package/generated/versions/defold-1.13.1/sys.d.ts +2 -2
- package/generated/versions/defold-1.13.1/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.13.1/window.d.ts +3 -4
- package/generated/versions/defold-1.13.2/b2d.d.ts +39 -39
- package/generated/versions/defold-1.13.2/b2d_body.d.ts +11 -11
- package/generated/versions/defold-1.13.2/b2d_chain.d.ts +3 -3
- package/generated/versions/defold-1.13.2/b2d_fixture.d.ts +5 -5
- package/generated/versions/defold-1.13.2/b2d_joint.d.ts +29 -29
- package/generated/versions/defold-1.13.2/b2d_shape.d.ts +13 -13
- package/generated/versions/defold-1.13.2/b2d_world.d.ts +15 -15
- package/generated/versions/defold-1.13.2/buffer.d.ts +5 -6
- package/generated/versions/defold-1.13.2/bullet3d.d.ts +6 -6
- package/generated/versions/defold-1.13.2/bullet3d_collision_object.d.ts +9 -9
- package/generated/versions/defold-1.13.2/bullet3d_constraint.d.ts +78 -78
- package/generated/versions/defold-1.13.2/bullet3d_rigid_body.d.ts +3 -3
- package/generated/versions/defold-1.13.2/bullet3d_shape.d.ts +11 -11
- package/generated/versions/defold-1.13.2/bullet3d_world.d.ts +20 -20
- package/generated/versions/defold-1.13.2/camera.d.ts +4 -4
- package/generated/versions/defold-1.13.2/collectionfactory.d.ts +2 -3
- package/generated/versions/defold-1.13.2/collectionproxy.d.ts +5 -5
- package/generated/versions/defold-1.13.2/compute.d.ts +5 -5
- package/generated/versions/defold-1.13.2/crash.d.ts +7 -7
- package/generated/versions/defold-1.13.2/editor-vm/http.d.ts +13 -13
- package/generated/versions/defold-1.13.2/editor-vm/image.d.ts +4 -4
- package/generated/versions/defold-1.13.2/editor-vm/json.d.ts +1 -1
- package/generated/versions/defold-1.13.2/editor-vm/tilemap_tiles.d.ts +9 -9
- package/generated/versions/defold-1.13.2/editor-vm/zip.d.ts +4 -4
- package/generated/versions/defold-1.13.2/editor.d.ts +183 -183
- package/generated/versions/defold-1.13.2/factory.d.ts +2 -3
- package/generated/versions/defold-1.13.2/font.d.ts +4 -4
- package/generated/versions/defold-1.13.2/go.d.ts +10 -12
- package/generated/versions/defold-1.13.2/graphics.d.ts +22 -25
- package/generated/versions/defold-1.13.2/gui.d.ts +44 -58
- package/generated/versions/defold-1.13.2/http.d.ts +2 -2
- package/generated/versions/defold-1.13.2/image.d.ts +12 -12
- package/generated/versions/defold-1.13.2/json.d.ts +4 -4
- package/generated/versions/defold-1.13.2/label.d.ts +5 -5
- package/generated/versions/defold-1.13.2/liveupdate.d.ts +3 -3
- package/generated/versions/defold-1.13.2/material.d.ts +48 -48
- package/generated/versions/defold-1.13.2/model.d.ts +46 -14
- package/generated/versions/defold-1.13.2/particlefx.d.ts +5 -5
- package/generated/versions/defold-1.13.2/physics.d.ts +19 -19
- package/generated/versions/defold-1.13.2/profiler.d.ts +3 -5
- package/generated/versions/defold-1.13.2/render.d.ts +43 -44
- package/generated/versions/defold-1.13.2/resource.d.ts +58 -59
- package/generated/versions/defold-1.13.2/socket.d.ts +18 -23
- package/generated/versions/defold-1.13.2/sound.d.ts +6 -6
- package/generated/versions/defold-1.13.2/sprite.d.ts +3 -3
- package/generated/versions/defold-1.13.2/sys.d.ts +20 -21
- package/generated/versions/defold-1.13.2/tilemap.d.ts +3 -3
- package/generated/versions/defold-1.13.2/timer.d.ts +3 -3
- package/generated/versions/defold-1.13.2/vmath.d.ts +0 -1
- package/generated/versions/defold-1.13.2/window.d.ts +8 -10
- package/generated/vmath.d.ts +0 -1
- package/generated/window.d.ts +8 -10
- package/identity-vocabulary.json +41 -34
- package/package.json +13 -5
- package/scripts/cli-runtime.ts +18 -0
- package/scripts/example-store-io.ts +2 -2
- package/scripts/extension-goldens.ts +9 -5
- package/scripts/generate-api-availability.ts +10 -4
- package/scripts/generate-api-signatures.ts +1 -1
- package/scripts/import-defold-release.ts +1 -1
- package/scripts/regen.ts +35 -9
- package/scripts/shared-handle-methods.ts +3 -2
- package/scripts/signature-store-fs.ts +37 -17
- package/scripts/sync-api-docs.ts +127 -20
- package/src/api-doc.ts +19 -4
- package/src/api-identity.ts +32 -1
- package/src/component-properties.d.ts +8 -8
- package/src/core-types.ts +29 -13
- package/src/doc-corrections.ts +9 -0
- package/src/emit-dts.ts +770 -214
- package/src/engine-type-name.ts +33 -0
- package/src/go-overloads.d.ts +10 -10
- package/src/gui-overloads.d.ts +11 -11
- package/src/index-slot-classifications.ts +75 -9
- package/src/index.ts +4 -1
- package/src/lifecycle.ts +2 -2
- package/src/publish-dts.ts +16 -0
- package/src/script-api.ts +36 -38
- package/src/socket-types.d.ts +3 -3
- package/src/library-index-slot-classifications.ts +0 -332
|
@@ -6,11 +6,11 @@ declare global {
|
|
|
6
6
|
* Collision object physics API documentation
|
|
7
7
|
*/
|
|
8
8
|
namespace physics {
|
|
9
|
-
type
|
|
9
|
+
type Event = BuiltinMessages["contact_point_event"] & { type: Hash<"contact_point_event"> } | BuiltinMessages["collision_event"] & { type: Hash<"collision_event"> } | BuiltinMessages["trigger_event"] & { type: Hash<"trigger_event"> } | BuiltinMessages["ray_cast_response"] & { type: Hash<"ray_cast_response"> } | BuiltinMessages["ray_cast_missed"] & { type: Hash<"ray_cast_missed"> };
|
|
10
10
|
/**
|
|
11
11
|
* The available fields depend on the joint type.
|
|
12
12
|
*/
|
|
13
|
-
interface
|
|
13
|
+
interface JointProperties {
|
|
14
14
|
/**
|
|
15
15
|
* whether the connected objects should collide
|
|
16
16
|
*/
|
|
@@ -79,7 +79,7 @@ declare global {
|
|
|
79
79
|
/**
|
|
80
80
|
* The available optional fields depend on the joint type.
|
|
81
81
|
*/
|
|
82
|
-
interface
|
|
82
|
+
interface JointPropertiesInfo {
|
|
83
83
|
/**
|
|
84
84
|
* whether the connected objects collide
|
|
85
85
|
*/
|
|
@@ -160,7 +160,7 @@ declare global {
|
|
|
160
160
|
/**
|
|
161
161
|
* Ray-cast options
|
|
162
162
|
*/
|
|
163
|
-
interface
|
|
163
|
+
interface RaycastOptions {
|
|
164
164
|
/**
|
|
165
165
|
* Return every hit instead of only the closest hit.
|
|
166
166
|
*/
|
|
@@ -169,11 +169,11 @@ declare global {
|
|
|
169
169
|
/**
|
|
170
170
|
* The available geometry fields depend on `type`.
|
|
171
171
|
*/
|
|
172
|
-
interface
|
|
172
|
+
interface ShapeData {
|
|
173
173
|
/**
|
|
174
174
|
* shape type
|
|
175
175
|
*/
|
|
176
|
-
type: physics.
|
|
176
|
+
type: physics.ShapeType;
|
|
177
177
|
/**
|
|
178
178
|
* sphere diameter or capsule pole diameter
|
|
179
179
|
*/
|
|
@@ -187,8 +187,8 @@ declare global {
|
|
|
187
187
|
*/
|
|
188
188
|
height?: number;
|
|
189
189
|
}
|
|
190
|
-
type
|
|
191
|
-
type
|
|
190
|
+
type JointType = typeof physics.JOINT_TYPE_FIXED | typeof physics.JOINT_TYPE_HINGE | typeof physics.JOINT_TYPE_SLIDER | typeof physics.JOINT_TYPE_SPRING | typeof physics.JOINT_TYPE_WELD | typeof physics.JOINT_TYPE_WHEEL;
|
|
191
|
+
type ShapeType = typeof physics.SHAPE_TYPE_BOX | typeof physics.SHAPE_TYPE_CAPSULE | typeof physics.SHAPE_TYPE_HULL | typeof physics.SHAPE_TYPE_MESH | typeof physics.SHAPE_TYPE_SPHERE;
|
|
192
192
|
/**
|
|
193
193
|
* Fixed joint; uses `max_length` from physics.joint_properties.
|
|
194
194
|
*/
|
|
@@ -245,7 +245,7 @@ declare global {
|
|
|
245
245
|
* @param position_b - local position where to attach the joint on the second collision object
|
|
246
246
|
* @param properties - optional joint-specific properties
|
|
247
247
|
*/
|
|
248
|
-
function create_joint(joint_type: physics.
|
|
248
|
+
function create_joint(joint_type: physics.JointType, collisionobject_a: string | Hash | Url, joint_id: string | Hash, position_a: Vector3, collisionobject_b: string | Hash | Url, position_b: Vector3, properties?: physics.JointProperties): void;
|
|
249
249
|
/**
|
|
250
250
|
* Destroy an already physics joint. The joint has to be created before a
|
|
251
251
|
* destroy can be issued.
|
|
@@ -297,7 +297,7 @@ declare global {
|
|
|
297
297
|
* @param joint_id - id of the joint
|
|
298
298
|
* @returns joint properties
|
|
299
299
|
*/
|
|
300
|
-
function get_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash): physics.
|
|
300
|
+
function get_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash): physics.JointPropertiesInfo;
|
|
301
301
|
/**
|
|
302
302
|
* Get the reaction force for a joint. The joint has to be created before
|
|
303
303
|
* the reaction force can be calculated.
|
|
@@ -350,7 +350,7 @@ declare global {
|
|
|
350
350
|
* }
|
|
351
351
|
* ```
|
|
352
352
|
*/
|
|
353
|
-
function get_shape(url: string | Hash | Url, shape: string | Hash): physics.
|
|
353
|
+
function get_shape(url: string | Hash | Url, shape: string | Hash): physics.ShapeData;
|
|
354
354
|
/**
|
|
355
355
|
* Ray casts are used to test for intersections against collision objects in the physics world.
|
|
356
356
|
* Collision objects of types kinematic, dynamic and static are tested against. Trigger objects
|
|
@@ -391,7 +391,7 @@ declare global {
|
|
|
391
391
|
* });
|
|
392
392
|
* ```
|
|
393
393
|
*/
|
|
394
|
-
function raycast(from: Vector3, to: Vector3, groups: Hash[], options?: physics.
|
|
394
|
+
function raycast(from: Vector3, to: Vector3, groups: Hash[], options?: physics.RaycastOptions): Omit<BuiltinMessages["ray_cast_response"], "request_id">[] | Omit<BuiltinMessages["ray_cast_response"], "request_id"> | undefined;
|
|
395
395
|
/**
|
|
396
396
|
* Ray casts are used to test for intersections against collision objects in the physics world.
|
|
397
397
|
* Collision objects of types kinematic, dynamic and static are tested against. Trigger objects
|
|
@@ -577,7 +577,7 @@ declare global {
|
|
|
577
577
|
* });
|
|
578
578
|
* ```
|
|
579
579
|
*/
|
|
580
|
-
function set_event_listener(callback?: (self: unknown, events: physics.
|
|
580
|
+
function set_event_listener(callback?: (self: unknown, events: physics.Event[]) => void): void;
|
|
581
581
|
/**
|
|
582
582
|
* Set the gravity in runtime. The gravity change is not global, it will only affect
|
|
583
583
|
* the collection that the function is called from.
|
|
@@ -637,7 +637,7 @@ declare global {
|
|
|
637
637
|
* @param properties - joint specific properties table
|
|
638
638
|
* Note: The `collide_connected` field cannot be updated/changed after a connection has been made.
|
|
639
639
|
*/
|
|
640
|
-
function set_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash, properties: physics.
|
|
640
|
+
function set_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash, properties: physics.JointProperties): void;
|
|
641
641
|
/**
|
|
642
642
|
* Sets or clears the masking of a group (maskbit) in a collision object.
|
|
643
643
|
*
|
|
@@ -686,7 +686,7 @@ declare global {
|
|
|
686
686
|
* }
|
|
687
687
|
* ```
|
|
688
688
|
*/
|
|
689
|
-
function set_shape(url: string | Hash | Url, shape: string | Hash, table: physics.
|
|
689
|
+
function set_shape(url: string | Hash | Url, shape: string | Hash, table: physics.ShapeData): void;
|
|
690
690
|
/**
|
|
691
691
|
* Flips the collision shapes vertically for a collision object
|
|
692
692
|
*
|
|
@@ -738,7 +738,7 @@ declare global {
|
|
|
738
738
|
/**
|
|
739
739
|
* collision object information
|
|
740
740
|
*/
|
|
741
|
-
interface
|
|
741
|
+
interface CollisionInfo {
|
|
742
742
|
/**
|
|
743
743
|
* object position in world space
|
|
744
744
|
*/
|
|
@@ -755,7 +755,7 @@ declare global {
|
|
|
755
755
|
/**
|
|
756
756
|
* contact-point object information
|
|
757
757
|
*/
|
|
758
|
-
interface
|
|
758
|
+
interface ContactPointInfo {
|
|
759
759
|
/**
|
|
760
760
|
* contact point position in world space
|
|
761
761
|
*/
|
|
@@ -788,7 +788,7 @@ declare global {
|
|
|
788
788
|
/**
|
|
789
789
|
* trigger interaction object information
|
|
790
790
|
*/
|
|
791
|
-
interface
|
|
791
|
+
interface TriggerInfo {
|
|
792
792
|
/**
|
|
793
793
|
* object identifier
|
|
794
794
|
*/
|
|
@@ -800,7 +800,7 @@ declare global {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
interface
|
|
803
|
+
interface Properties {
|
|
804
804
|
/**
|
|
805
805
|
* The angular damping value for the collision object. Setting this value alters the damping of
|
|
806
806
|
* angular motion of the object (rotation). Valid values are between 0 (no damping) and 1 (full damping).
|
|
@@ -5,10 +5,8 @@ declare global {
|
|
|
5
5
|
* More detailed [profiling](https://www.defold.com/manuals/profiling/) and [debugging](http://www.defold.com/manuals/debugging/) information available in the manuals.
|
|
6
6
|
*/
|
|
7
7
|
namespace profiler {
|
|
8
|
-
type Mode = typeof profiler.
|
|
8
|
+
type Mode = typeof profiler.MODE_PAUSE | typeof profiler.MODE_RECORD | typeof profiler.MODE_RUN | typeof profiler.MODE_SHOW_PEAK_FRAME;
|
|
9
9
|
type ViewMode = typeof profiler.VIEW_MODE_FULL | typeof profiler.VIEW_MODE_MINIMIZED;
|
|
10
|
-
type MODE = typeof profiler.MODE_PAUSE | typeof profiler.MODE_RECORD | typeof profiler.MODE_RUN | typeof profiler.MODE_SHOW_PEAK_FRAME;
|
|
11
|
-
type VIEW_MODE = typeof profiler.VIEW_MODE_FULL | typeof profiler.VIEW_MODE_MINIMIZED;
|
|
12
10
|
/**
|
|
13
11
|
* pause on the currently displayed frame
|
|
14
12
|
*/
|
|
@@ -173,7 +171,7 @@ declare global {
|
|
|
173
171
|
* }
|
|
174
172
|
* ```
|
|
175
173
|
*/
|
|
176
|
-
function set_ui_mode(mode: profiler.
|
|
174
|
+
function set_ui_mode(mode: profiler.Mode): void;
|
|
177
175
|
/**
|
|
178
176
|
* Set the on-screen profile view mode - minimized or expanded
|
|
179
177
|
*
|
|
@@ -184,7 +182,7 @@ declare global {
|
|
|
184
182
|
* profiler.set_ui_view_mode(profiler.VIEW_MODE_MINIMIZED);
|
|
185
183
|
* ```
|
|
186
184
|
*/
|
|
187
|
-
function set_ui_view_mode(mode: profiler.
|
|
185
|
+
function set_ui_view_mode(mode: profiler.ViewMode): void;
|
|
188
186
|
/**
|
|
189
187
|
* Shows or hides the time the engine waits for vsync in the on-screen profiler
|
|
190
188
|
* Each frame the engine waits for vsync and depending on your vsync settings and how much time
|
|
@@ -9,17 +9,17 @@ declare global {
|
|
|
9
9
|
/**
|
|
10
10
|
* Render-camera options
|
|
11
11
|
*/
|
|
12
|
-
interface
|
|
12
|
+
interface CameraOptions {
|
|
13
13
|
/**
|
|
14
14
|
* Use the camera view-projection matrix for frustum culling. The default is false.
|
|
15
15
|
*/
|
|
16
16
|
use_frustum?: boolean;
|
|
17
17
|
}
|
|
18
|
-
type
|
|
18
|
+
type ConstantBuffer = Opaque<"constant_buffer"> & { [name: string]: Vector4 | Matrix4 | ConstantArray<Vector4> | ConstantArray<Matrix4> };
|
|
19
19
|
/**
|
|
20
20
|
* Debug-draw options
|
|
21
21
|
*/
|
|
22
|
-
interface
|
|
22
|
+
interface DebugDrawOptions {
|
|
23
23
|
/**
|
|
24
24
|
* Frustum matrix used for culling renderable items.
|
|
25
25
|
*/
|
|
@@ -27,12 +27,12 @@ declare global {
|
|
|
27
27
|
/**
|
|
28
28
|
* Frustum planes used for culling. The default is render.FRUSTUM_PLANES_SIDES.
|
|
29
29
|
*/
|
|
30
|
-
frustum_planes?: render.
|
|
30
|
+
frustum_planes?: render.FrustumPlanes;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Compute-dispatch options
|
|
34
34
|
*/
|
|
35
|
-
interface
|
|
35
|
+
interface DispatchOptions {
|
|
36
36
|
/**
|
|
37
37
|
* Constants used by the compute program. The values are copied when `render.dispatch_compute()` is called.
|
|
38
38
|
*/
|
|
@@ -41,7 +41,7 @@ declare global {
|
|
|
41
41
|
/**
|
|
42
42
|
* Render draw options
|
|
43
43
|
*/
|
|
44
|
-
interface
|
|
44
|
+
interface DrawOptions {
|
|
45
45
|
/**
|
|
46
46
|
* Frustum matrix used for culling renderable items.
|
|
47
47
|
*/
|
|
@@ -49,7 +49,7 @@ declare global {
|
|
|
49
49
|
/**
|
|
50
50
|
* Frustum planes used for culling. The default is render.FRUSTUM_PLANES_SIDES.
|
|
51
51
|
*/
|
|
52
|
-
frustum_planes?: render.
|
|
52
|
+
frustum_planes?: render.FrustumPlanes;
|
|
53
53
|
/**
|
|
54
54
|
* Constants used while rendering. The values are copied when `render.draw()` is called.
|
|
55
55
|
*/
|
|
@@ -57,18 +57,18 @@ declare global {
|
|
|
57
57
|
/**
|
|
58
58
|
* World-entry sort order. The default is the renderer's preferred back-to-front order.
|
|
59
59
|
*/
|
|
60
|
-
sort_order?: render.
|
|
60
|
+
sort_order?: render.Sort;
|
|
61
61
|
}
|
|
62
|
-
type
|
|
63
|
-
type
|
|
62
|
+
type RenderPredicate = Opaque<"render_predicate">;
|
|
63
|
+
type RenderTarget = Opaque<"render_target">;
|
|
64
64
|
/**
|
|
65
65
|
* Render-target attachment parameters
|
|
66
66
|
*/
|
|
67
|
-
interface
|
|
67
|
+
interface RenderTargetBufferParams {
|
|
68
68
|
/**
|
|
69
69
|
* Attachment texture format.
|
|
70
70
|
*/
|
|
71
|
-
format: graphics.
|
|
71
|
+
format: graphics.TextureFormat;
|
|
72
72
|
/**
|
|
73
73
|
* Attachment width.
|
|
74
74
|
*/
|
|
@@ -80,46 +80,45 @@ declare global {
|
|
|
80
80
|
/**
|
|
81
81
|
* Minification filter.
|
|
82
82
|
*/
|
|
83
|
-
min_filter?: graphics.
|
|
83
|
+
min_filter?: graphics.TextureFilter;
|
|
84
84
|
/**
|
|
85
85
|
* Magnification filter.
|
|
86
86
|
*/
|
|
87
|
-
mag_filter?: graphics.
|
|
87
|
+
mag_filter?: graphics.TextureFilter;
|
|
88
88
|
/**
|
|
89
89
|
* Horizontal wrap mode.
|
|
90
90
|
*/
|
|
91
|
-
u_wrap?: graphics.
|
|
91
|
+
u_wrap?: graphics.TextureWrap;
|
|
92
92
|
/**
|
|
93
93
|
* Vertical wrap mode.
|
|
94
94
|
*/
|
|
95
|
-
v_wrap?: graphics.
|
|
95
|
+
v_wrap?: graphics.TextureWrap;
|
|
96
96
|
/**
|
|
97
97
|
* Depth wrap mode.
|
|
98
98
|
*/
|
|
99
|
-
w_wrap?: graphics.
|
|
99
|
+
w_wrap?: graphics.TextureWrap;
|
|
100
100
|
/**
|
|
101
101
|
* Attachment creation flags, applicable only to depth and stencil buffers.
|
|
102
102
|
*/
|
|
103
|
-
flags?: render.
|
|
103
|
+
flags?: render.RenderTargetFlag | number;
|
|
104
104
|
}
|
|
105
|
-
type
|
|
105
|
+
type RenderTargetParams = { sample_count?: number } & { [key: number]: render.RenderTargetBufferParams };
|
|
106
106
|
/**
|
|
107
107
|
* Render-target activation options
|
|
108
108
|
*/
|
|
109
|
-
interface
|
|
109
|
+
interface SetRenderTargetOptions {
|
|
110
110
|
/**
|
|
111
111
|
* Buffers whose contents become undefined after the target is deactivated. Missing buffers are ignored; combined depth-stencil buffers remain non-transient unless both are selected.
|
|
112
112
|
*/
|
|
113
|
-
transient?: graphics.
|
|
113
|
+
transient?: graphics.BufferType[];
|
|
114
114
|
}
|
|
115
|
-
type
|
|
115
|
+
type Texture = Opaque<"texture">;
|
|
116
116
|
type ClearBufferKey = typeof graphics.BUFFER_TYPE_COLOR0_BIT | typeof graphics.BUFFER_TYPE_DEPTH_BIT | typeof graphics.BUFFER_TYPE_STENCIL_BIT;
|
|
117
117
|
type RenderTargetTextureType = typeof graphics.TEXTURE_TYPE_2D | typeof graphics.TEXTURE_TYPE_CUBE_MAP;
|
|
118
|
-
type
|
|
119
|
-
type
|
|
120
|
-
type
|
|
121
|
-
type
|
|
122
|
-
type SORT = typeof render.SORT_BACK_TO_FRONT | typeof render.SORT_FRONT_TO_BACK | typeof render.SORT_NONE;
|
|
118
|
+
type ContextEvent = typeof render.CONTEXT_EVENT_CONTEXT_LOST | typeof render.CONTEXT_EVENT_CONTEXT_RESTORED;
|
|
119
|
+
type FrustumPlanes = typeof render.FRUSTUM_PLANES_ALL | typeof render.FRUSTUM_PLANES_SIDES;
|
|
120
|
+
type RenderTargetFlag = typeof render.TEXTURE_BIT;
|
|
121
|
+
type Sort = typeof render.SORT_BACK_TO_FRONT | typeof render.SORT_FRONT_TO_BACK | typeof render.SORT_NONE;
|
|
123
122
|
/**
|
|
124
123
|
* rendering context was lost; rendering pauses and graphics resources become invalid
|
|
125
124
|
*/
|
|
@@ -292,7 +291,7 @@ declare global {
|
|
|
292
291
|
* });
|
|
293
292
|
* ```
|
|
294
293
|
*/
|
|
295
|
-
function disable_state(state: graphics.State): void;
|
|
294
|
+
function disable_state(state: Exclude<graphics.State, typeof graphics.STATE_ALPHA_TEST_SUPPORTED | typeof graphics.STATE_SCISSOR_TEST>): void;
|
|
296
295
|
/**
|
|
297
296
|
* Disables a texture that has previourly been enabled.
|
|
298
297
|
*
|
|
@@ -375,7 +374,7 @@ declare global {
|
|
|
375
374
|
* render.dispatch_compute(32, 32, 32, { constants });
|
|
376
375
|
* ```
|
|
377
376
|
*/
|
|
378
|
-
function dispatch_compute(x: number, y: number, z: number, options?: render.
|
|
377
|
+
function dispatch_compute(x: number, y: number, z: number, options?: render.DispatchOptions): void;
|
|
379
378
|
/**
|
|
380
379
|
* Draws all objects that match a specified predicate. An optional constant buffer can be
|
|
381
380
|
* provided to override the default constants. If no constants buffer is provided, a default
|
|
@@ -473,7 +472,7 @@ declare global {
|
|
|
473
472
|
* }
|
|
474
473
|
* ```
|
|
475
474
|
*/
|
|
476
|
-
function draw(predicate: Opaque<"render_predicate">, options: render.
|
|
475
|
+
function draw(predicate: Opaque<"render_predicate">, options: render.DrawOptions): void;
|
|
477
476
|
/**
|
|
478
477
|
* Draws all 3d debug graphics such as lines drawn with "draw_line" messages and physics visualization.
|
|
479
478
|
*
|
|
@@ -488,7 +487,7 @@ declare global {
|
|
|
488
487
|
* });
|
|
489
488
|
* ```
|
|
490
489
|
*/
|
|
491
|
-
function draw_debug3d(options?: render.
|
|
490
|
+
function draw_debug3d(options?: render.DebugDrawOptions): void;
|
|
492
491
|
/**
|
|
493
492
|
* If another material was already enabled, it will be automatically disabled
|
|
494
493
|
* and the specified material is used instead.
|
|
@@ -540,7 +539,7 @@ declare global {
|
|
|
540
539
|
* });
|
|
541
540
|
* ```
|
|
542
541
|
*/
|
|
543
|
-
function enable_state(state: graphics.State): void;
|
|
542
|
+
function enable_state(state: Exclude<graphics.State, typeof graphics.STATE_ALPHA_TEST_SUPPORTED | typeof graphics.STATE_SCISSOR_TEST>): void;
|
|
544
543
|
/**
|
|
545
544
|
* Sets the specified texture handle for a render target attachment or a regular texture
|
|
546
545
|
* that should be used for rendering. The texture can be bound to either a texture unit
|
|
@@ -629,7 +628,7 @@ declare global {
|
|
|
629
628
|
* });
|
|
630
629
|
* ```
|
|
631
630
|
*/
|
|
632
|
-
function enable_texture(binding: number | string | Hash, handle_or_name: Opaque<"texture"> | string | Hash | Opaque<"render_target"> | number, buffer_type?: graphics.
|
|
631
|
+
function enable_texture(binding: number | string | Hash, handle_or_name: Opaque<"texture"> | string | Hash | Opaque<"render_target"> | number, buffer_type?: graphics.BufferType): void;
|
|
633
632
|
/**
|
|
634
633
|
* Returns the logical window height that is set in the "game.project" settings.
|
|
635
634
|
* Note that the actual window pixel size can change, either by device constraints
|
|
@@ -682,7 +681,7 @@ declare global {
|
|
|
682
681
|
* });
|
|
683
682
|
* ```
|
|
684
683
|
*/
|
|
685
|
-
function get_render_target_height(render_target: Opaque<"render_target"> | string | Hash, buffer_type: graphics.
|
|
684
|
+
function get_render_target_height(render_target: Opaque<"render_target"> | string | Hash, buffer_type: graphics.BufferType): number;
|
|
686
685
|
/**
|
|
687
686
|
* Returns the specified buffer width from a render target.
|
|
688
687
|
*
|
|
@@ -723,7 +722,7 @@ declare global {
|
|
|
723
722
|
* });
|
|
724
723
|
* ```
|
|
725
724
|
*/
|
|
726
|
-
function get_render_target_width(render_target: Opaque<"render_target"> | string | Hash, buffer_type: graphics.
|
|
725
|
+
function get_render_target_width(render_target: Opaque<"render_target"> | string | Hash, buffer_type: graphics.BufferType): number;
|
|
727
726
|
/**
|
|
728
727
|
* Returns the logical window width that is set in the "game.project" settings.
|
|
729
728
|
* Note that the actual window pixel size can change, either by device constraints
|
|
@@ -790,7 +789,7 @@ declare global {
|
|
|
790
789
|
* render.set_blend_equation_separate(graphics.BLEND_EQUATION_ADD, graphics.BLEND_EQUATION_REVERSE_SUBTRACT);
|
|
791
790
|
* ```
|
|
792
791
|
*/
|
|
793
|
-
function set_blend_equation_separate(equation_color: graphics.
|
|
792
|
+
function set_blend_equation_separate(equation_color: graphics.BlendEquation, equation_alpha: graphics.BlendEquation): void;
|
|
794
793
|
/**
|
|
795
794
|
* Specifies the arithmetic used when computing pixel values that are written to the frame
|
|
796
795
|
* buffer. In RGBA mode, pixels can be drawn using a function that blends the source RGBA
|
|
@@ -824,7 +823,7 @@ declare global {
|
|
|
824
823
|
* render.set_blend_func(graphics.BLEND_FACTOR_SRC_ALPHA, graphics.BLEND_FACTOR_ONE_MINUS_SRC_ALPHA);
|
|
825
824
|
* ```
|
|
826
825
|
*/
|
|
827
|
-
function set_blend_func(source_factor: graphics.
|
|
826
|
+
function set_blend_func(source_factor: graphics.BlendFactor, destination_factor: graphics.BlendFactor): void;
|
|
828
827
|
/**
|
|
829
828
|
* Sets the blend function with separate blend factors for the color and alpha channels.
|
|
830
829
|
*
|
|
@@ -870,7 +869,7 @@ declare global {
|
|
|
870
869
|
* }
|
|
871
870
|
* ```
|
|
872
871
|
*/
|
|
873
|
-
function set_camera(camera?: Url | number | string | Hash, options?: render.
|
|
872
|
+
function set_camera(camera?: Url | number | string | Hash, options?: render.CameraOptions): void;
|
|
874
873
|
/**
|
|
875
874
|
* Specifies whether the individual color components in the frame buffer is enabled for writing (`true`) or disabled (`false`). For example, if `blue` is `false`, nothing is written to the blue component of any pixel in any of the color buffers, regardless of the drawing operation attempted. Note that writing are either enabled or disabled for entire color components, not the individual bits of a component.
|
|
876
875
|
* The component masks are all initially `true`.
|
|
@@ -925,7 +924,7 @@ declare global {
|
|
|
925
924
|
* render.set_cull_face(graphics.FACE_TYPE_FRONT);
|
|
926
925
|
* ```
|
|
927
926
|
*/
|
|
928
|
-
function set_cull_face(face_type: graphics.
|
|
927
|
+
function set_cull_face(face_type: graphics.FaceType): void;
|
|
929
928
|
/**
|
|
930
929
|
* Specifies the function that should be used to compare each incoming pixel
|
|
931
930
|
* depth value with the value present in the depth buffer.
|
|
@@ -941,7 +940,7 @@ declare global {
|
|
|
941
940
|
* render.set_depth_func(graphics.COMPARE_FUNC_NOTEQUAL);
|
|
942
941
|
* ```
|
|
943
942
|
*/
|
|
944
|
-
function set_depth_func(func: graphics.
|
|
943
|
+
function set_depth_func(func: graphics.CompareFunc): void;
|
|
945
944
|
/**
|
|
946
945
|
* Specifies whether the depth buffer is enabled for writing. The supplied mask governs
|
|
947
946
|
* if depth buffer writing is enabled (`true`) or disabled (`false`).
|
|
@@ -977,7 +976,7 @@ declare global {
|
|
|
977
976
|
* });
|
|
978
977
|
* ```
|
|
979
978
|
*/
|
|
980
|
-
function set_listener(callback?: (self: unknown, event_type: render.
|
|
979
|
+
function set_listener(callback?: (self: unknown, event_type: render.ContextEvent) => void): void;
|
|
981
980
|
/**
|
|
982
981
|
* Sets the scale and units used to calculate depth values.
|
|
983
982
|
* If `graphics.STATE_POLYGON_OFFSET_FILL` is enabled, each fragment's depth value
|
|
@@ -1149,7 +1148,7 @@ declare global {
|
|
|
1149
1148
|
* });
|
|
1150
1149
|
* ```
|
|
1151
1150
|
*/
|
|
1152
|
-
function set_render_target(render_target: Opaque<"render_target"> | string | Hash | typeof render.RENDER_TARGET_DEFAULT | undefined, options: render.
|
|
1151
|
+
function set_render_target(render_target: Opaque<"render_target"> | string | Hash | typeof render.RENDER_TARGET_DEFAULT | undefined, options: render.SetRenderTargetOptions): void;
|
|
1153
1152
|
/**
|
|
1154
1153
|
* Sets the render target size for a render target created from
|
|
1155
1154
|
* either a render script, or from a render target resource.
|
|
@@ -1197,7 +1196,7 @@ declare global {
|
|
|
1197
1196
|
* render.set_stencil_func(graphics.COMPARE_FUNC_EQUAL, 0, 1);
|
|
1198
1197
|
* ```
|
|
1199
1198
|
*/
|
|
1200
|
-
function set_stencil_func(func: graphics.
|
|
1199
|
+
function set_stencil_func(func: graphics.CompareFunc, ref: number, mask: number): void;
|
|
1201
1200
|
/**
|
|
1202
1201
|
* The stencil mask controls the writing of individual bits in the stencil buffer.
|
|
1203
1202
|
* The least significant `n` bits of the parameter `mask`, where `n` is the number of
|
|
@@ -1239,7 +1238,7 @@ declare global {
|
|
|
1239
1238
|
* render.set_stencil_op(graphics.STENCIL_OP_REPLACE, graphics.STENCIL_OP_KEEP, graphics.STENCIL_OP_KEEP);
|
|
1240
1239
|
* ```
|
|
1241
1240
|
*/
|
|
1242
|
-
function set_stencil_op(sfail: graphics.
|
|
1241
|
+
function set_stencil_op(sfail: graphics.StencilOp, dpfail: graphics.StencilOp, dppass: graphics.StencilOp): void;
|
|
1243
1242
|
/**
|
|
1244
1243
|
* Sets the view matrix to use when rendering.
|
|
1245
1244
|
*
|