@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
|
@@ -0,0 +1,1901 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "PROPERTY",
|
|
5
|
+
"name": "position",
|
|
6
|
+
"brief": "<span class=\"type\">vector3</span> game object position",
|
|
7
|
+
"description": "The position of the game object.\nThe type of the property is vector3.",
|
|
8
|
+
"returnvalues": [],
|
|
9
|
+
"parameters": [],
|
|
10
|
+
"examples": "How to query a game object's position, either as a vector3 or selecting a specific dimension:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- get position from "player"</span>\n <span class=\"kd\">local</span> <span class=\"n\">pos</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get</span><span class=\"p\">(</span><span class=\"s2\">"player"</span><span class=\"p\">,</span> <span class=\"s2\">"position"</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">posx</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get</span><span class=\"p\">(</span><span class=\"s2\">"player"</span><span class=\"p\">,</span> <span class=\"s2\">"position.x"</span><span class=\"p\">)</span>\n <span class=\"c1\">-- do something useful</span>\n <span class=\"nb\">assert</span><span class=\"p\">(</span><span class=\"n\">pos</span><span class=\"p\">.</span><span class=\"n\">x</span> <span class=\"o\">==</span> <span class=\"n\">posx</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
11
|
+
"replaces": "",
|
|
12
|
+
"error": "",
|
|
13
|
+
"tparams": [],
|
|
14
|
+
"members": [],
|
|
15
|
+
"notes": [],
|
|
16
|
+
"language": ""
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "PROPERTY",
|
|
20
|
+
"name": "rotation",
|
|
21
|
+
"brief": "<span class=\"type\">quaternion</span> game object rotation",
|
|
22
|
+
"description": "The rotation of the game object.\nThe type of the property is quaternion.",
|
|
23
|
+
"returnvalues": [],
|
|
24
|
+
"parameters": [],
|
|
25
|
+
"examples": "How to set a game object's rotation:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- set "player" rotation to 45 degrees around z.</span>\n <span class=\"kd\">local</span> <span class=\"n\">rotz</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">quat_rotation_z</span><span class=\"p\">(</span><span class=\"mf\">3.141592</span> <span class=\"o\">/</span> <span class=\"mi\">4</span><span class=\"p\">)</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"s2\">"player"</span><span class=\"p\">,</span> <span class=\"s2\">"rotation"</span><span class=\"p\">,</span> <span class=\"n\">rotz</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
26
|
+
"replaces": "",
|
|
27
|
+
"error": "",
|
|
28
|
+
"tparams": [],
|
|
29
|
+
"members": [],
|
|
30
|
+
"notes": [],
|
|
31
|
+
"language": ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "PROPERTY",
|
|
35
|
+
"name": "euler",
|
|
36
|
+
"brief": "<span class=\"type\">vector3</span> game object euler rotation",
|
|
37
|
+
"description": "The rotation of the game object expressed in Euler angles.\nEuler angles are specified in degrees in the interval (-360, 360).\nThe type of the property is vector3.",
|
|
38
|
+
"returnvalues": [],
|
|
39
|
+
"parameters": [],
|
|
40
|
+
"examples": "How to set a game object's rotation with euler angles, either as a vector3 or selecting a specific dimension:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- set "player" euler z rotation component to 45 degrees around z.</span>\n <span class=\"kd\">local</span> <span class=\"n\">rotz</span> <span class=\"o\">=</span> <span class=\"mi\">45</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"s2\">"player"</span><span class=\"p\">,</span> <span class=\"s2\">"euler.z"</span><span class=\"p\">,</span> <span class=\"n\">rotz</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">rot</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get</span><span class=\"p\">(</span><span class=\"s2\">"player"</span><span class=\"p\">,</span> <span class=\"s2\">"euler"</span><span class=\"p\">)</span>\n <span class=\"c1\">-- do something useful</span>\n <span class=\"nb\">assert</span><span class=\"p\">(</span><span class=\"n\">rot</span><span class=\"p\">.</span><span class=\"n\">z</span> <span class=\"o\">==</span> <span class=\"n\">rotz</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
41
|
+
"replaces": "",
|
|
42
|
+
"error": "",
|
|
43
|
+
"tparams": [],
|
|
44
|
+
"members": [],
|
|
45
|
+
"notes": [],
|
|
46
|
+
"language": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "PROPERTY",
|
|
50
|
+
"name": "scale",
|
|
51
|
+
"brief": "<span class=\"type\">number</span> game object scale",
|
|
52
|
+
"description": "The uniform scale of the game object. The type of the property is number.",
|
|
53
|
+
"returnvalues": [],
|
|
54
|
+
"parameters": [],
|
|
55
|
+
"examples": "How to scale a game object:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- Double the scaling on "player"</span>\n <span class=\"kd\">local</span> <span class=\"n\">scale</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get</span><span class=\"p\">(</span><span class=\"s2\">"player"</span><span class=\"p\">,</span> <span class=\"s2\">"scale"</span><span class=\"p\">)</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"s2\">"player"</span><span class=\"p\">,</span> <span class=\"s2\">"scale"</span><span class=\"p\">,</span> <span class=\"n\">scale</span> <span class=\"o\">*</span> <span class=\"mi\">2</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
56
|
+
"replaces": "",
|
|
57
|
+
"error": "",
|
|
58
|
+
"tparams": [],
|
|
59
|
+
"members": [],
|
|
60
|
+
"notes": [],
|
|
61
|
+
"language": ""
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "FUNCTION",
|
|
65
|
+
"name": "go.get",
|
|
66
|
+
"brief": "gets a named property of the specified game object or component",
|
|
67
|
+
"description": "gets a named property of the specified game object or component",
|
|
68
|
+
"returnvalues": [
|
|
69
|
+
{
|
|
70
|
+
"name": "value",
|
|
71
|
+
"doc": "the value of the specified property",
|
|
72
|
+
"types": [
|
|
73
|
+
"number",
|
|
74
|
+
"boolean",
|
|
75
|
+
"hash",
|
|
76
|
+
"url",
|
|
77
|
+
"vector3",
|
|
78
|
+
"vector4",
|
|
79
|
+
"quaternion",
|
|
80
|
+
"resource"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"parameters": [
|
|
85
|
+
{
|
|
86
|
+
"name": "url",
|
|
87
|
+
"doc": "url of the game object or component having the property",
|
|
88
|
+
"types": ["string", "hash", "url"],
|
|
89
|
+
"is_optional": "False"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "property",
|
|
93
|
+
"doc": "id of the property to retrieve",
|
|
94
|
+
"types": ["string", "hash"],
|
|
95
|
+
"is_optional": "False"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "options",
|
|
99
|
+
"doc": "optional options table\n- index <span class=\"type\">number</span> index into array property (1 based)\n- key <span class=\"type\">hash</span> name of internal property\n- keys <span class=\"type\">table</span> array of internal component resources identified by key (e.g. a particle fx emitter, see examples below)",
|
|
100
|
+
"types": ["table"],
|
|
101
|
+
"is_optional": "True"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"examples": "Get a property \"speed\" from a script \"player\", the property must be declared in the player-script:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"speed"</span><span class=\"p\">,</span> <span class=\"mi\">50</span><span class=\"p\">)</span>\n</code></pre></div>\n\nThen in the calling script (assumed to belong to the same game object, but does not have to):\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">speed</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get</span><span class=\"p\">(</span><span class=\"s2\">"#player"</span><span class=\"p\">,</span> <span class=\"s2\">"speed"</span><span class=\"p\">)</span>\n<span class=\"err\">```</span><span class=\"n\">Get</span> <span class=\"n\">a</span> <span class=\"n\">value</span> <span class=\"kr\">in</span> <span class=\"n\">a</span> <span class=\"n\">material</span> <span class=\"n\">property</span> <span class=\"n\">array</span>\n\n<span class=\"err\">```</span><span class=\"n\">lua</span>\n<span class=\"c1\">-- get the first vector4 in the array: example[0] (the glsl indices are 0-based)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get</span><span class=\"p\">(</span><span class=\"n\">url</span><span class=\"p\">,</span> <span class=\"s2\">"example"</span><span class=\"p\">,</span> <span class=\"p\">{</span><span class=\"n\">index</span><span class=\"o\">=</span><span class=\"mi\">1</span><span class=\"p\">})</span>\n\n<span class=\"c1\">-- get the last vector4 in the array: example[15] (the glsl indices are 0-based)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get</span><span class=\"p\">(</span><span class=\"n\">url</span><span class=\"p\">,</span> <span class=\"s2\">"example"</span><span class=\"p\">,</span> <span class=\"p\">{</span><span class=\"n\">index</span><span class=\"o\">=</span><span class=\"mi\">16</span><span class=\"p\">})</span>\n\n<span class=\"c1\">-- get an element of a vector4 in the array: example[0].x (the glsl indices are 0-based)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get</span><span class=\"p\">(</span><span class=\"n\">url</span><span class=\"p\">,</span> <span class=\"s2\">"example.x"</span><span class=\"p\">,</span> <span class=\"p\">{</span><span class=\"n\">index</span><span class=\"o\">=</span><span class=\"mi\">1</span><span class=\"p\">})</span>\n</code></pre></div>\n\nGetting all values in a material property array as a table\n```lua\n-- get all vector4's in the constant array\ngo.get(url, \"example\")\n-- result: { vector4, vector4, ... }\n-- get all elements of the vector4's from an array\ngo.get(url, \"example.x\")\n-- result: { number1, number2, ... }\n```Get a named property\n<code>lua\n-- get the resource of a certain gui font\nlocal font_hash = go.get(\"#gui\", \"fonts\", {key = \"system_font_BIG\"})</code>Get a property from a sub-component, using the \"keys\" options table\n<code>lua\n-- Addressing the first level of a component:\ngo.get(\"#particlefx\", \"material\", { keys = { \"cone_emitter\" } })</code>Get a property into a deeper sub-hierarchy (if the component supports it).\n```lua\n-- Note: There is currently no component that supports this, but a custom component could.\ngo.get(\"#my_component\", \"some_property\", { keys = { \"root\", \"child_node\" } })",
|
|
105
|
+
"replaces": "",
|
|
106
|
+
"error": "",
|
|
107
|
+
"tparams": [],
|
|
108
|
+
"members": [],
|
|
109
|
+
"notes": [],
|
|
110
|
+
"language": ""
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "FUNCTION",
|
|
114
|
+
"name": "go.set",
|
|
115
|
+
"brief": "sets a named property of the specified game object or component, or a material constant",
|
|
116
|
+
"description": "sets a named property of the specified game object or component, or a material constant",
|
|
117
|
+
"returnvalues": [],
|
|
118
|
+
"parameters": [
|
|
119
|
+
{
|
|
120
|
+
"name": "url",
|
|
121
|
+
"doc": "url of the game object or component having the property",
|
|
122
|
+
"types": ["string", "hash", "url"],
|
|
123
|
+
"is_optional": "False"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "property",
|
|
127
|
+
"doc": "id of the property to set",
|
|
128
|
+
"types": ["string", "hash"],
|
|
129
|
+
"is_optional": "False"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "value",
|
|
133
|
+
"doc": "the value to set",
|
|
134
|
+
"types": [
|
|
135
|
+
"number",
|
|
136
|
+
"boolean",
|
|
137
|
+
"hash",
|
|
138
|
+
"url",
|
|
139
|
+
"vector3",
|
|
140
|
+
"vector4",
|
|
141
|
+
"quaternion",
|
|
142
|
+
"resource"
|
|
143
|
+
],
|
|
144
|
+
"is_optional": "False"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "options",
|
|
148
|
+
"doc": "optional options table\n- index <span class=\"type\">integer</span> index into array property (1 based)\n- key <span class=\"type\">hash</span> name of internal property\n- keys <span class=\"type\">table</span> array of internal component resources identified by key (e.g. a particle fx emitter, see examples below)",
|
|
149
|
+
"types": ["table"],
|
|
150
|
+
"is_optional": "True"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"examples": "Set a property \"speed\" of a script \"player\", the property must be declared in the player-script:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"speed"</span><span class=\"p\">,</span> <span class=\"mi\">50</span><span class=\"p\">)</span>\n</code></pre></div>\n\nThen in the calling script (assumed to belong to the same game object, but does not have to):\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"s2\">"#player"</span><span class=\"p\">,</span> <span class=\"s2\">"speed"</span><span class=\"p\">,</span> <span class=\"mi\">100</span><span class=\"p\">)</span>\n<span class=\"err\">```</span><span class=\"n\">Set</span> <span class=\"n\">a</span> <span class=\"n\">vector4</span> <span class=\"kr\">in</span> <span class=\"n\">a</span> <span class=\"n\">material</span> <span class=\"n\">property</span> <span class=\"n\">array</span>\n\n<span class=\"err\">```</span><span class=\"n\">lua</span>\n<span class=\"c1\">-- set the first vector4 in the array: example[0] = v (the glsl indices are 0-based)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"n\">url</span><span class=\"p\">,</span> <span class=\"s2\">"example"</span><span class=\"p\">,</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector4</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">,</span><span class=\"mi\">1</span><span class=\"p\">,</span><span class=\"mi\">1</span><span class=\"p\">,</span><span class=\"mi\">1</span><span class=\"p\">),</span> <span class=\"p\">{</span><span class=\"n\">index</span><span class=\"o\">=</span><span class=\"mi\">1</span><span class=\"p\">})</span>\n\n<span class=\"c1\">-- set the last vector4 in the array: example[15] = v (the glsl indices are 0-based)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"n\">url</span><span class=\"p\">,</span> <span class=\"s2\">"example"</span><span class=\"p\">,</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector4</span><span class=\"p\">(</span><span class=\"mi\">2</span><span class=\"p\">,</span><span class=\"mi\">2</span><span class=\"p\">,</span><span class=\"mi\">2</span><span class=\"p\">,</span><span class=\"mi\">2</span><span class=\"p\">),</span> <span class=\"p\">{</span><span class=\"n\">index</span><span class=\"o\">=</span><span class=\"mi\">16</span><span class=\"p\">})</span>\n\n<span class=\"c1\">-- set an element of a vector4 in the array: example[0].x = 7 (the glsl indices are 0-based)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set</span><span class=\"p\">(</span><span class=\"n\">url</span><span class=\"p\">,</span> <span class=\"s2\">"example.x"</span><span class=\"p\">,</span> <span class=\"mi\">7</span><span class=\"p\">,</span> <span class=\"p\">{</span><span class=\"n\">index</span><span class=\"o\">=</span><span class=\"mi\">1</span><span class=\"p\">})</span>\n</code></pre></div>\n\nSet a material property array by a table of vector4\n<code>lua\n-- set the first two vector4's in the array\n-- if the array has more than two elements in the array they will not be set\ngo.set(url, \"example\", { vmath.vector4(1,1,1,1), vmath.vector4(2,2,2,2) })</code>Set a named property\n```lua\ngo.property(\"big_font\", resource.font())\nfunction init(self)\n go.set(\"#gui\", \"fonts\", self.big_font, {key = \"system_font_BIG\"})\nend\n```Set a property on a sub-component, using the \"keys\" options table\n<code>lua\ngo.property(\"my_material\", resource.material)\nfunction init(self)\n go.set(\"#particlefx\", \"material\", self.my_material, { keys = { \"cone_emitter\" } })\nend</code>Set a property in a deeper sub-hierarchy (if the component supports it).\n```lua\n-- Note: There is currently no component that supports this, but a custom component could.\ngo.set(\"#my_component\", \"some_property\", some_value, { keys = { \"root\", \"child_node\" } })",
|
|
154
|
+
"replaces": "",
|
|
155
|
+
"error": "",
|
|
156
|
+
"tparams": [],
|
|
157
|
+
"members": [],
|
|
158
|
+
"notes": [],
|
|
159
|
+
"language": ""
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "FUNCTION",
|
|
163
|
+
"name": "go.get_position",
|
|
164
|
+
"brief": "gets the position of a game object instance",
|
|
165
|
+
"description": "The position is relative the parent (if any). Use <a href=\"/ref/go#go.get_world_position\">go.get_world_position</a> to retrieve the global world position.",
|
|
166
|
+
"returnvalues": [
|
|
167
|
+
{
|
|
168
|
+
"name": "position",
|
|
169
|
+
"doc": "instance position",
|
|
170
|
+
"types": ["vector3"]
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"parameters": [
|
|
174
|
+
{
|
|
175
|
+
"name": "id",
|
|
176
|
+
"doc": "optional id of the game object instance to get the position for, by default the instance of the calling script",
|
|
177
|
+
"types": ["string", "hash", "url"],
|
|
178
|
+
"is_optional": "True"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"examples": "Get the position of the game object instance the script is attached to:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">p</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_position</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the position of another game object instance \"my_gameobject\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">pos</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_position</span><span class=\"p\">(</span><span class=\"s2\">"my_gameobject"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
182
|
+
"replaces": "request_transform transform_response",
|
|
183
|
+
"error": "",
|
|
184
|
+
"tparams": [],
|
|
185
|
+
"members": [],
|
|
186
|
+
"notes": [],
|
|
187
|
+
"language": ""
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "FUNCTION",
|
|
191
|
+
"name": "go.get_rotation",
|
|
192
|
+
"brief": "gets the rotation of the game object instance",
|
|
193
|
+
"description": "The rotation is relative to the parent (if any). Use <a href=\"/ref/go#go.get_world_rotation\">go.get_world_rotation</a> to retrieve the global world rotation.",
|
|
194
|
+
"returnvalues": [
|
|
195
|
+
{
|
|
196
|
+
"name": "rotation",
|
|
197
|
+
"doc": "instance rotation",
|
|
198
|
+
"types": ["quaternion"]
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"parameters": [
|
|
202
|
+
{
|
|
203
|
+
"name": "id",
|
|
204
|
+
"doc": "optional id of the game object instance to get the rotation for, by default the instance of the calling script",
|
|
205
|
+
"types": ["string", "hash", "url"],
|
|
206
|
+
"is_optional": "True"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"examples": "Get the rotation of the game object instance the script is attached to:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">r</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_rotation</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the rotation of another game object instance with id \"x\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">r</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_rotation</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
210
|
+
"replaces": "",
|
|
211
|
+
"error": "",
|
|
212
|
+
"tparams": [],
|
|
213
|
+
"members": [],
|
|
214
|
+
"notes": [],
|
|
215
|
+
"language": ""
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "FUNCTION",
|
|
219
|
+
"name": "go.get_scale",
|
|
220
|
+
"brief": "gets the 3D scale factor of the game object instance",
|
|
221
|
+
"description": "The scale is relative the parent (if any). Use <a href=\"/ref/go#go.get_world_scale\">go.get_world_scale</a> to retrieve the global world 3D scale factor.",
|
|
222
|
+
"returnvalues": [
|
|
223
|
+
{
|
|
224
|
+
"name": "scale",
|
|
225
|
+
"doc": "instance scale factor",
|
|
226
|
+
"types": ["vector3"]
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"parameters": [
|
|
230
|
+
{
|
|
231
|
+
"name": "id",
|
|
232
|
+
"doc": "optional id of the game object instance to get the scale for, by default the instance of the calling script",
|
|
233
|
+
"types": ["string", "hash", "url"],
|
|
234
|
+
"is_optional": "True"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"examples": "Get the scale of the game object instance the script is attached to:\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\">go</span><span class=\"p\">.</span><span class=\"n\">get_scale</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the scale of another game object instance with id \"x\":\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\">go</span><span class=\"p\">.</span><span class=\"n\">get_scale</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
238
|
+
"replaces": "",
|
|
239
|
+
"error": "",
|
|
240
|
+
"tparams": [],
|
|
241
|
+
"members": [],
|
|
242
|
+
"notes": [],
|
|
243
|
+
"language": ""
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "FUNCTION",
|
|
247
|
+
"name": "go.get_scale_uniform",
|
|
248
|
+
"brief": "gets the uniform scale factor of the game object instance",
|
|
249
|
+
"description": "The uniform scale is relative the parent (if any). If the underlying scale vector is non-uniform the min element of the vector is returned as the uniform scale factor.",
|
|
250
|
+
"returnvalues": [
|
|
251
|
+
{
|
|
252
|
+
"name": "scale",
|
|
253
|
+
"doc": "uniform instance scale factor",
|
|
254
|
+
"types": ["number"]
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"parameters": [
|
|
258
|
+
{
|
|
259
|
+
"name": "id",
|
|
260
|
+
"doc": "optional id of the game object instance to get the uniform scale for, by default the instance of the calling script",
|
|
261
|
+
"types": ["string", "hash", "url"],
|
|
262
|
+
"is_optional": "True"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"examples": "Get the scale of the game object instance the script is attached to:\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\">go</span><span class=\"p\">.</span><span class=\"n\">get_scale_uniform</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the uniform scale of another game object instance with id \"x\":\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\">go</span><span class=\"p\">.</span><span class=\"n\">get_scale_uniform</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
266
|
+
"replaces": "",
|
|
267
|
+
"error": "",
|
|
268
|
+
"tparams": [],
|
|
269
|
+
"members": [],
|
|
270
|
+
"notes": [],
|
|
271
|
+
"language": ""
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"type": "FUNCTION",
|
|
275
|
+
"name": "go.set_position",
|
|
276
|
+
"brief": "sets the position of the game object instance",
|
|
277
|
+
"description": "The position is relative to the parent (if any). The global world position cannot be manually set.",
|
|
278
|
+
"returnvalues": [],
|
|
279
|
+
"parameters": [
|
|
280
|
+
{
|
|
281
|
+
"name": "position",
|
|
282
|
+
"doc": "position to set",
|
|
283
|
+
"types": ["vector3"],
|
|
284
|
+
"is_optional": "False"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "id",
|
|
288
|
+
"doc": "optional id of the game object instance to set the position for, by default the instance of the calling script",
|
|
289
|
+
"types": ["string", "hash", "url"],
|
|
290
|
+
"is_optional": "True"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"examples": "Set the position of the game object instance the script is attached to:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">p</span> <span class=\"o\">=</span> <span class=\"p\">...</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_position</span><span class=\"p\">(</span><span class=\"n\">p</span><span class=\"p\">)</span>\n</code></pre></div>\n\nSet the position of another game object instance with id \"x\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">p</span> <span class=\"o\">=</span> <span class=\"p\">...</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_position</span><span class=\"p\">(</span><span class=\"n\">p</span><span class=\"p\">,</span> <span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
294
|
+
"replaces": "",
|
|
295
|
+
"error": "",
|
|
296
|
+
"tparams": [],
|
|
297
|
+
"members": [],
|
|
298
|
+
"notes": [],
|
|
299
|
+
"language": ""
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"type": "FUNCTION",
|
|
303
|
+
"name": "go.set_rotation",
|
|
304
|
+
"brief": "sets the rotation of the game object instance",
|
|
305
|
+
"description": "The rotation is relative to the parent (if any). The global world rotation cannot be manually set.",
|
|
306
|
+
"returnvalues": [],
|
|
307
|
+
"parameters": [
|
|
308
|
+
{
|
|
309
|
+
"name": "rotation",
|
|
310
|
+
"doc": "rotation to set",
|
|
311
|
+
"types": ["quaternion"],
|
|
312
|
+
"is_optional": "False"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "id",
|
|
316
|
+
"doc": "optional id of the game object instance to get the rotation for, by default the instance of the calling script",
|
|
317
|
+
"types": ["string", "hash", "url"],
|
|
318
|
+
"is_optional": "True"
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"examples": "Set the rotation of the game object instance the script is attached to:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">r</span> <span class=\"o\">=</span> <span class=\"p\">...</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_rotation</span><span class=\"p\">(</span><span class=\"n\">r</span><span class=\"p\">)</span>\n</code></pre></div>\n\nSet the rotation of another game object instance with id \"x\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">r</span> <span class=\"o\">=</span> <span class=\"p\">...</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_rotation</span><span class=\"p\">(</span><span class=\"n\">r</span><span class=\"p\">,</span> <span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
322
|
+
"replaces": "",
|
|
323
|
+
"error": "",
|
|
324
|
+
"tparams": [],
|
|
325
|
+
"members": [],
|
|
326
|
+
"notes": [],
|
|
327
|
+
"language": ""
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"type": "FUNCTION",
|
|
331
|
+
"name": "go.set_scale",
|
|
332
|
+
"brief": "sets the scale factor of the game object instance",
|
|
333
|
+
"description": "The scale factor is relative to the parent (if any). The global world scale factor cannot be manually set.\n<span class=\"icon-attention\"></span> See <a href=\"/manuals/project-settings/#allow-dynamic-transforms\">manual</a> to know how physics affected when setting scale from this function.",
|
|
334
|
+
"returnvalues": [],
|
|
335
|
+
"parameters": [
|
|
336
|
+
{
|
|
337
|
+
"name": "scale",
|
|
338
|
+
"doc": "vector or uniform scale factor, must be greater than 0",
|
|
339
|
+
"types": ["number", "vector3"],
|
|
340
|
+
"is_optional": "False"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "id",
|
|
344
|
+
"doc": "optional id of the game object instance to get the scale for, by default the instance of the calling script",
|
|
345
|
+
"types": ["string", "hash", "url"],
|
|
346
|
+
"is_optional": "True"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"examples": "Set the scale of the game object instance the script is attached to:\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\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"mf\">2.0</span><span class=\"p\">,</span> <span class=\"mf\">1.0</span><span class=\"p\">,</span> <span class=\"mf\">1.0</span><span class=\"p\">)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_scale</span><span class=\"p\">(</span><span class=\"n\">s</span><span class=\"p\">)</span>\n</code></pre></div>\n\nSet the scale of another game object instance with id \"obj_id\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">s</span> <span class=\"o\">=</span> <span class=\"mf\">1.2</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_scale</span><span class=\"p\">(</span><span class=\"n\">s</span><span class=\"p\">,</span> <span class=\"s2\">"obj_id"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
350
|
+
"replaces": "",
|
|
351
|
+
"error": "",
|
|
352
|
+
"tparams": [],
|
|
353
|
+
"members": [],
|
|
354
|
+
"notes": [],
|
|
355
|
+
"language": ""
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"type": "FUNCTION",
|
|
359
|
+
"name": "go.set_scale_xy",
|
|
360
|
+
"brief": "sets the scale factor only for width and height (x and y) of the game object instance",
|
|
361
|
+
"description": "The scale factor is relative to the parent (if any). The global world scale factor cannot be manually set.\n<span class=\"icon-attention\"></span> See <a href=\"/manuals/project-settings/#allow-dynamic-transforms\">manual</a> to know how physics affected when setting scale from this function.",
|
|
362
|
+
"returnvalues": [],
|
|
363
|
+
"parameters": [
|
|
364
|
+
{
|
|
365
|
+
"name": "scale",
|
|
366
|
+
"doc": "vector or uniform scale factor, must be greater than 0",
|
|
367
|
+
"types": ["number", "vector3"],
|
|
368
|
+
"is_optional": "False"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "id",
|
|
372
|
+
"doc": "optional id of the game object instance to get the scale for, by default the instance of the calling script",
|
|
373
|
+
"types": ["string", "hash", "url"],
|
|
374
|
+
"is_optional": "True"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"examples": "Set the scale of the game object instance the script is attached to:\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\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"mf\">2.0</span><span class=\"p\">,</span> <span class=\"mf\">1.0</span><span class=\"p\">,</span> <span class=\"mf\">5.0</span><span class=\"p\">)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_scale_xy</span><span class=\"p\">(</span><span class=\"n\">s</span><span class=\"p\">)</span> <span class=\"c1\">-- z will not be set here, only x and y</span>\n</code></pre></div>\n\nSet the scale of another game object instance with id \"obj_id\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">s</span> <span class=\"o\">=</span> <span class=\"mf\">1.2</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_scale_xy</span><span class=\"p\">(</span><span class=\"n\">s</span><span class=\"p\">,</span> <span class=\"s2\">"obj_id"</span><span class=\"p\">)</span> <span class=\"c1\">-- z will not be set here, only x and y</span>\n</code></pre></div>",
|
|
378
|
+
"replaces": "",
|
|
379
|
+
"error": "",
|
|
380
|
+
"tparams": [],
|
|
381
|
+
"members": [],
|
|
382
|
+
"notes": [],
|
|
383
|
+
"language": ""
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"type": "FUNCTION",
|
|
387
|
+
"name": "go.set_parent",
|
|
388
|
+
"brief": "sets the parent for a specific game object instance",
|
|
389
|
+
"description": "Sets the parent for a game object instance. This means that the instance will exist in the geometrical space of its parent,\nlike a basic transformation hierarchy or scene graph. If no parent is specified, the instance will be detached from any parent and exist in world\nspace.\nThis function will generate a <code>set_parent</code> message. It is not until the message has been processed that the change actually takes effect. This\ntypically happens later in the same frame or the beginning of the next frame. Refer to the manual to learn how messages are processed by the\nengine.",
|
|
390
|
+
"returnvalues": [],
|
|
391
|
+
"parameters": [
|
|
392
|
+
{
|
|
393
|
+
"name": "id",
|
|
394
|
+
"doc": "optional id of the game object instance to set parent for, defaults to the instance containing the calling script",
|
|
395
|
+
"types": ["string", "hash", "url"],
|
|
396
|
+
"is_optional": "True"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "parent_id",
|
|
400
|
+
"doc": "optional id of the new parent game object, defaults to detaching game object from its parent",
|
|
401
|
+
"types": ["string", "hash", "url"],
|
|
402
|
+
"is_optional": "True"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "keep_world_transform",
|
|
406
|
+
"doc": "optional boolean, set to true to maintain the world transform when changing spaces. Defaults to false.",
|
|
407
|
+
"types": ["boolean"],
|
|
408
|
+
"is_optional": "True"
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"examples": "Attach myself to another instance \"my_parent\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_parent</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(),</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"my_parent"</span><span class=\"p\">))</span>\n</code></pre></div>\n\nAttach an instance \"my_instance\" to another instance \"my_parent\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_parent</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"my_instance"</span><span class=\"p\">),</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"my_parent"</span><span class=\"p\">))</span>\n</code></pre></div>\n\nDetach an instance \"my_instance\" from its parent (if any):\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_parent</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"my_instance"</span><span class=\"p\">))</span>\n</code></pre></div>",
|
|
412
|
+
"replaces": "",
|
|
413
|
+
"error": "",
|
|
414
|
+
"tparams": [],
|
|
415
|
+
"members": [],
|
|
416
|
+
"notes": [],
|
|
417
|
+
"language": ""
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "FUNCTION",
|
|
421
|
+
"name": "go.get_parent",
|
|
422
|
+
"brief": "get the parent for a specific game object instance",
|
|
423
|
+
"description": "Get the parent for a game object instance.",
|
|
424
|
+
"returnvalues": [
|
|
425
|
+
{
|
|
426
|
+
"name": "parent_id",
|
|
427
|
+
"doc": "parent instance or <code>nil</code>",
|
|
428
|
+
"types": ["hash", "nil"]
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"parameters": [
|
|
432
|
+
{
|
|
433
|
+
"name": "id",
|
|
434
|
+
"doc": "optional id of the game object instance to get parent for, defaults to the instance containing the calling script",
|
|
435
|
+
"types": ["string", "hash", "url"],
|
|
436
|
+
"is_optional": "True"
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"examples": "Get parent of the instance containing the calling script:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">parent_id</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_parent</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet parent of the instance with id \"x\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">parent_id</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_parent</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
440
|
+
"replaces": "",
|
|
441
|
+
"error": "",
|
|
442
|
+
"tparams": [],
|
|
443
|
+
"members": [],
|
|
444
|
+
"notes": [],
|
|
445
|
+
"language": ""
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"type": "FUNCTION",
|
|
449
|
+
"name": "go.get_world_position",
|
|
450
|
+
"brief": "gets the game object instance world position",
|
|
451
|
+
"description": "The function will return the world position calculated at the end of the previous frame.\nTo recalculate it within the current frame, use <a href=\"/ref/go#go.update_world_transform\">go.update_world_transform</a> on the instance before calling this.\nUse <a href=\"/ref/go#go.get_position\">go.get_position</a> to retrieve the position relative to the parent.",
|
|
452
|
+
"returnvalues": [
|
|
453
|
+
{
|
|
454
|
+
"name": "position",
|
|
455
|
+
"doc": "instance world position",
|
|
456
|
+
"types": ["vector3"]
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"parameters": [
|
|
460
|
+
{
|
|
461
|
+
"name": "id",
|
|
462
|
+
"doc": "optional id of the game object instance to get the world position for, by default the instance of the calling script",
|
|
463
|
+
"types": ["string", "hash", "url"],
|
|
464
|
+
"is_optional": "True"
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"examples": "Get the world position of the game object instance the script is attached to:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">p</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_position</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the world position of another game object instance with id \"x\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">p</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_position</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
468
|
+
"replaces": "",
|
|
469
|
+
"error": "",
|
|
470
|
+
"tparams": [],
|
|
471
|
+
"members": [],
|
|
472
|
+
"notes": [],
|
|
473
|
+
"language": ""
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"type": "FUNCTION",
|
|
477
|
+
"name": "go.get_world_rotation",
|
|
478
|
+
"brief": "gets the game object instance world rotation",
|
|
479
|
+
"description": "The function will return the world rotation calculated at the end of the previous frame.\nTo recalculate it within the current frame, use <a href=\"/ref/go#go.update_world_transform\">go.update_world_transform</a> on the instance before calling this.\nUse <a href=\"/ref/go#go.get_rotation\">go.get_rotation</a> to retrieve the rotation relative to the parent.",
|
|
480
|
+
"returnvalues": [
|
|
481
|
+
{
|
|
482
|
+
"name": "rotation",
|
|
483
|
+
"doc": "instance world rotation",
|
|
484
|
+
"types": ["quaternion"]
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"parameters": [
|
|
488
|
+
{
|
|
489
|
+
"name": "id",
|
|
490
|
+
"doc": "optional id of the game object instance to get the world rotation for, by default the instance of the calling script",
|
|
491
|
+
"types": ["string", "hash", "url"],
|
|
492
|
+
"is_optional": "True"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"examples": "Get the world rotation of the game object instance the script is attached to:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">r</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_rotation</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the world rotation of another game object instance with id \"x\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">r</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_rotation</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
496
|
+
"replaces": "",
|
|
497
|
+
"error": "",
|
|
498
|
+
"tparams": [],
|
|
499
|
+
"members": [],
|
|
500
|
+
"notes": [],
|
|
501
|
+
"language": ""
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"type": "FUNCTION",
|
|
505
|
+
"name": "go.get_world_scale",
|
|
506
|
+
"brief": "gets the game object instance world 3D scale factor",
|
|
507
|
+
"description": "The function will return the world 3D scale factor calculated at the end of the previous frame.\nTo recalculate it within the current frame, use <a href=\"/ref/go#go.update_world_transform\">go.update_world_transform</a> on the instance before calling this.\nUse <a href=\"/ref/go#go.get_scale\">go.get_scale</a> to retrieve the 3D scale factor relative to the parent.\nThis vector is derived by decomposing the transformation matrix and should be used with care.\nFor most cases it should be fine to use <a href=\"/ref/go#go.get_world_scale_uniform\">go.get_world_scale_uniform</a> instead.",
|
|
508
|
+
"returnvalues": [
|
|
509
|
+
{
|
|
510
|
+
"name": "scale",
|
|
511
|
+
"doc": "instance world 3D scale factor",
|
|
512
|
+
"types": ["vector3"]
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"parameters": [
|
|
516
|
+
{
|
|
517
|
+
"name": "id",
|
|
518
|
+
"doc": "optional id of the game object instance to get the world scale for, by default the instance of the calling script",
|
|
519
|
+
"types": ["string", "hash", "url"],
|
|
520
|
+
"is_optional": "True"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"examples": "Get the world 3D scale of the game object instance the script is attached to:\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\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_scale</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the world scale of another game object instance \"x\":\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\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_scale</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
524
|
+
"replaces": "",
|
|
525
|
+
"error": "",
|
|
526
|
+
"tparams": [],
|
|
527
|
+
"members": [],
|
|
528
|
+
"notes": [],
|
|
529
|
+
"language": ""
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "FUNCTION",
|
|
533
|
+
"name": "go.get_world_scale_uniform",
|
|
534
|
+
"brief": "gets the uniform game object instance world scale factor",
|
|
535
|
+
"description": "The function will return the world scale factor calculated at the end of the previous frame.\nTo recalculate it within the current frame, use <a href=\"/ref/go#go.update_world_transform\">go.update_world_transform</a> on the instance before calling this.\nUse <a href=\"/ref/go#go.get_scale_uniform\">go.get_scale_uniform</a> to retrieve the scale factor relative to the parent.",
|
|
536
|
+
"returnvalues": [
|
|
537
|
+
{
|
|
538
|
+
"name": "scale",
|
|
539
|
+
"doc": "instance world scale factor",
|
|
540
|
+
"types": ["number"]
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
"parameters": [
|
|
544
|
+
{
|
|
545
|
+
"name": "id",
|
|
546
|
+
"doc": "optional id of the game object instance to get the world scale for, by default the instance of the calling script",
|
|
547
|
+
"types": ["string", "hash", "url"],
|
|
548
|
+
"is_optional": "True"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"examples": "Get the world scale of the game object instance the script is attached to:\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\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_scale_uniform</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the world scale of another game object instance with id \"x\":\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\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_scale_uniform</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
552
|
+
"replaces": "",
|
|
553
|
+
"error": "",
|
|
554
|
+
"tparams": [],
|
|
555
|
+
"members": [],
|
|
556
|
+
"notes": [],
|
|
557
|
+
"language": ""
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"type": "FUNCTION",
|
|
561
|
+
"name": "go.get_world_transform",
|
|
562
|
+
"brief": "gets the game object instance world transform matrix",
|
|
563
|
+
"description": "The function will return the world transform matrix calculated at the end of the previous frame.\nTo recalculate it within the current frame, use <a href=\"/ref/go#go.update_world_transform\">go.update_world_transform</a> on the instance before calling this.",
|
|
564
|
+
"returnvalues": [
|
|
565
|
+
{
|
|
566
|
+
"name": "transform",
|
|
567
|
+
"doc": "instance world transform",
|
|
568
|
+
"types": ["matrix4"]
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
"parameters": [
|
|
572
|
+
{
|
|
573
|
+
"name": "id",
|
|
574
|
+
"doc": "optional id of the game object instance to get the world transform for, by default the instance of the calling script",
|
|
575
|
+
"types": ["string", "hash", "url"],
|
|
576
|
+
"is_optional": "True"
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
"examples": "Get the world transform of the game object instance the script is attached to:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">m</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_transform</span><span class=\"p\">()</span>\n</code></pre></div>\n\nGet the world transform of another game object instance with id \"x\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">m</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_transform</span><span class=\"p\">(</span><span class=\"s2\">"x"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
580
|
+
"replaces": "",
|
|
581
|
+
"error": "",
|
|
582
|
+
"tparams": [],
|
|
583
|
+
"members": [],
|
|
584
|
+
"notes": [],
|
|
585
|
+
"language": ""
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"type": "FUNCTION",
|
|
589
|
+
"name": "go.update_world_transform",
|
|
590
|
+
"brief": "updates the world transform for a game object instance",
|
|
591
|
+
"description": "Recalculates and updates the cached world transform immediately for the target instance\nand its ancestors (parent chain up to the collection root). Descendants (children) are\nnot updated by this function.\nIf no id is provided, the instance of the calling script is used.\n<span class=\"icon-attention\"></span> Use this after changing local transform mid-frame when you need the\nnew world transform right away (e.g. before end-of-frame updates). Note that child\ninstances will still have last-frame world transforms until the regular update.",
|
|
592
|
+
"returnvalues": [],
|
|
593
|
+
"parameters": [
|
|
594
|
+
{
|
|
595
|
+
"name": "id",
|
|
596
|
+
"doc": "optional id of the game object instance to update",
|
|
597
|
+
"types": ["string", "hash", "url"],
|
|
598
|
+
"is_optional": "True"
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
"examples": "Update this game object's world transform:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">update_world_transform</span><span class=\"p\">()</span>\n</code></pre></div>\n\nUpdate another game object's world transform:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">update_world_transform</span><span class=\"p\">(</span><span class=\"s2\">"/other"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
602
|
+
"replaces": "",
|
|
603
|
+
"error": "",
|
|
604
|
+
"tparams": [],
|
|
605
|
+
"members": [],
|
|
606
|
+
"notes": [],
|
|
607
|
+
"language": ""
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"type": "FUNCTION",
|
|
611
|
+
"name": "go.get_id",
|
|
612
|
+
"brief": "gets the id of an instance",
|
|
613
|
+
"description": "Returns or constructs an instance identifier. The instance id is a hash\nof the absolute path to the instance.\n<ul>\n<li>If <code>path</code> is specified, it can either be absolute or relative to the instance of the calling script.</li>\n<li>If <code>path</code> is not specified, the id of the game object instance the script is attached to will be returned.</li>\n</ul>",
|
|
614
|
+
"returnvalues": [
|
|
615
|
+
{
|
|
616
|
+
"name": "id",
|
|
617
|
+
"doc": "instance id",
|
|
618
|
+
"types": ["hash"]
|
|
619
|
+
}
|
|
620
|
+
],
|
|
621
|
+
"parameters": [
|
|
622
|
+
{
|
|
623
|
+
"name": "path",
|
|
624
|
+
"doc": "path of the instance for which to return the id",
|
|
625
|
+
"types": ["string"],
|
|
626
|
+
"is_optional": "True"
|
|
627
|
+
}
|
|
628
|
+
],
|
|
629
|
+
"examples": "For the instance with path <code>/my_sub_collection/my_instance</code>, the following calls are equivalent:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">id</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">()</span> <span class=\"c1\">-- no path, defaults to the instance containing the calling script</span>\n<span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">id</span><span class=\"p\">)</span> <span class=\"c1\">--> hash: [/my_sub_collection/my_instance]</span>\n\n<span class=\"kd\">local</span> <span class=\"n\">id</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"/my_sub_collection/my_instance"</span><span class=\"p\">)</span> <span class=\"c1\">-- absolute path</span>\n<span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">id</span><span class=\"p\">)</span> <span class=\"c1\">--> hash: [/my_sub_collection/my_instance]</span>\n\n<span class=\"kd\">local</span> <span class=\"n\">id</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"my_instance"</span><span class=\"p\">)</span> <span class=\"c1\">-- relative path</span>\n<span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">id</span><span class=\"p\">)</span> <span class=\"c1\">--> hash: [/my_sub_collection/my_instance]</span>\n</code></pre></div>",
|
|
630
|
+
"replaces": "",
|
|
631
|
+
"error": "",
|
|
632
|
+
"tparams": [],
|
|
633
|
+
"members": [],
|
|
634
|
+
"notes": [],
|
|
635
|
+
"language": ""
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"type": "FUNCTION",
|
|
639
|
+
"name": "go.animate",
|
|
640
|
+
"brief": "animates a named property of the specified game object or component",
|
|
641
|
+
"description": "This is only supported for numerical properties. If the node property is already being\nanimated, that animation will be canceled and replaced by the new one.\nIf a <code>complete_function</code> (lua function) is specified, that function will be called when the animation has completed.\nBy starting a new animation in that function, several animations can be sequenced together. See the examples for more information.\n<span class=\"icon-attention\"></span> If you call <code>go.animate()</code> from a game object's <code>final()</code> function,\nany passed <code>complete_function</code> will be ignored and never called upon animation completion.\nSee the <a href=\"/manuals/properties\">properties guide</a> for which properties can be animated and the <a href=\"/manuals/animation\">animation guide</a> for how\nthem.",
|
|
642
|
+
"returnvalues": [],
|
|
643
|
+
"parameters": [
|
|
644
|
+
{
|
|
645
|
+
"name": "url",
|
|
646
|
+
"doc": "url of the game object or component having the property",
|
|
647
|
+
"types": ["string", "hash", "url"],
|
|
648
|
+
"is_optional": "False"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "property",
|
|
652
|
+
"doc": "id of the property to animate",
|
|
653
|
+
"types": ["string", "hash"],
|
|
654
|
+
"is_optional": "False"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "playback",
|
|
658
|
+
"doc": "playback mode of the animation\n<ul>\n<li><code>go.PLAYBACK_ONCE_FORWARD</code></li>\n<li><code>go.PLAYBACK_ONCE_BACKWARD</code></li>\n<li><code>go.PLAYBACK_ONCE_PINGPONG</code></li>\n<li><code>go.PLAYBACK_LOOP_FORWARD</code></li>\n<li><code>go.PLAYBACK_LOOP_BACKWARD</code></li>\n<li><code>go.PLAYBACK_LOOP_PINGPONG</code></li>\n</ul>",
|
|
659
|
+
"types": [
|
|
660
|
+
"go.PLAYBACK_ONCE_FORWARD",
|
|
661
|
+
"go.PLAYBACK_ONCE_BACKWARD",
|
|
662
|
+
"go.PLAYBACK_ONCE_PINGPONG",
|
|
663
|
+
"go.PLAYBACK_LOOP_FORWARD",
|
|
664
|
+
"go.PLAYBACK_LOOP_BACKWARD",
|
|
665
|
+
"go.PLAYBACK_LOOP_PINGPONG"
|
|
666
|
+
],
|
|
667
|
+
"is_optional": "False"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "to",
|
|
671
|
+
"doc": "target property value",
|
|
672
|
+
"types": ["number", "vector3", "vector4", "quaternion"],
|
|
673
|
+
"is_optional": "False"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"name": "easing",
|
|
677
|
+
"doc": "easing to use during animation. Either specify a constant, see the <a href=\"/manuals/animation#_easing\">animation guide</a> for a complete list, or a vmath.vector with a curve",
|
|
678
|
+
"types": [
|
|
679
|
+
"vector",
|
|
680
|
+
"go.EASING_INBACK",
|
|
681
|
+
"go.EASING_INBOUNCE",
|
|
682
|
+
"go.EASING_INCIRC",
|
|
683
|
+
"go.EASING_INCUBIC",
|
|
684
|
+
"go.EASING_INELASTIC",
|
|
685
|
+
"go.EASING_INEXPO",
|
|
686
|
+
"go.EASING_INOUTBACK",
|
|
687
|
+
"go.EASING_INOUTBOUNCE",
|
|
688
|
+
"go.EASING_INOUTCIRC",
|
|
689
|
+
"go.EASING_INOUTCUBIC",
|
|
690
|
+
"go.EASING_INOUTELASTIC",
|
|
691
|
+
"go.EASING_INOUTEXPO",
|
|
692
|
+
"go.EASING_INOUTQUAD",
|
|
693
|
+
"go.EASING_INOUTQUART",
|
|
694
|
+
"go.EASING_INOUTQUINT",
|
|
695
|
+
"go.EASING_INOUTSINE",
|
|
696
|
+
"go.EASING_INQUAD",
|
|
697
|
+
"go.EASING_INQUART",
|
|
698
|
+
"go.EASING_INQUINT",
|
|
699
|
+
"go.EASING_INSINE",
|
|
700
|
+
"go.EASING_LINEAR",
|
|
701
|
+
"go.EASING_OUTBACK",
|
|
702
|
+
"go.EASING_OUTBOUNCE",
|
|
703
|
+
"go.EASING_OUTCIRC",
|
|
704
|
+
"go.EASING_OUTCUBIC",
|
|
705
|
+
"go.EASING_OUTELASTIC",
|
|
706
|
+
"go.EASING_OUTEXPO",
|
|
707
|
+
"go.EASING_OUTINBACK",
|
|
708
|
+
"go.EASING_OUTINBOUNCE",
|
|
709
|
+
"go.EASING_OUTINCIRC",
|
|
710
|
+
"go.EASING_OUTINCUBIC",
|
|
711
|
+
"go.EASING_OUTINELASTIC",
|
|
712
|
+
"go.EASING_OUTINEXPO",
|
|
713
|
+
"go.EASING_OUTINQUAD",
|
|
714
|
+
"go.EASING_OUTINQUART",
|
|
715
|
+
"go.EASING_OUTINQUINT",
|
|
716
|
+
"go.EASING_OUTINSINE",
|
|
717
|
+
"go.EASING_OUTQUAD",
|
|
718
|
+
"go.EASING_OUTQUART",
|
|
719
|
+
"go.EASING_OUTQUINT",
|
|
720
|
+
"go.EASING_OUTSINE"
|
|
721
|
+
],
|
|
722
|
+
"is_optional": "False"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"name": "duration",
|
|
726
|
+
"doc": "duration of the animation in seconds",
|
|
727
|
+
"types": ["number"],
|
|
728
|
+
"is_optional": "False"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "delay",
|
|
732
|
+
"doc": "delay before the animation starts in seconds",
|
|
733
|
+
"types": ["number"],
|
|
734
|
+
"is_optional": "True"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "complete_function",
|
|
738
|
+
"doc": "optional function to call when the animation has completed\n<dl>\n<dt><code>self</code></dt>\n<dd>\n<span class=\"type\">object</span> The current object.\n</dd>\n<dt><code>url</code></dt>\n<dd>\n<span class=\"type\">url</span> The game object or component instance for which the property is animated.\n</dd>\n<dt><code>property</code></dt>\n<dd>\n<span class=\"type\">hash</span> The id of the animated property.\n</dd>\n</dl>",
|
|
739
|
+
"types": ["function(self, url, property)"],
|
|
740
|
+
"is_optional": "True"
|
|
741
|
+
}
|
|
742
|
+
],
|
|
743
|
+
"examples": "Animate the position of a game object to x = 10 during 1 second, then y = 20 during 1 second:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"kr\">function</span> <span class=\"nf\">x_done</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">url</span><span class=\"p\">,</span> <span class=\"n\">property</span><span class=\"p\">)</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">animate</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(),</span> <span class=\"s2\">"position.y"</span><span class=\"p\">,</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">PLAYBACK_ONCE_FORWARD</span><span class=\"p\">,</span> <span class=\"mi\">20</span><span class=\"p\">,</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">EASING_LINEAR</span><span class=\"p\">,</span> <span class=\"mi\">1</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\">go</span><span class=\"p\">.</span><span class=\"n\">animate</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(),</span> <span class=\"s2\">"position.x"</span><span class=\"p\">,</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">PLAYBACK_ONCE_FORWARD</span><span class=\"p\">,</span> <span class=\"mi\">10</span><span class=\"p\">,</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">EASING_LINEAR</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"n\">x_done</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>\n\nAnimate the y position of a game object using a crazy custom easing curve:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">values</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span>\n <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span>\n <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span>\n <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span>\n <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span>\n <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span>\n <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span>\n <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">1</span> <span class=\"p\">}</span>\n<span class=\"kd\">local</span> <span class=\"n\">vec</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector</span><span class=\"p\">(</span><span class=\"n\">values</span><span class=\"p\">)</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">animate</span><span class=\"p\">(</span><span class=\"s2\">"go"</span><span class=\"p\">,</span> <span class=\"s2\">"position.y"</span><span class=\"p\">,</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">PLAYBACK_LOOP_PINGPONG</span><span class=\"p\">,</span> <span class=\"mi\">100</span><span class=\"p\">,</span> <span class=\"n\">vec</span><span class=\"p\">,</span> <span class=\"mf\">2.0</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
744
|
+
"replaces": "",
|
|
745
|
+
"error": "",
|
|
746
|
+
"tparams": [],
|
|
747
|
+
"members": [],
|
|
748
|
+
"notes": [],
|
|
749
|
+
"language": ""
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"type": "FUNCTION",
|
|
753
|
+
"name": "go.cancel_animations",
|
|
754
|
+
"brief": "cancels all or specified property animations of the game object or component",
|
|
755
|
+
"description": "By calling this function, all or specified stored property animations of the game object or component will be canceled.\nSee the <a href=\"/manuals/properties\">properties guide</a> for which properties can be animated and the <a href=\"/manuals/animation\">animation guide</a> for how to animate them.",
|
|
756
|
+
"returnvalues": [],
|
|
757
|
+
"parameters": [
|
|
758
|
+
{
|
|
759
|
+
"name": "url",
|
|
760
|
+
"doc": "url of the game object or component",
|
|
761
|
+
"types": ["string", "hash", "url"],
|
|
762
|
+
"is_optional": "False"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"name": "property",
|
|
766
|
+
"doc": "optional id of the property to cancel",
|
|
767
|
+
"types": ["string", "hash"],
|
|
768
|
+
"is_optional": "True"
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
"examples": "Cancel the animation of the position of a game object:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">cancel_animations</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(),</span> <span class=\"s2\">"position"</span><span class=\"p\">)</span>\n</code></pre></div>\n\nCancel all property animations of the current game object:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">cancel_animations</span><span class=\"p\">(</span><span class=\"s2\">"."</span><span class=\"p\">)</span>\n</code></pre></div>\n\nCancel all property animations of the sprite component of the current game object:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">cancel_animations</span><span class=\"p\">(</span><span class=\"s2\">"#sprite"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
772
|
+
"replaces": "",
|
|
773
|
+
"error": "",
|
|
774
|
+
"tparams": [],
|
|
775
|
+
"members": [],
|
|
776
|
+
"notes": [],
|
|
777
|
+
"language": ""
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"type": "FUNCTION",
|
|
781
|
+
"name": "go.delete",
|
|
782
|
+
"brief": "delete one or more game object instances",
|
|
783
|
+
"description": "Delete one or more game objects identified by id. Deletion is asynchronous meaning that\nthe game object(s) are scheduled for deletion which will happen at the end of the current\nframe. Note that game objects scheduled for deletion will be counted against\n<code>max_instances</code> in \"game.project\" until they are actually removed.\n<span class=\"icon-attention\"></span> Deleting a game object containing a particle FX component emitting particles will not immediately stop the particle FX from emitting particles. You need to manually stop the particle FX using <code>particlefx.stop()</code>.\n<span class=\"icon-attention\"></span> Deleting a game object containing a sound component that is playing will not immediately stop the sound from playing. You need to manually stop the sound using <code>sound.stop()</code>.",
|
|
784
|
+
"returnvalues": [],
|
|
785
|
+
"parameters": [
|
|
786
|
+
{
|
|
787
|
+
"name": "id",
|
|
788
|
+
"doc": "optional id or table of id's of the instance(s) to delete, the instance of the calling script is deleted by default",
|
|
789
|
+
"types": ["string", "hash", "url", "table"],
|
|
790
|
+
"is_optional": "True"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"name": "recursive",
|
|
794
|
+
"doc": "optional boolean, set to true to recursively delete child hiearchy in child to parent order",
|
|
795
|
+
"types": ["boolean"],
|
|
796
|
+
"is_optional": "True"
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
"examples": "This example demonstrates how to delete game objects\n<div class=\"codehilite\"><pre><span></span><code><span class=\"c1\">-- Delete the script game object</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">delete</span><span class=\"p\">()</span>\n<span class=\"c1\">-- Delete a game object with the id "my_game_object".</span>\n<span class=\"kd\">local</span> <span class=\"n\">id</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"my_game_object"</span><span class=\"p\">)</span> <span class=\"c1\">-- retrieve the id of the game object to be deleted</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">delete</span><span class=\"p\">(</span><span class=\"n\">id</span><span class=\"p\">)</span>\n<span class=\"c1\">-- Delete a list of game objects.</span>\n<span class=\"kd\">local</span> <span class=\"n\">ids</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"/my_object_1"</span><span class=\"p\">),</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"/my_object_2"</span><span class=\"p\">),</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"/my_object_3"</span><span class=\"p\">)</span> <span class=\"p\">}</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">delete</span><span class=\"p\">(</span><span class=\"n\">ids</span><span class=\"p\">)</span>\n</code></pre></div>\n\nThis example demonstrates how to delete a game objects and their children (child to parent order)\n<div class=\"codehilite\"><pre><span></span><code><span class=\"c1\">-- Delete the script game object and it's children</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">delete</span><span class=\"p\">(</span><span class=\"kc\">true</span><span class=\"p\">)</span>\n<span class=\"c1\">-- Delete a game object with the id "my_game_object" and it's children.</span>\n<span class=\"kd\">local</span> <span class=\"n\">id</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"my_game_object"</span><span class=\"p\">)</span> <span class=\"c1\">-- retrieve the id of the game object to be deleted</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">delete</span><span class=\"p\">(</span><span class=\"n\">id</span><span class=\"p\">,</span> <span class=\"kc\">true</span><span class=\"p\">)</span>\n<span class=\"c1\">-- Delete a list of game objects and their children.</span>\n<span class=\"kd\">local</span> <span class=\"n\">ids</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"/my_object_1"</span><span class=\"p\">),</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"/my_object_2"</span><span class=\"p\">),</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"/my_object_3"</span><span class=\"p\">)</span> <span class=\"p\">}</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">delete</span><span class=\"p\">(</span><span class=\"n\">ids</span><span class=\"p\">,</span> <span class=\"kc\">true</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
800
|
+
"replaces": "",
|
|
801
|
+
"error": "",
|
|
802
|
+
"tparams": [],
|
|
803
|
+
"members": [],
|
|
804
|
+
"notes": [],
|
|
805
|
+
"language": ""
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"type": "FUNCTION",
|
|
809
|
+
"name": "go.property",
|
|
810
|
+
"brief": "define a property for the script",
|
|
811
|
+
"description": "This function defines a property which can then be used in the script through the self-reference.\nThe properties defined this way are automatically exposed in the editor in game objects and collections which use the script.\nNote that you can only use this function outside any callback-functions like init and update.",
|
|
812
|
+
"returnvalues": [],
|
|
813
|
+
"parameters": [
|
|
814
|
+
{
|
|
815
|
+
"name": "name",
|
|
816
|
+
"doc": "the id of the property",
|
|
817
|
+
"types": ["string"],
|
|
818
|
+
"is_optional": "False"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "value",
|
|
822
|
+
"doc": "default value of the property. In the case of a url, only the empty constructor msg.url() is allowed. In the case of a resource one of the resource constructors (eg resource.atlas(), resource.font() etc) is expected.",
|
|
823
|
+
"types": [
|
|
824
|
+
"number",
|
|
825
|
+
"hash",
|
|
826
|
+
"url",
|
|
827
|
+
"vector3",
|
|
828
|
+
"vector4",
|
|
829
|
+
"quaternion",
|
|
830
|
+
"resource",
|
|
831
|
+
"boolean"
|
|
832
|
+
],
|
|
833
|
+
"is_optional": "False"
|
|
834
|
+
}
|
|
835
|
+
],
|
|
836
|
+
"examples": "This example demonstrates how to define a property called \"health\" in a script.\nThe health is decreased whenever someone sends a message called \"take_damage\" to the script.\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"health"</span><span class=\"p\">,</span> <span class=\"mi\">100</span><span class=\"p\">)</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- prints 100 to the output</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">health</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">on_message</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">message_id</span><span class=\"p\">,</span> <span class=\"n\">message</span><span class=\"p\">,</span> <span class=\"n\">sender</span><span class=\"p\">)</span>\n <span class=\"kr\">if</span> <span class=\"n\">message_id</span> <span class=\"o\">==</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"take_damage"</span><span class=\"p\">)</span> <span class=\"kr\">then</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">health</span> <span class=\"o\">=</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">health</span> <span class=\"o\">-</span> <span class=\"n\">message</span><span class=\"p\">.</span><span class=\"n\">damage</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">"Ouch! My health is now: "</span> <span class=\"o\">..</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">health</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
837
|
+
"replaces": "",
|
|
838
|
+
"error": "",
|
|
839
|
+
"tparams": [],
|
|
840
|
+
"members": [],
|
|
841
|
+
"notes": [],
|
|
842
|
+
"language": ""
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"type": "FUNCTION",
|
|
846
|
+
"name": "go.exists",
|
|
847
|
+
"brief": "check if the specified game object exists",
|
|
848
|
+
"description": "This function can check for game objects in any collection by specifying\nthe collection name in the URL.",
|
|
849
|
+
"returnvalues": [
|
|
850
|
+
{
|
|
851
|
+
"name": "exists",
|
|
852
|
+
"doc": "true if the game object exists",
|
|
853
|
+
"types": ["boolean"]
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
"parameters": [
|
|
857
|
+
{
|
|
858
|
+
"name": "url",
|
|
859
|
+
"doc": "url of the game object to check",
|
|
860
|
+
"types": ["string", "hash", "url"],
|
|
861
|
+
"is_optional": "False"
|
|
862
|
+
}
|
|
863
|
+
],
|
|
864
|
+
"examples": "Check if game object \"my_game_object\" exists in the current collection\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">exists</span><span class=\"p\">(</span><span class=\"s2\">"/my_game_object"</span><span class=\"p\">)</span>\n</code></pre></div>\n\nCheck if game object exists in another collection\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">exists</span><span class=\"p\">(</span><span class=\"s2\">"other_collection:/my_game_object"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
865
|
+
"replaces": "",
|
|
866
|
+
"error": "",
|
|
867
|
+
"tparams": [],
|
|
868
|
+
"members": [],
|
|
869
|
+
"notes": [],
|
|
870
|
+
"language": ""
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"type": "FUNCTION",
|
|
874
|
+
"name": "go.world_to_local_position",
|
|
875
|
+
"brief": "convert position to game object's coordinate space",
|
|
876
|
+
"description": "<span class=\"icon-attention\"></span> The function uses world transformation calculated at the end of previous frame.",
|
|
877
|
+
"returnvalues": [
|
|
878
|
+
{
|
|
879
|
+
"name": "converted_postion",
|
|
880
|
+
"doc": "converted position",
|
|
881
|
+
"types": ["vector3"]
|
|
882
|
+
}
|
|
883
|
+
],
|
|
884
|
+
"parameters": [
|
|
885
|
+
{
|
|
886
|
+
"name": "position",
|
|
887
|
+
"doc": "position which need to be converted",
|
|
888
|
+
"types": ["vector3"],
|
|
889
|
+
"is_optional": "False"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "url",
|
|
893
|
+
"doc": "url of the game object which coordinate system convert to",
|
|
894
|
+
"types": ["string", "hash", "url"],
|
|
895
|
+
"is_optional": "False"
|
|
896
|
+
}
|
|
897
|
+
],
|
|
898
|
+
"examples": "Convert position of \"test\" game object into coordinate space of \"child\" object.\n<div class=\"codehilite\"><pre><span></span><code> <span class=\"kd\">local</span> <span class=\"n\">test_pos</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_position</span><span class=\"p\">(</span><span class=\"s2\">"/test"</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">child_pos</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_position</span><span class=\"p\">(</span><span class=\"s2\">"/child"</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">new_position</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">world_to_local_position</span><span class=\"p\">(</span><span class=\"n\">test_pos</span><span class=\"p\">,</span> <span class=\"s2\">"/child"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
899
|
+
"replaces": "",
|
|
900
|
+
"error": "",
|
|
901
|
+
"tparams": [],
|
|
902
|
+
"members": [],
|
|
903
|
+
"notes": [],
|
|
904
|
+
"language": ""
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"type": "FUNCTION",
|
|
908
|
+
"name": "go.world_to_local_transform",
|
|
909
|
+
"brief": "convert transformation matrix to game object's coordinate space",
|
|
910
|
+
"description": "<span class=\"icon-attention\"></span> The function uses world transformation calculated at the end of previous frame.",
|
|
911
|
+
"returnvalues": [
|
|
912
|
+
{
|
|
913
|
+
"name": "converted_transform",
|
|
914
|
+
"doc": "converted transformation",
|
|
915
|
+
"types": ["matrix4"]
|
|
916
|
+
}
|
|
917
|
+
],
|
|
918
|
+
"parameters": [
|
|
919
|
+
{
|
|
920
|
+
"name": "transformation",
|
|
921
|
+
"doc": "transformation which need to be converted",
|
|
922
|
+
"types": ["matrix4"],
|
|
923
|
+
"is_optional": "False"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "url",
|
|
927
|
+
"doc": "url of the game object which coordinate system convert to",
|
|
928
|
+
"types": ["string", "hash", "url"],
|
|
929
|
+
"is_optional": "False"
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
"examples": "Convert transformation of \"test\" game object into coordinate space of \"child\" object.\n<div class=\"codehilite\"><pre><span></span><code> <span class=\"kd\">local</span> <span class=\"n\">test_transform</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_transform</span><span class=\"p\">(</span><span class=\"s2\">"/test"</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">child_transform</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_transform</span><span class=\"p\">(</span><span class=\"s2\">"/child"</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">result_transform</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">world_to_local_transform</span><span class=\"p\">(</span><span class=\"n\">test_transform</span><span class=\"p\">,</span> <span class=\"s2\">"/child"</span><span class=\"p\">)</span>\n</code></pre></div>",
|
|
933
|
+
"replaces": "",
|
|
934
|
+
"error": "",
|
|
935
|
+
"tparams": [],
|
|
936
|
+
"members": [],
|
|
937
|
+
"notes": [],
|
|
938
|
+
"language": ""
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"type": "FUNCTION",
|
|
942
|
+
"name": "init",
|
|
943
|
+
"brief": "called when a script component is initialized",
|
|
944
|
+
"description": "This is a callback-function, which is called by the engine when a script component is initialized. It can be used\nto set the initial state of the script.",
|
|
945
|
+
"returnvalues": [],
|
|
946
|
+
"parameters": [
|
|
947
|
+
{
|
|
948
|
+
"name": "self",
|
|
949
|
+
"doc": "reference to the script state to be used for storing data",
|
|
950
|
+
"types": ["userdata"],
|
|
951
|
+
"is_optional": "False"
|
|
952
|
+
}
|
|
953
|
+
],
|
|
954
|
+
"examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- set up useful data</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_value</span> <span class=\"o\">=</span> <span class=\"mi\">1</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
955
|
+
"replaces": "",
|
|
956
|
+
"error": "",
|
|
957
|
+
"tparams": [],
|
|
958
|
+
"members": [],
|
|
959
|
+
"notes": [],
|
|
960
|
+
"language": ""
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"type": "FUNCTION",
|
|
964
|
+
"name": "final",
|
|
965
|
+
"brief": "called when a script component is finalized",
|
|
966
|
+
"description": "This is a callback-function, which is called by the engine when a script component is finalized (destroyed). It can\nbe used to e.g. take some last action, report the finalization to other game object instances, delete spawned objects\nor release user input focus (see <a href=\"#release_input_focus\">release_input_focus</a>).",
|
|
967
|
+
"returnvalues": [],
|
|
968
|
+
"parameters": [
|
|
969
|
+
{
|
|
970
|
+
"name": "self",
|
|
971
|
+
"doc": "reference to the script state to be used for storing data",
|
|
972
|
+
"types": ["userdata"],
|
|
973
|
+
"is_optional": "False"
|
|
974
|
+
}
|
|
975
|
+
],
|
|
976
|
+
"examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">final</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- report finalization</span>\n <span class=\"n\">msg</span><span class=\"p\">.</span><span class=\"n\">post</span><span class=\"p\">(</span><span class=\"s2\">"my_friend_instance"</span><span class=\"p\">,</span> <span class=\"s2\">"im_dead"</span><span class=\"p\">,</span> <span class=\"p\">{</span><span class=\"n\">my_stats</span> <span class=\"o\">=</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">some_value</span><span class=\"p\">})</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
977
|
+
"replaces": "",
|
|
978
|
+
"error": "",
|
|
979
|
+
"tparams": [],
|
|
980
|
+
"members": [],
|
|
981
|
+
"notes": [],
|
|
982
|
+
"language": ""
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"type": "FUNCTION",
|
|
986
|
+
"name": "update",
|
|
987
|
+
"brief": "called every frame to update the script component",
|
|
988
|
+
"description": "This is a callback-function, which is called by the engine every frame to update the state of a script component.\nIt can be used to perform any kind of game related tasks, e.g. moving the game object instance.",
|
|
989
|
+
"returnvalues": [],
|
|
990
|
+
"parameters": [
|
|
991
|
+
{
|
|
992
|
+
"name": "self",
|
|
993
|
+
"doc": "reference to the script state to be used for storing data",
|
|
994
|
+
"types": ["userdata"],
|
|
995
|
+
"is_optional": "False"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"name": "dt",
|
|
999
|
+
"doc": "the time-step of the frame update",
|
|
1000
|
+
"types": ["number"],
|
|
1001
|
+
"is_optional": "False"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"examples": "This example demonstrates how to move a game object instance through the script component:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- set initial velocity to be 1 along world x-axis</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_velocity</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">update</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">dt</span><span class=\"p\">)</span>\n <span class=\"c1\">-- move the game object instance</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_position</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_position</span><span class=\"p\">()</span> <span class=\"o\">+</span> <span class=\"n\">dt</span> <span class=\"o\">*</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_velocity</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
1005
|
+
"replaces": "",
|
|
1006
|
+
"error": "",
|
|
1007
|
+
"tparams": [],
|
|
1008
|
+
"members": [],
|
|
1009
|
+
"notes": [],
|
|
1010
|
+
"language": ""
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"type": "FUNCTION",
|
|
1014
|
+
"name": "fixed_update",
|
|
1015
|
+
"brief": "called at fixed intervals to update the script component",
|
|
1016
|
+
"description": "This is a callback-function, which is called by the engine at fixed intervals to update the state of a script\ncomponent. The function will be called if 'Fixed Update Frequency' is enabled in the Engine section of game.project.\nIt can for instance be used to update game logic with the physics simulation if using a fixed timestep for the\nphysics (enabled by ticking 'Use Fixed Timestep' in the Physics section of game.project).",
|
|
1017
|
+
"returnvalues": [],
|
|
1018
|
+
"parameters": [
|
|
1019
|
+
{
|
|
1020
|
+
"name": "self",
|
|
1021
|
+
"doc": "reference to the script state to be used for storing data",
|
|
1022
|
+
"types": ["userdata"],
|
|
1023
|
+
"is_optional": "False"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"name": "dt",
|
|
1027
|
+
"doc": "the time-step of the frame update",
|
|
1028
|
+
"types": ["number"],
|
|
1029
|
+
"is_optional": "False"
|
|
1030
|
+
}
|
|
1031
|
+
],
|
|
1032
|
+
"examples": "",
|
|
1033
|
+
"replaces": "",
|
|
1034
|
+
"error": "",
|
|
1035
|
+
"tparams": [],
|
|
1036
|
+
"members": [],
|
|
1037
|
+
"notes": [],
|
|
1038
|
+
"language": ""
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"type": "FUNCTION",
|
|
1042
|
+
"name": "late_update",
|
|
1043
|
+
"brief": "called at the end of the frame for a final update of the script component",
|
|
1044
|
+
"description": "This is a callback-function, which is called by the engine at the end of the frame to update the state of a script\ncomponent. Use it to make final adjustments to the game object instance.",
|
|
1045
|
+
"returnvalues": [],
|
|
1046
|
+
"parameters": [
|
|
1047
|
+
{
|
|
1048
|
+
"name": "self",
|
|
1049
|
+
"doc": "reference to the script state to be used for storing data",
|
|
1050
|
+
"types": ["userdata"],
|
|
1051
|
+
"is_optional": "False"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"name": "dt",
|
|
1055
|
+
"doc": "the time-step of the frame update",
|
|
1056
|
+
"types": ["number"],
|
|
1057
|
+
"is_optional": "False"
|
|
1058
|
+
}
|
|
1059
|
+
],
|
|
1060
|
+
"examples": "",
|
|
1061
|
+
"replaces": "",
|
|
1062
|
+
"error": "",
|
|
1063
|
+
"tparams": [],
|
|
1064
|
+
"members": [],
|
|
1065
|
+
"notes": [],
|
|
1066
|
+
"language": ""
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"type": "FUNCTION",
|
|
1070
|
+
"name": "on_message",
|
|
1071
|
+
"brief": "called when a message has been sent to the script component",
|
|
1072
|
+
"description": "This is a callback-function, which is called by the engine whenever a message has been sent to the script component.\nIt can be used to take action on the message, e.g. send a response back to the sender of the message.\nThe <code>message</code> parameter is a table containing the message data. If the message is sent from the engine, the\ndocumentation of the message specifies which data is supplied.",
|
|
1073
|
+
"returnvalues": [],
|
|
1074
|
+
"parameters": [
|
|
1075
|
+
{
|
|
1076
|
+
"name": "self",
|
|
1077
|
+
"doc": "reference to the script state to be used for storing data",
|
|
1078
|
+
"types": ["userdata"],
|
|
1079
|
+
"is_optional": "False"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"name": "message_id",
|
|
1083
|
+
"doc": "id of the received message",
|
|
1084
|
+
"types": ["hash"],
|
|
1085
|
+
"is_optional": "False"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "message",
|
|
1089
|
+
"doc": "a table containing the message data",
|
|
1090
|
+
"types": ["table"],
|
|
1091
|
+
"is_optional": "False"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "sender",
|
|
1095
|
+
"doc": "address of the sender",
|
|
1096
|
+
"types": ["url"],
|
|
1097
|
+
"is_optional": "False"
|
|
1098
|
+
}
|
|
1099
|
+
],
|
|
1100
|
+
"examples": "This example demonstrates how a game object instance, called \"a\", can communicate with another instance, called \"b\". It\nis assumed that both script components of the instances has id \"script\".\nScript of instance \"a\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- let b know about some important data</span>\n <span class=\"n\">msg</span><span class=\"p\">.</span><span class=\"n\">post</span><span class=\"p\">(</span><span class=\"s2\">"b#script"</span><span class=\"p\">,</span> <span class=\"s2\">"my_data"</span><span class=\"p\">,</span> <span class=\"p\">{</span><span class=\"n\">important_value</span> <span class=\"o\">=</span> <span class=\"mi\">1</span><span class=\"p\">})</span>\n<span class=\"kr\">end</span>\n</code></pre></div>\n\nScript of instance \"b\":\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- store the url of instance "a" for later use, by specifying nil as socket we</span>\n <span class=\"c1\">-- automatically use our own socket</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">a_url</span> <span class=\"o\">=</span> <span class=\"n\">msg</span><span class=\"p\">.</span><span class=\"n\">url</span><span class=\"p\">(</span><span class=\"kc\">nil</span><span class=\"p\">,</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_id</span><span class=\"p\">(</span><span class=\"s2\">"a"</span><span class=\"p\">),</span> <span class=\"s2\">"script"</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">on_message</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">message_id</span><span class=\"p\">,</span> <span class=\"n\">message</span><span class=\"p\">,</span> <span class=\"n\">sender</span><span class=\"p\">)</span>\n <span class=\"c1\">-- check message and sender</span>\n <span class=\"kr\">if</span> <span class=\"n\">message_id</span> <span class=\"o\">==</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"my_data"</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">sender</span> <span class=\"o\">==</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">a_url</span> <span class=\"kr\">then</span>\n <span class=\"c1\">-- use the data in some way</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">important_value</span> <span class=\"o\">=</span> <span class=\"n\">message</span><span class=\"p\">.</span><span class=\"n\">important_value</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
1101
|
+
"replaces": "",
|
|
1102
|
+
"error": "",
|
|
1103
|
+
"tparams": [],
|
|
1104
|
+
"members": [],
|
|
1105
|
+
"notes": [],
|
|
1106
|
+
"language": ""
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"type": "FUNCTION",
|
|
1110
|
+
"name": "on_input",
|
|
1111
|
+
"brief": "called when user input is received",
|
|
1112
|
+
"description": "This is a callback-function, which is called by the engine when user input is sent to the game object instance of the script.\nIt can be used to take action on the input, e.g. move the instance according to the input.\nFor an instance to obtain user input, it must first acquire input focus\nthrough the message <code>acquire_input_focus</code>.\nAny instance that has obtained input will be put on top of an\ninput stack. Input is sent to all listeners on the stack until the\nend of stack is reached, or a listener returns <code>true</code>\nto signal that it wants input to be consumed.\nSee the documentation of <a href=\"#acquire_input_focus\">acquire_input_focus</a> for more\ninformation.\nThe <code>action</code> parameter is a table containing data about the input mapped to the\n<code>action_id</code>.\nFor mapped actions it specifies the value of the input and if it was just pressed or released.\nActions are mapped to input in an input_binding-file.\nMouse movement is specifically handled and uses <code>nil</code> as its <code>action_id</code>.\nThe <code>action</code> only contains positional parameters in this case, such as x and y of the pointer.\nHere is a brief description of the available table fields:\n<table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>value</code></td>\n<td>The amount of input given by the user. This is usually 1 for buttons and 0-1 for analogue inputs. This is not present for mouse movement and text input.</td>\n</tr>\n<tr>\n<td><code>pressed</code></td>\n<td>If the input was pressed this frame. This is not present for mouse movement and text input.</td>\n</tr>\n<tr>\n<td><code>released</code></td>\n<td>If the input was released this frame. This is not present for mouse movement and text input.</td>\n</tr>\n<tr>\n<td><code>repeated</code></td>\n<td>If the input was repeated this frame. This is similar to how a key on a keyboard is repeated when you hold it down. This is not present for mouse movement and text input.</td>\n</tr>\n<tr>\n<td><code>x</code></td>\n<td>The x value of a pointer device, if present. This is not present for gamepad, key and text input.</td>\n</tr>\n<tr>\n<td><code>y</code></td>\n<td>The y value of a pointer device, if present. This is not present for gamepad, key and text input.</td>\n</tr>\n<tr>\n<td><code>screen_x</code></td>\n<td>The screen space x value of a pointer device, if present. This is not present for gamepad, key and text input.</td>\n</tr>\n<tr>\n<td><code>screen_y</code></td>\n<td>The screen space y value of a pointer device, if present. This is not present for gamepad, key and text input.</td>\n</tr>\n<tr>\n<td><code>dx</code></td>\n<td>The change in x value of a pointer device, if present. This is not present for gamepad, key and text input.</td>\n</tr>\n<tr>\n<td><code>dy</code></td>\n<td>The change in y value of a pointer device, if present. This is not present for gamepad, key and text input.</td>\n</tr>\n<tr>\n<td><code>screen_dx</code></td>\n<td>The change in screen space x value of a pointer device, if present. This is not present for gamepad, key and text input.</td>\n</tr>\n<tr>\n<td><code>screen_dy</code></td>\n<td>The change in screen space y value of a pointer device, if present. This is not present for gamepad, key and text input.</td>\n</tr>\n<tr>\n<td><code>gamepad</code></td>\n<td>The index of the gamepad device that provided the input. See table below about gamepad input.</td>\n</tr>\n<tr>\n<td><code>touch</code></td>\n<td>List of touch input, one element per finger, if present. See table below about touch input</td>\n</tr>\n<tr>\n<td><code>text</code></td>\n<td>Text input from a (virtual) keyboard or similar.</td>\n</tr>\n<tr>\n<td><code>marked_text</code></td>\n<td>Sequence of entered symbols while entering a symbol combination, for example Japanese Kana.</td>\n</tr>\n</tbody>\n</table>\nGamepad specific fields:\n<table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>gamepad</code></td>\n<td>The index of the gamepad device that provided the input.</td>\n</tr>\n<tr>\n<td><code>userid</code></td>\n<td>Id of the user associated with the controller. Usually only relevant on consoles.</td>\n</tr>\n<tr>\n<td><code>gamepad_unknown</code></td>\n<td>True if the inout originated from an unknown/unmapped gamepad.</td>\n</tr>\n<tr>\n<td><code>gamepad_name</code></td>\n<td>Name of the gamepad</td>\n</tr>\n<tr>\n<td><code>gamepad_axis</code></td>\n<td>List of gamepad axis values. For raw gamepad input only.</td>\n</tr>\n<tr>\n<td><code>gamepadhats</code></td>\n<td>List of gamepad hat values. For raw gamepad input only.</td>\n</tr>\n<tr>\n<td><code>gamepad_buttons</code></td>\n<td>List of gamepad button values. For raw gamepad input only.</td>\n</tr>\n</tbody>\n</table>\nTouch input table:\n<table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>A number identifying the touch input during its duration.</td>\n</tr>\n<tr>\n<td><code>pressed</code></td>\n<td>True if the finger was pressed this frame.</td>\n</tr>\n<tr>\n<td><code>released</code></td>\n<td>True if the finger was released this frame.</td>\n</tr>\n<tr>\n<td><code>tap_count</code></td>\n<td>Number of taps, one for single, two for double-tap, etc</td>\n</tr>\n<tr>\n<td><code>x</code></td>\n<td>The x touch location.</td>\n</tr>\n<tr>\n<td><code>y</code></td>\n<td>The y touch location.</td>\n</tr>\n<tr>\n<td><code>dx</code></td>\n<td>The change in x value.</td>\n</tr>\n<tr>\n<td><code>dy</code></td>\n<td>The change in y value.</td>\n</tr>\n<tr>\n<td><code>acc_x</code></td>\n<td>Accelerometer x value (if present).</td>\n</tr>\n<tr>\n<td><code>acc_y</code></td>\n<td>Accelerometer y value (if present).</td>\n</tr>\n<tr>\n<td><code>acc_z</code></td>\n<td>Accelerometer z value (if present).</td>\n</tr>\n</tbody>\n</table>",
|
|
1113
|
+
"returnvalues": [
|
|
1114
|
+
{
|
|
1115
|
+
"name": "consume",
|
|
1116
|
+
"doc": "optional boolean to signal if the input should be consumed (not passed on to others) or not, default is false",
|
|
1117
|
+
"types": ["boolean", "nil"]
|
|
1118
|
+
}
|
|
1119
|
+
],
|
|
1120
|
+
"parameters": [
|
|
1121
|
+
{
|
|
1122
|
+
"name": "self",
|
|
1123
|
+
"doc": "reference to the script state to be used for storing data",
|
|
1124
|
+
"types": ["userdata"],
|
|
1125
|
+
"is_optional": "False"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"name": "action_id",
|
|
1129
|
+
"doc": "id of the received input action, as mapped in the input_binding-file",
|
|
1130
|
+
"types": ["hash"],
|
|
1131
|
+
"is_optional": "False"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"name": "action",
|
|
1135
|
+
"doc": "a table containing the input data, see above for a description",
|
|
1136
|
+
"types": ["table"],
|
|
1137
|
+
"is_optional": "False"
|
|
1138
|
+
}
|
|
1139
|
+
],
|
|
1140
|
+
"examples": "This example demonstrates how a game object instance can be moved as a response to user input.\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- acquire input focus</span>\n <span class=\"n\">msg</span><span class=\"p\">.</span><span class=\"n\">post</span><span class=\"p\">(</span><span class=\"s2\">"."</span><span class=\"p\">,</span> <span class=\"s2\">"acquire_input_focus"</span><span class=\"p\">)</span>\n <span class=\"c1\">-- maximum speed the instance can be moved</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">max_speed</span> <span class=\"o\">=</span> <span class=\"mi\">2</span>\n <span class=\"c1\">-- velocity of the instance, initially zero</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">velocity</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">()</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">update</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">dt</span><span class=\"p\">)</span>\n <span class=\"c1\">-- move the instance</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_position</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_position</span><span class=\"p\">()</span> <span class=\"o\">+</span> <span class=\"n\">dt</span> <span class=\"o\">*</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">velocity</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">on_input</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">action_id</span><span class=\"p\">,</span> <span class=\"n\">action</span><span class=\"p\">)</span>\n <span class=\"c1\">-- check for movement input</span>\n <span class=\"kr\">if</span> <span class=\"n\">action_id</span> <span class=\"o\">==</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"right"</span><span class=\"p\">)</span> <span class=\"kr\">then</span>\n <span class=\"kr\">if</span> <span class=\"n\">action</span><span class=\"p\">.</span><span class=\"n\">released</span> <span class=\"kr\">then</span> <span class=\"c1\">-- reset velocity if input was released</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">velocity</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">()</span>\n <span class=\"kr\">else</span> <span class=\"c1\">-- update velocity</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">velocity</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"n\">action</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">*</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">max_speed</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
1141
|
+
"replaces": "",
|
|
1142
|
+
"error": "",
|
|
1143
|
+
"tparams": [],
|
|
1144
|
+
"members": [],
|
|
1145
|
+
"notes": [],
|
|
1146
|
+
"language": ""
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
"type": "FUNCTION",
|
|
1150
|
+
"name": "on_reload",
|
|
1151
|
+
"brief": "called when the script component is reloaded",
|
|
1152
|
+
"description": "This is a callback-function, which is called by the engine when the script component is reloaded, e.g. from the editor.\nIt can be used for live development, e.g. to tweak constants or set up the state properly for the instance.",
|
|
1153
|
+
"returnvalues": [],
|
|
1154
|
+
"parameters": [
|
|
1155
|
+
{
|
|
1156
|
+
"name": "self",
|
|
1157
|
+
"doc": "reference to the script state to be used for storing data",
|
|
1158
|
+
"types": ["userdata"],
|
|
1159
|
+
"is_optional": "False"
|
|
1160
|
+
}
|
|
1161
|
+
],
|
|
1162
|
+
"examples": "This example demonstrates how to tweak the speed of a game object instance that is moved on user input.\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- acquire input focus</span>\n <span class=\"n\">msg</span><span class=\"p\">.</span><span class=\"n\">post</span><span class=\"p\">(</span><span class=\"s2\">"."</span><span class=\"p\">,</span> <span class=\"s2\">"acquire_input_focus"</span><span class=\"p\">)</span>\n <span class=\"c1\">-- maximum speed the instance can be moved, this value is tweaked in the on_reload function below</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">max_speed</span> <span class=\"o\">=</span> <span class=\"mi\">2</span>\n <span class=\"c1\">-- velocity of the instance, initially zero</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">velocity</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">()</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">update</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">dt</span><span class=\"p\">)</span>\n <span class=\"c1\">-- move the instance</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">set_position</span><span class=\"p\">(</span><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_position</span><span class=\"p\">()</span> <span class=\"o\">+</span> <span class=\"n\">dt</span> <span class=\"o\">*</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">velocity</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">on_input</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">action_id</span><span class=\"p\">,</span> <span class=\"n\">action</span><span class=\"p\">)</span>\n <span class=\"c1\">-- check for movement input</span>\n <span class=\"kr\">if</span> <span class=\"n\">action_id</span> <span class=\"o\">==</span> <span class=\"n\">hash</span><span class=\"p\">(</span><span class=\"s2\">"right"</span><span class=\"p\">)</span> <span class=\"kr\">then</span>\n <span class=\"kr\">if</span> <span class=\"n\">action</span><span class=\"p\">.</span><span class=\"n\">released</span> <span class=\"kr\">then</span> <span class=\"c1\">-- reset velocity if input was released</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">velocity</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">()</span>\n <span class=\"kr\">else</span> <span class=\"c1\">-- update velocity</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">velocity</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"n\">action</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">*</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">max_speed</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">on_reload</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- edit this value and reload the script component</span>\n <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">max_speed</span> <span class=\"o\">=</span> <span class=\"mi\">100</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
1163
|
+
"replaces": "",
|
|
1164
|
+
"error": "",
|
|
1165
|
+
"tparams": [],
|
|
1166
|
+
"members": [],
|
|
1167
|
+
"notes": [],
|
|
1168
|
+
"language": ""
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"type": "CONSTANT",
|
|
1172
|
+
"name": "go.PLAYBACK_NONE",
|
|
1173
|
+
"brief": "no playback",
|
|
1174
|
+
"description": "no playback",
|
|
1175
|
+
"returnvalues": [],
|
|
1176
|
+
"parameters": [],
|
|
1177
|
+
"examples": "",
|
|
1178
|
+
"replaces": "",
|
|
1179
|
+
"error": "",
|
|
1180
|
+
"tparams": [],
|
|
1181
|
+
"members": [],
|
|
1182
|
+
"notes": [],
|
|
1183
|
+
"language": ""
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"type": "CONSTANT",
|
|
1187
|
+
"name": "go.PLAYBACK_ONCE_FORWARD",
|
|
1188
|
+
"brief": "once forward",
|
|
1189
|
+
"description": "once forward",
|
|
1190
|
+
"returnvalues": [],
|
|
1191
|
+
"parameters": [],
|
|
1192
|
+
"examples": "",
|
|
1193
|
+
"replaces": "",
|
|
1194
|
+
"error": "",
|
|
1195
|
+
"tparams": [],
|
|
1196
|
+
"members": [],
|
|
1197
|
+
"notes": [],
|
|
1198
|
+
"language": ""
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"type": "CONSTANT",
|
|
1202
|
+
"name": "go.PLAYBACK_ONCE_BACKWARD",
|
|
1203
|
+
"brief": "once backward",
|
|
1204
|
+
"description": "once backward",
|
|
1205
|
+
"returnvalues": [],
|
|
1206
|
+
"parameters": [],
|
|
1207
|
+
"examples": "",
|
|
1208
|
+
"replaces": "",
|
|
1209
|
+
"error": "",
|
|
1210
|
+
"tparams": [],
|
|
1211
|
+
"members": [],
|
|
1212
|
+
"notes": [],
|
|
1213
|
+
"language": ""
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"type": "CONSTANT",
|
|
1217
|
+
"name": "go.PLAYBACK_ONCE_PINGPONG",
|
|
1218
|
+
"brief": "once ping pong",
|
|
1219
|
+
"description": "once ping pong",
|
|
1220
|
+
"returnvalues": [],
|
|
1221
|
+
"parameters": [],
|
|
1222
|
+
"examples": "",
|
|
1223
|
+
"replaces": "",
|
|
1224
|
+
"error": "",
|
|
1225
|
+
"tparams": [],
|
|
1226
|
+
"members": [],
|
|
1227
|
+
"notes": [],
|
|
1228
|
+
"language": ""
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"type": "CONSTANT",
|
|
1232
|
+
"name": "go.PLAYBACK_LOOP_FORWARD",
|
|
1233
|
+
"brief": "loop forward",
|
|
1234
|
+
"description": "loop forward",
|
|
1235
|
+
"returnvalues": [],
|
|
1236
|
+
"parameters": [],
|
|
1237
|
+
"examples": "",
|
|
1238
|
+
"replaces": "",
|
|
1239
|
+
"error": "",
|
|
1240
|
+
"tparams": [],
|
|
1241
|
+
"members": [],
|
|
1242
|
+
"notes": [],
|
|
1243
|
+
"language": ""
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"type": "CONSTANT",
|
|
1247
|
+
"name": "go.PLAYBACK_LOOP_BACKWARD",
|
|
1248
|
+
"brief": "loop backward",
|
|
1249
|
+
"description": "loop backward",
|
|
1250
|
+
"returnvalues": [],
|
|
1251
|
+
"parameters": [],
|
|
1252
|
+
"examples": "",
|
|
1253
|
+
"replaces": "",
|
|
1254
|
+
"error": "",
|
|
1255
|
+
"tparams": [],
|
|
1256
|
+
"members": [],
|
|
1257
|
+
"notes": [],
|
|
1258
|
+
"language": ""
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"type": "CONSTANT",
|
|
1262
|
+
"name": "go.PLAYBACK_LOOP_PINGPONG",
|
|
1263
|
+
"brief": "ping pong loop",
|
|
1264
|
+
"description": "ping pong loop",
|
|
1265
|
+
"returnvalues": [],
|
|
1266
|
+
"parameters": [],
|
|
1267
|
+
"examples": "",
|
|
1268
|
+
"replaces": "",
|
|
1269
|
+
"error": "",
|
|
1270
|
+
"tparams": [],
|
|
1271
|
+
"members": [],
|
|
1272
|
+
"notes": [],
|
|
1273
|
+
"language": ""
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"type": "CONSTANT",
|
|
1277
|
+
"name": "go.EASING_LINEAR",
|
|
1278
|
+
"brief": "linear interpolation",
|
|
1279
|
+
"description": "linear interpolation",
|
|
1280
|
+
"returnvalues": [],
|
|
1281
|
+
"parameters": [],
|
|
1282
|
+
"examples": "",
|
|
1283
|
+
"replaces": "",
|
|
1284
|
+
"error": "",
|
|
1285
|
+
"tparams": [],
|
|
1286
|
+
"members": [],
|
|
1287
|
+
"notes": [],
|
|
1288
|
+
"language": ""
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"type": "CONSTANT",
|
|
1292
|
+
"name": "go.EASING_INQUAD",
|
|
1293
|
+
"brief": "in-quadratic",
|
|
1294
|
+
"description": "in-quadratic",
|
|
1295
|
+
"returnvalues": [],
|
|
1296
|
+
"parameters": [],
|
|
1297
|
+
"examples": "",
|
|
1298
|
+
"replaces": "",
|
|
1299
|
+
"error": "",
|
|
1300
|
+
"tparams": [],
|
|
1301
|
+
"members": [],
|
|
1302
|
+
"notes": [],
|
|
1303
|
+
"language": ""
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"type": "CONSTANT",
|
|
1307
|
+
"name": "go.EASING_OUTQUAD",
|
|
1308
|
+
"brief": "out-quadratic",
|
|
1309
|
+
"description": "out-quadratic",
|
|
1310
|
+
"returnvalues": [],
|
|
1311
|
+
"parameters": [],
|
|
1312
|
+
"examples": "",
|
|
1313
|
+
"replaces": "",
|
|
1314
|
+
"error": "",
|
|
1315
|
+
"tparams": [],
|
|
1316
|
+
"members": [],
|
|
1317
|
+
"notes": [],
|
|
1318
|
+
"language": ""
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"type": "CONSTANT",
|
|
1322
|
+
"name": "go.EASING_INOUTQUAD",
|
|
1323
|
+
"brief": "in-out-quadratic",
|
|
1324
|
+
"description": "in-out-quadratic",
|
|
1325
|
+
"returnvalues": [],
|
|
1326
|
+
"parameters": [],
|
|
1327
|
+
"examples": "",
|
|
1328
|
+
"replaces": "",
|
|
1329
|
+
"error": "",
|
|
1330
|
+
"tparams": [],
|
|
1331
|
+
"members": [],
|
|
1332
|
+
"notes": [],
|
|
1333
|
+
"language": ""
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"type": "CONSTANT",
|
|
1337
|
+
"name": "go.EASING_OUTINQUAD",
|
|
1338
|
+
"brief": "out-in-quadratic",
|
|
1339
|
+
"description": "out-in-quadratic",
|
|
1340
|
+
"returnvalues": [],
|
|
1341
|
+
"parameters": [],
|
|
1342
|
+
"examples": "",
|
|
1343
|
+
"replaces": "",
|
|
1344
|
+
"error": "",
|
|
1345
|
+
"tparams": [],
|
|
1346
|
+
"members": [],
|
|
1347
|
+
"notes": [],
|
|
1348
|
+
"language": ""
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"type": "CONSTANT",
|
|
1352
|
+
"name": "go.EASING_INCUBIC",
|
|
1353
|
+
"brief": "in-cubic",
|
|
1354
|
+
"description": "in-cubic",
|
|
1355
|
+
"returnvalues": [],
|
|
1356
|
+
"parameters": [],
|
|
1357
|
+
"examples": "",
|
|
1358
|
+
"replaces": "",
|
|
1359
|
+
"error": "",
|
|
1360
|
+
"tparams": [],
|
|
1361
|
+
"members": [],
|
|
1362
|
+
"notes": [],
|
|
1363
|
+
"language": ""
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"type": "CONSTANT",
|
|
1367
|
+
"name": "go.EASING_OUTCUBIC",
|
|
1368
|
+
"brief": "out-cubic",
|
|
1369
|
+
"description": "out-cubic",
|
|
1370
|
+
"returnvalues": [],
|
|
1371
|
+
"parameters": [],
|
|
1372
|
+
"examples": "",
|
|
1373
|
+
"replaces": "",
|
|
1374
|
+
"error": "",
|
|
1375
|
+
"tparams": [],
|
|
1376
|
+
"members": [],
|
|
1377
|
+
"notes": [],
|
|
1378
|
+
"language": ""
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"type": "CONSTANT",
|
|
1382
|
+
"name": "go.EASING_INOUTCUBIC",
|
|
1383
|
+
"brief": "in-out-cubic",
|
|
1384
|
+
"description": "in-out-cubic",
|
|
1385
|
+
"returnvalues": [],
|
|
1386
|
+
"parameters": [],
|
|
1387
|
+
"examples": "",
|
|
1388
|
+
"replaces": "",
|
|
1389
|
+
"error": "",
|
|
1390
|
+
"tparams": [],
|
|
1391
|
+
"members": [],
|
|
1392
|
+
"notes": [],
|
|
1393
|
+
"language": ""
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"type": "CONSTANT",
|
|
1397
|
+
"name": "go.EASING_OUTINCUBIC",
|
|
1398
|
+
"brief": "out-in-cubic",
|
|
1399
|
+
"description": "out-in-cubic",
|
|
1400
|
+
"returnvalues": [],
|
|
1401
|
+
"parameters": [],
|
|
1402
|
+
"examples": "",
|
|
1403
|
+
"replaces": "",
|
|
1404
|
+
"error": "",
|
|
1405
|
+
"tparams": [],
|
|
1406
|
+
"members": [],
|
|
1407
|
+
"notes": [],
|
|
1408
|
+
"language": ""
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"type": "CONSTANT",
|
|
1412
|
+
"name": "go.EASING_INQUART",
|
|
1413
|
+
"brief": "in-quartic",
|
|
1414
|
+
"description": "in-quartic",
|
|
1415
|
+
"returnvalues": [],
|
|
1416
|
+
"parameters": [],
|
|
1417
|
+
"examples": "",
|
|
1418
|
+
"replaces": "",
|
|
1419
|
+
"error": "",
|
|
1420
|
+
"tparams": [],
|
|
1421
|
+
"members": [],
|
|
1422
|
+
"notes": [],
|
|
1423
|
+
"language": ""
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"type": "CONSTANT",
|
|
1427
|
+
"name": "go.EASING_OUTQUART",
|
|
1428
|
+
"brief": "out-quartic",
|
|
1429
|
+
"description": "out-quartic",
|
|
1430
|
+
"returnvalues": [],
|
|
1431
|
+
"parameters": [],
|
|
1432
|
+
"examples": "",
|
|
1433
|
+
"replaces": "",
|
|
1434
|
+
"error": "",
|
|
1435
|
+
"tparams": [],
|
|
1436
|
+
"members": [],
|
|
1437
|
+
"notes": [],
|
|
1438
|
+
"language": ""
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"type": "CONSTANT",
|
|
1442
|
+
"name": "go.EASING_INOUTQUART",
|
|
1443
|
+
"brief": "in-out-quartic",
|
|
1444
|
+
"description": "in-out-quartic",
|
|
1445
|
+
"returnvalues": [],
|
|
1446
|
+
"parameters": [],
|
|
1447
|
+
"examples": "",
|
|
1448
|
+
"replaces": "",
|
|
1449
|
+
"error": "",
|
|
1450
|
+
"tparams": [],
|
|
1451
|
+
"members": [],
|
|
1452
|
+
"notes": [],
|
|
1453
|
+
"language": ""
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"type": "CONSTANT",
|
|
1457
|
+
"name": "go.EASING_OUTINQUART",
|
|
1458
|
+
"brief": "out-in-quartic",
|
|
1459
|
+
"description": "out-in-quartic",
|
|
1460
|
+
"returnvalues": [],
|
|
1461
|
+
"parameters": [],
|
|
1462
|
+
"examples": "",
|
|
1463
|
+
"replaces": "",
|
|
1464
|
+
"error": "",
|
|
1465
|
+
"tparams": [],
|
|
1466
|
+
"members": [],
|
|
1467
|
+
"notes": [],
|
|
1468
|
+
"language": ""
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"type": "CONSTANT",
|
|
1472
|
+
"name": "go.EASING_INQUINT",
|
|
1473
|
+
"brief": "in-quintic",
|
|
1474
|
+
"description": "in-quintic",
|
|
1475
|
+
"returnvalues": [],
|
|
1476
|
+
"parameters": [],
|
|
1477
|
+
"examples": "",
|
|
1478
|
+
"replaces": "",
|
|
1479
|
+
"error": "",
|
|
1480
|
+
"tparams": [],
|
|
1481
|
+
"members": [],
|
|
1482
|
+
"notes": [],
|
|
1483
|
+
"language": ""
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"type": "CONSTANT",
|
|
1487
|
+
"name": "go.EASING_OUTQUINT",
|
|
1488
|
+
"brief": "out-quintic",
|
|
1489
|
+
"description": "out-quintic",
|
|
1490
|
+
"returnvalues": [],
|
|
1491
|
+
"parameters": [],
|
|
1492
|
+
"examples": "",
|
|
1493
|
+
"replaces": "",
|
|
1494
|
+
"error": "",
|
|
1495
|
+
"tparams": [],
|
|
1496
|
+
"members": [],
|
|
1497
|
+
"notes": [],
|
|
1498
|
+
"language": ""
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"type": "CONSTANT",
|
|
1502
|
+
"name": "go.EASING_INOUTQUINT",
|
|
1503
|
+
"brief": "in-out-quintic",
|
|
1504
|
+
"description": "in-out-quintic",
|
|
1505
|
+
"returnvalues": [],
|
|
1506
|
+
"parameters": [],
|
|
1507
|
+
"examples": "",
|
|
1508
|
+
"replaces": "",
|
|
1509
|
+
"error": "",
|
|
1510
|
+
"tparams": [],
|
|
1511
|
+
"members": [],
|
|
1512
|
+
"notes": [],
|
|
1513
|
+
"language": ""
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"type": "CONSTANT",
|
|
1517
|
+
"name": "go.EASING_OUTINQUINT",
|
|
1518
|
+
"brief": "out-in-quintic",
|
|
1519
|
+
"description": "out-in-quintic",
|
|
1520
|
+
"returnvalues": [],
|
|
1521
|
+
"parameters": [],
|
|
1522
|
+
"examples": "",
|
|
1523
|
+
"replaces": "",
|
|
1524
|
+
"error": "",
|
|
1525
|
+
"tparams": [],
|
|
1526
|
+
"members": [],
|
|
1527
|
+
"notes": [],
|
|
1528
|
+
"language": ""
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"type": "CONSTANT",
|
|
1532
|
+
"name": "go.EASING_INSINE",
|
|
1533
|
+
"brief": "in-sine",
|
|
1534
|
+
"description": "in-sine",
|
|
1535
|
+
"returnvalues": [],
|
|
1536
|
+
"parameters": [],
|
|
1537
|
+
"examples": "",
|
|
1538
|
+
"replaces": "",
|
|
1539
|
+
"error": "",
|
|
1540
|
+
"tparams": [],
|
|
1541
|
+
"members": [],
|
|
1542
|
+
"notes": [],
|
|
1543
|
+
"language": ""
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"type": "CONSTANT",
|
|
1547
|
+
"name": "go.EASING_OUTSINE",
|
|
1548
|
+
"brief": "out-sine",
|
|
1549
|
+
"description": "out-sine",
|
|
1550
|
+
"returnvalues": [],
|
|
1551
|
+
"parameters": [],
|
|
1552
|
+
"examples": "",
|
|
1553
|
+
"replaces": "",
|
|
1554
|
+
"error": "",
|
|
1555
|
+
"tparams": [],
|
|
1556
|
+
"members": [],
|
|
1557
|
+
"notes": [],
|
|
1558
|
+
"language": ""
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"type": "CONSTANT",
|
|
1562
|
+
"name": "go.EASING_INOUTSINE",
|
|
1563
|
+
"brief": "in-out-sine",
|
|
1564
|
+
"description": "in-out-sine",
|
|
1565
|
+
"returnvalues": [],
|
|
1566
|
+
"parameters": [],
|
|
1567
|
+
"examples": "",
|
|
1568
|
+
"replaces": "",
|
|
1569
|
+
"error": "",
|
|
1570
|
+
"tparams": [],
|
|
1571
|
+
"members": [],
|
|
1572
|
+
"notes": [],
|
|
1573
|
+
"language": ""
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"type": "CONSTANT",
|
|
1577
|
+
"name": "go.EASING_OUTINSINE",
|
|
1578
|
+
"brief": "out-in-sine",
|
|
1579
|
+
"description": "out-in-sine",
|
|
1580
|
+
"returnvalues": [],
|
|
1581
|
+
"parameters": [],
|
|
1582
|
+
"examples": "",
|
|
1583
|
+
"replaces": "",
|
|
1584
|
+
"error": "",
|
|
1585
|
+
"tparams": [],
|
|
1586
|
+
"members": [],
|
|
1587
|
+
"notes": [],
|
|
1588
|
+
"language": ""
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"type": "CONSTANT",
|
|
1592
|
+
"name": "go.EASING_INEXPO",
|
|
1593
|
+
"brief": "in-exponential",
|
|
1594
|
+
"description": "in-exponential",
|
|
1595
|
+
"returnvalues": [],
|
|
1596
|
+
"parameters": [],
|
|
1597
|
+
"examples": "",
|
|
1598
|
+
"replaces": "",
|
|
1599
|
+
"error": "",
|
|
1600
|
+
"tparams": [],
|
|
1601
|
+
"members": [],
|
|
1602
|
+
"notes": [],
|
|
1603
|
+
"language": ""
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"type": "CONSTANT",
|
|
1607
|
+
"name": "go.EASING_OUTEXPO",
|
|
1608
|
+
"brief": "out-exponential",
|
|
1609
|
+
"description": "out-exponential",
|
|
1610
|
+
"returnvalues": [],
|
|
1611
|
+
"parameters": [],
|
|
1612
|
+
"examples": "",
|
|
1613
|
+
"replaces": "",
|
|
1614
|
+
"error": "",
|
|
1615
|
+
"tparams": [],
|
|
1616
|
+
"members": [],
|
|
1617
|
+
"notes": [],
|
|
1618
|
+
"language": ""
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
"type": "CONSTANT",
|
|
1622
|
+
"name": "go.EASING_INOUTEXPO",
|
|
1623
|
+
"brief": "in-out-exponential",
|
|
1624
|
+
"description": "in-out-exponential",
|
|
1625
|
+
"returnvalues": [],
|
|
1626
|
+
"parameters": [],
|
|
1627
|
+
"examples": "",
|
|
1628
|
+
"replaces": "",
|
|
1629
|
+
"error": "",
|
|
1630
|
+
"tparams": [],
|
|
1631
|
+
"members": [],
|
|
1632
|
+
"notes": [],
|
|
1633
|
+
"language": ""
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
"type": "CONSTANT",
|
|
1637
|
+
"name": "go.EASING_OUTINEXPO",
|
|
1638
|
+
"brief": "out-in-exponential",
|
|
1639
|
+
"description": "out-in-exponential",
|
|
1640
|
+
"returnvalues": [],
|
|
1641
|
+
"parameters": [],
|
|
1642
|
+
"examples": "",
|
|
1643
|
+
"replaces": "",
|
|
1644
|
+
"error": "",
|
|
1645
|
+
"tparams": [],
|
|
1646
|
+
"members": [],
|
|
1647
|
+
"notes": [],
|
|
1648
|
+
"language": ""
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"type": "CONSTANT",
|
|
1652
|
+
"name": "go.EASING_INCIRC",
|
|
1653
|
+
"brief": "in-circlic",
|
|
1654
|
+
"description": "in-circlic",
|
|
1655
|
+
"returnvalues": [],
|
|
1656
|
+
"parameters": [],
|
|
1657
|
+
"examples": "",
|
|
1658
|
+
"replaces": "",
|
|
1659
|
+
"error": "",
|
|
1660
|
+
"tparams": [],
|
|
1661
|
+
"members": [],
|
|
1662
|
+
"notes": [],
|
|
1663
|
+
"language": ""
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"type": "CONSTANT",
|
|
1667
|
+
"name": "go.EASING_OUTCIRC",
|
|
1668
|
+
"brief": "out-circlic",
|
|
1669
|
+
"description": "out-circlic",
|
|
1670
|
+
"returnvalues": [],
|
|
1671
|
+
"parameters": [],
|
|
1672
|
+
"examples": "",
|
|
1673
|
+
"replaces": "",
|
|
1674
|
+
"error": "",
|
|
1675
|
+
"tparams": [],
|
|
1676
|
+
"members": [],
|
|
1677
|
+
"notes": [],
|
|
1678
|
+
"language": ""
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"type": "CONSTANT",
|
|
1682
|
+
"name": "go.EASING_INOUTCIRC",
|
|
1683
|
+
"brief": "in-out-circlic",
|
|
1684
|
+
"description": "in-out-circlic",
|
|
1685
|
+
"returnvalues": [],
|
|
1686
|
+
"parameters": [],
|
|
1687
|
+
"examples": "",
|
|
1688
|
+
"replaces": "",
|
|
1689
|
+
"error": "",
|
|
1690
|
+
"tparams": [],
|
|
1691
|
+
"members": [],
|
|
1692
|
+
"notes": [],
|
|
1693
|
+
"language": ""
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"type": "CONSTANT",
|
|
1697
|
+
"name": "go.EASING_OUTINCIRC",
|
|
1698
|
+
"brief": "out-in-circlic",
|
|
1699
|
+
"description": "out-in-circlic",
|
|
1700
|
+
"returnvalues": [],
|
|
1701
|
+
"parameters": [],
|
|
1702
|
+
"examples": "",
|
|
1703
|
+
"replaces": "",
|
|
1704
|
+
"error": "",
|
|
1705
|
+
"tparams": [],
|
|
1706
|
+
"members": [],
|
|
1707
|
+
"notes": [],
|
|
1708
|
+
"language": ""
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"type": "CONSTANT",
|
|
1712
|
+
"name": "go.EASING_INELASTIC",
|
|
1713
|
+
"brief": "in-elastic",
|
|
1714
|
+
"description": "in-elastic",
|
|
1715
|
+
"returnvalues": [],
|
|
1716
|
+
"parameters": [],
|
|
1717
|
+
"examples": "",
|
|
1718
|
+
"replaces": "",
|
|
1719
|
+
"error": "",
|
|
1720
|
+
"tparams": [],
|
|
1721
|
+
"members": [],
|
|
1722
|
+
"notes": [],
|
|
1723
|
+
"language": ""
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"type": "CONSTANT",
|
|
1727
|
+
"name": "go.EASING_OUTELASTIC",
|
|
1728
|
+
"brief": "out-elastic",
|
|
1729
|
+
"description": "out-elastic",
|
|
1730
|
+
"returnvalues": [],
|
|
1731
|
+
"parameters": [],
|
|
1732
|
+
"examples": "",
|
|
1733
|
+
"replaces": "",
|
|
1734
|
+
"error": "",
|
|
1735
|
+
"tparams": [],
|
|
1736
|
+
"members": [],
|
|
1737
|
+
"notes": [],
|
|
1738
|
+
"language": ""
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"type": "CONSTANT",
|
|
1742
|
+
"name": "go.EASING_INOUTELASTIC",
|
|
1743
|
+
"brief": "in-out-elastic",
|
|
1744
|
+
"description": "in-out-elastic",
|
|
1745
|
+
"returnvalues": [],
|
|
1746
|
+
"parameters": [],
|
|
1747
|
+
"examples": "",
|
|
1748
|
+
"replaces": "",
|
|
1749
|
+
"error": "",
|
|
1750
|
+
"tparams": [],
|
|
1751
|
+
"members": [],
|
|
1752
|
+
"notes": [],
|
|
1753
|
+
"language": ""
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"type": "CONSTANT",
|
|
1757
|
+
"name": "go.EASING_OUTINELASTIC",
|
|
1758
|
+
"brief": "out-in-elastic",
|
|
1759
|
+
"description": "out-in-elastic",
|
|
1760
|
+
"returnvalues": [],
|
|
1761
|
+
"parameters": [],
|
|
1762
|
+
"examples": "",
|
|
1763
|
+
"replaces": "",
|
|
1764
|
+
"error": "",
|
|
1765
|
+
"tparams": [],
|
|
1766
|
+
"members": [],
|
|
1767
|
+
"notes": [],
|
|
1768
|
+
"language": ""
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"type": "CONSTANT",
|
|
1772
|
+
"name": "go.EASING_INBACK",
|
|
1773
|
+
"brief": "in-back",
|
|
1774
|
+
"description": "in-back",
|
|
1775
|
+
"returnvalues": [],
|
|
1776
|
+
"parameters": [],
|
|
1777
|
+
"examples": "",
|
|
1778
|
+
"replaces": "",
|
|
1779
|
+
"error": "",
|
|
1780
|
+
"tparams": [],
|
|
1781
|
+
"members": [],
|
|
1782
|
+
"notes": [],
|
|
1783
|
+
"language": ""
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"type": "CONSTANT",
|
|
1787
|
+
"name": "go.EASING_OUTBACK",
|
|
1788
|
+
"brief": "out-back",
|
|
1789
|
+
"description": "out-back",
|
|
1790
|
+
"returnvalues": [],
|
|
1791
|
+
"parameters": [],
|
|
1792
|
+
"examples": "",
|
|
1793
|
+
"replaces": "",
|
|
1794
|
+
"error": "",
|
|
1795
|
+
"tparams": [],
|
|
1796
|
+
"members": [],
|
|
1797
|
+
"notes": [],
|
|
1798
|
+
"language": ""
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
"type": "CONSTANT",
|
|
1802
|
+
"name": "go.EASING_INOUTBACK",
|
|
1803
|
+
"brief": "in-out-back",
|
|
1804
|
+
"description": "in-out-back",
|
|
1805
|
+
"returnvalues": [],
|
|
1806
|
+
"parameters": [],
|
|
1807
|
+
"examples": "",
|
|
1808
|
+
"replaces": "",
|
|
1809
|
+
"error": "",
|
|
1810
|
+
"tparams": [],
|
|
1811
|
+
"members": [],
|
|
1812
|
+
"notes": [],
|
|
1813
|
+
"language": ""
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
"type": "CONSTANT",
|
|
1817
|
+
"name": "go.EASING_OUTINBACK",
|
|
1818
|
+
"brief": "out-in-back",
|
|
1819
|
+
"description": "out-in-back",
|
|
1820
|
+
"returnvalues": [],
|
|
1821
|
+
"parameters": [],
|
|
1822
|
+
"examples": "",
|
|
1823
|
+
"replaces": "",
|
|
1824
|
+
"error": "",
|
|
1825
|
+
"tparams": [],
|
|
1826
|
+
"members": [],
|
|
1827
|
+
"notes": [],
|
|
1828
|
+
"language": ""
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"type": "CONSTANT",
|
|
1832
|
+
"name": "go.EASING_INBOUNCE",
|
|
1833
|
+
"brief": "in-bounce",
|
|
1834
|
+
"description": "in-bounce",
|
|
1835
|
+
"returnvalues": [],
|
|
1836
|
+
"parameters": [],
|
|
1837
|
+
"examples": "",
|
|
1838
|
+
"replaces": "",
|
|
1839
|
+
"error": "",
|
|
1840
|
+
"tparams": [],
|
|
1841
|
+
"members": [],
|
|
1842
|
+
"notes": [],
|
|
1843
|
+
"language": ""
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"type": "CONSTANT",
|
|
1847
|
+
"name": "go.EASING_OUTBOUNCE",
|
|
1848
|
+
"brief": "out-bounce",
|
|
1849
|
+
"description": "out-bounce",
|
|
1850
|
+
"returnvalues": [],
|
|
1851
|
+
"parameters": [],
|
|
1852
|
+
"examples": "",
|
|
1853
|
+
"replaces": "",
|
|
1854
|
+
"error": "",
|
|
1855
|
+
"tparams": [],
|
|
1856
|
+
"members": [],
|
|
1857
|
+
"notes": [],
|
|
1858
|
+
"language": ""
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
"type": "CONSTANT",
|
|
1862
|
+
"name": "go.EASING_INOUTBOUNCE",
|
|
1863
|
+
"brief": "in-out-bounce",
|
|
1864
|
+
"description": "in-out-bounce",
|
|
1865
|
+
"returnvalues": [],
|
|
1866
|
+
"parameters": [],
|
|
1867
|
+
"examples": "",
|
|
1868
|
+
"replaces": "",
|
|
1869
|
+
"error": "",
|
|
1870
|
+
"tparams": [],
|
|
1871
|
+
"members": [],
|
|
1872
|
+
"notes": [],
|
|
1873
|
+
"language": ""
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"type": "CONSTANT",
|
|
1877
|
+
"name": "go.EASING_OUTINBOUNCE",
|
|
1878
|
+
"brief": "out-in-bounce",
|
|
1879
|
+
"description": "out-in-bounce",
|
|
1880
|
+
"returnvalues": [],
|
|
1881
|
+
"parameters": [],
|
|
1882
|
+
"examples": "",
|
|
1883
|
+
"replaces": "",
|
|
1884
|
+
"error": "",
|
|
1885
|
+
"tparams": [],
|
|
1886
|
+
"members": [],
|
|
1887
|
+
"notes": [],
|
|
1888
|
+
"language": ""
|
|
1889
|
+
}
|
|
1890
|
+
],
|
|
1891
|
+
"info": {
|
|
1892
|
+
"namespace": "go",
|
|
1893
|
+
"name": "Game object",
|
|
1894
|
+
"brief": "Game object API documentation",
|
|
1895
|
+
"description": "Functions, core hooks, messages and constants for manipulation of\ngame objects. The \"go\" namespace is accessible from game object script\nfiles.",
|
|
1896
|
+
"path": "engine/gameobject/src/gameobject/gameobject_script.cpp",
|
|
1897
|
+
"file": "",
|
|
1898
|
+
"notes": [],
|
|
1899
|
+
"language": "Lua"
|
|
1900
|
+
}
|
|
1901
|
+
}
|